pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/chat/xchat Fix build with Quartz-only GTK+ 2.x package.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8861ed0f5a9b
branches:  trunk
changeset: 523987:8861ed0f5a9b
user:      tron <tron%pkgsrc.org@localhost>
date:      Tue Jan 16 11:07:59 2007 +0000

description:
Fix build with Quartz-only GTK+ 2.x package.

diffstat:

 chat/xchat/Makefile |  15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diffs (36 lines):

diff -r 0b9e0413f177 -r 8861ed0f5a9b chat/xchat/Makefile
--- a/chat/xchat/Makefile       Tue Jan 16 11:05:12 2007 +0000
+++ b/chat/xchat/Makefile       Tue Jan 16 11:07:59 2007 +0000
@@ -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-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
+
+.if empty(PKG_BUILD_OPTIONS.gtk2+:Mquartz)
+LDFLAGS.Darwin+=       -lX11
+.else
+CONFIGURE_ARGS+=       --disable-xlib
 .endif
-
-.include "../../devel/gettext-lib/buildlink3.mk"
-.include "../../x11/gtk2/buildlink3.mk"
+.endif
 
 post-install:
        ${INSTALL_DATA_DIR} ${PREFIX}/lib/xchat/plugins



Home | Main Index | Thread Index | Old Index