summaryrefslogtreecommitdiff
path: root/x11/controlcenter
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2004-06-08 17:48:24 +0000
committerjschauma <jschauma@pkgsrc.org>2004-06-08 17:48:24 +0000
commit0d05a89c88f24597591d17b65d0ed60649735982 (patch)
tree91f309d96179c494217f3257a92316efa4078b6e /x11/controlcenter
parentc6be9c96c931bd91f294352af7b4d32888833cde (diff)
downloadpkgsrc-0d05a89c88f24597591d17b65d0ed60649735982.tar.gz
Short: make this compile on Linux
Long: Some OS have libintl functionality in libc, so we do not necessarily have to link against (a possibly non-existent) -lintl. For now, only deal with Linux -- those who know for a fact which OS also behave this way should adjust/add.
Diffstat (limited to 'x11/controlcenter')
-rw-r--r--x11/controlcenter/Makefile9
-rw-r--r--x11/controlcenter/patches/patch-ab4
2 files changed, 10 insertions, 3 deletions
diff --git a/x11/controlcenter/Makefile b/x11/controlcenter/Makefile
index 0e64b8e1737..fb8c3b110d1 100644
--- a/x11/controlcenter/Makefile
+++ b/x11/controlcenter/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.62 2004/04/25 04:16:44 xtraeme Exp $
+# $NetBSD: Makefile,v 1.63 2004/06/08 17:48:24 jschauma Exp $
DISTNAME= control-center-1.4.0.4
PKGREVISION= 7
@@ -24,6 +24,13 @@ LOCALSTATEDIR= ${X11PREFIX}/var
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --localstatedir=${LOCALSTATEDIR}
+.include "../../mk/bsd.prefs.mk"
+
+# Linux has libintl functionality in libc
+.if ${OPSYS} != "Linux"
+CONFIGURE_ENV+= INTLLIBS="-lintl"
+.endif
+
post-patch:
@${ECHO} >>${WRKSRC}/control-center/cappletConf.sh.in ""
diff --git a/x11/controlcenter/patches/patch-ab b/x11/controlcenter/patches/patch-ab
index b5ae1d84eb3..6f47ee85385 100644
--- a/x11/controlcenter/patches/patch-ab
+++ b/x11/controlcenter/patches/patch-ab
@@ -1,4 +1,4 @@
-$NetBSD: patch-ab,v 1.5 2002/08/29 08:42:52 jlam Exp $
+$NetBSD: patch-ab,v 1.6 2004/06/08 17:48:25 jschauma Exp $
--- configure.orig Sun Feb 10 16:36:55 2002
+++ configure
@@ -18,7 +18,7 @@ $NetBSD: patch-ab,v 1.5 2002/08/29 08:42:52 jlam Exp $
+# NetBSD: set DATADIRNAME to "share"
+DATADIRNAME="share"
+INTLDEPS=
-+INTLLIBS="-lintl"
++INTLLIBS="${INTLLIBS}"
+
for ac_hdr in dlfcn.h dl.h
do