summaryrefslogtreecommitdiff
path: root/chat/xchat
diff options
context:
space:
mode:
authortron <tron>2007-01-16 11:07:59 +0000
committertron <tron>2007-01-16 11:07:59 +0000
commitbc610bc76b25918f55f87be09eac32a0ed2af33d (patch)
treed835e5cf06561a8e7fc1152e1d77292dd17c2e6f /chat/xchat
parentf80f74fef735a342735f64784cfa12cbc6a0498c (diff)
downloadpkgsrc-bc610bc76b25918f55f87be09eac32a0ed2af33d.tar.gz
Fix build with Quartz-only GTK+ 2.x package.
Diffstat (limited to 'chat/xchat')
-rw-r--r--chat/xchat/Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/chat/xchat/Makefile b/chat/xchat/Makefile
index 8e30fd8357b..4516f4a19c3 100644
--- a/chat/xchat/Makefile
+++ b/chat/xchat/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.44 2006/11/14 10:38:36 tron Exp $
+# $NetBSD: Makefile,v 1.45 2007/01/16 11:07:59 tron Exp $
.include "Makefile.common"
@@ -17,17 +17,22 @@ CONFIGURE_ARGS+= --disable-perl
CONFIGURE_ARGS+= --disable-python
LDFLAGS.IRIX+= -lX11
-LDFLAGS.Darwin+= -lX11
.include "../../mk/bsd.prefs.mk"
.include "options.mk"
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../x11/gtk2/buildlink3.mk"
+
.if ${OPSYS} == "Darwin"
INSTALL_UNSTRIPPED= YES
-.endif
-.include "../../devel/gettext-lib/buildlink3.mk"
-.include "../../x11/gtk2/buildlink3.mk"
+.if empty(PKG_BUILD_OPTIONS.gtk2+:Mquartz)
+LDFLAGS.Darwin+= -lX11
+.else
+CONFIGURE_ARGS+= --disable-xlib
+.endif
+.endif
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/lib/xchat/plugins