Revision: 79974 http://trac.macports.org/changeset/79974 Author: ryandesign@macports.org Date: 2011-06-30 21:20:52 -0700 (Thu, 30 Jun 2011) Log Message: ----------- xournal: bail with sensible error if gtk2 doesn't have x11 support; see #29992 Modified Paths: -------------- trunk/dports/x11/xournal/Portfile Modified: trunk/dports/x11/xournal/Portfile =================================================================== --- trunk/dports/x11/xournal/Portfile 2011-07-01 03:59:12 UTC (rev 79973) +++ trunk/dports/x11/xournal/Portfile 2011-07-01 04:20:52 UTC (rev 79974) @@ -35,6 +35,13 @@ configure.ldflags-append -lz +pre-configure { + if {![file exists ${prefix}/include/gtk-2.0/gdk/gdkx.h]} { + ui_error "${name} requires gtk2 installed with X11 support; please reinstall gtk2 and all its dependencies with the +x11 variant." + return -code error "incompatible gtk2 installation" + } +} + post-destroot { xinstall -d ${destroot}${prefix}/share/doc/${name} xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog README ${destroot}${prefix}/share/doc/${name}