[39629] trunk/dports/x11/pango-devel/Portfile
ryandesign at macports.org
ryandesign at macports.org
Tue Aug 26 22:56:31 PDT 2008
Revision: 39629
http://trac.macosforge.org/projects/macports/changeset/39629
Author: ryandesign at macports.org
Date: 2008-08-26 22:56:29 -0700 (Tue, 26 Aug 2008)
Log Message:
-----------
pango-devel: pango 1.21 requires glib 2.17 so check for this and tell the user to use glib2-devel if necessary
Modified Paths:
--------------
trunk/dports/x11/pango-devel/Portfile
Modified: trunk/dports/x11/pango-devel/Portfile
===================================================================
--- trunk/dports/x11/pango-devel/Portfile 2008-08-27 04:22:27 UTC (rev 39628)
+++ trunk/dports/x11/pango-devel/Portfile 2008-08-27 05:56:29 UTC (rev 39629)
@@ -29,8 +29,11 @@
sha1 d9cf5fe7fbef108180b3b144addd5ec8ec4da9d3 \
rmd160 5c496a96172a9912787438888996c05d00f9306c
+depends_build \
+ port:pkgconfig
+
depends_lib \
- path:${prefix}/lib/pkgconfig/glib-2.0.pc:glib2 \
+ path:${prefix}/lib/pkgconfig/glib-2.0.pc:glib2-devel \
lib:libX11.6:XFree86 \
port:Xft2 \
port:cairo \
@@ -39,6 +42,14 @@
patchfiles \
patch-ltmain.sh.diff
+pre-configure {
+ set glib_minimum_version 2.17.3
+ set glib_installed_version [exec pkg-config glib-2.0 --modversion]
+ if {[rpm-vercomp ${glib_installed_version} ${glib_minimum_version}] < 0} {
+ return -code error "pango ${version} requires glib ${glib_minimum_version} or later but you have glib ${glib_installed_version}. Please deactivate glib2 and install glib2-devel, then try again."
+ }
+}
+
configure.cppflags-append \
-no-cpp-precomp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080826/daffa226/attachment.html
More information about the macports-changes
mailing list