aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/pango
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2016-07-25 21:46:22 +0000
committerJan Beich <jbeich@FreeBSD.org>2016-07-25 21:46:22 +0000
commit9057d20bd5072ec061d43ce0799a8a3e0b02aaf5 (patch)
treef62f94d7eb1a909e2d6d491358110845074befa3 /x11-toolkits/pango
parentd1767d6d0e2a97aa2982c3b8eb5af003d1555aa9 (diff)
downloadports-9057d20bd5072ec061d43ce0799a8a3e0b02aaf5.tar.gz
ports-9057d20bd5072ec061d43ce0799a8a3e0b02aaf5.zip
Apply r402343 to other gnome@ ports restoring r297047 behavior
- Invoke pkg-config(1) instead of checking manually - Convert to ECHO_MSG which can be silenced PR: 166279 Approved by: portmgr blanket MFH: 2016Q3
Notes
Notes: svn path=/head/; revision=419069
Diffstat (limited to 'x11-toolkits/pango')
-rw-r--r--x11-toolkits/pango/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/x11-toolkits/pango/Makefile b/x11-toolkits/pango/Makefile
index 419a27095c00..58360fee0070 100644
--- a/x11-toolkits/pango/Makefile
+++ b/x11-toolkits/pango/Makefile
@@ -55,10 +55,11 @@ PLIST_SUB+= X11="@comment "
.endif
pre-configure:
-.if !exists(${LOCALBASE}/libdata/pkgconfig/cairo-gobject.pc)
- @${ECHO_CMD} "${PKGNAME}: Needs cairo with GLIB (GObject) support enabled."
- @${FALSE}
-.endif
+# .if !exists() evaluates too early before cairo has a chance to be installed
+ @if ! pkg-config --exists cairo-gobject; then \
+ ${ECHO_MSG} "${PKGNAME}: Needs cairo with GLIB (GObject) support enabled."; \
+ ${FALSE}; \
+ fi
.include <bsd.port.mk>