summaryrefslogtreecommitdiff
path: root/devel/gettext-lib
diff options
context:
space:
mode:
authorjlam <jlam>2002-08-07 06:10:32 +0000
committerjlam <jlam>2002-08-07 06:10:32 +0000
commit67cf798c55c9c044112908daa6c14599fd3165a5 (patch)
tree6a4bcdaefbca611c5858b32f72cc017cc3ad3a52 /devel/gettext-lib
parent0ee731f839c318bb9b323851bd98eb3015ab9782 (diff)
downloadpkgsrc-67cf798c55c9c044112908daa6c14599fd3165a5.tar.gz
Create new variables INCOMPAT_ZLIB, INCOMPAT_BZIP2, INCOMPAT_READLINE,
INCOMPAT_GETTEXT that are analogous to INCOMPAT_ICONV and contain lists of shell wildcards intended to match against ${MACHINE_PLATFORM}. These variables are used to note those platforms that have the named packages in the base system but are incompatible in some way from the pkgsrc version of the same package. Change INCOMPAT_CURSES to have the same sematics as above. These variables allow much greater precision in specifying which platforms have broken (for the purposes of pkgsrc) versions of software in the base system that must be ignored. The buildlink.mk files for these packages define private _INCOMPAT_* versions of these variables, and they contain the default lists of platforms that are known to have incompatible software bits. This addresses pkg/17775 submitted by Julien T. Letessier <julien.letessier at sun dot com>.
Diffstat (limited to 'devel/gettext-lib')
-rw-r--r--devel/gettext-lib/buildlink.mk42
1 files changed, 26 insertions, 16 deletions
diff --git a/devel/gettext-lib/buildlink.mk b/devel/gettext-lib/buildlink.mk
index 2ad97f2e98b..b2ac03255ac 100644
--- a/devel/gettext-lib/buildlink.mk
+++ b/devel/gettext-lib/buildlink.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink.mk,v 1.13 2002/02/21 12:08:32 wiz Exp $
+# $NetBSD: buildlink.mk,v 1.14 2002/08/07 06:10:33 jlam Exp $
#
# This Makefile fragment is included by packages that use gettext.
#
@@ -21,10 +21,23 @@ BUILDLINK_DEPENDS.gettext?= gettext-lib>=0.10.35nb1
.if defined(USE_GNU_GETTEXT)
_NEED_GNU_GETTEXT= YES
-.elif exists(/usr/include/libintl.h)
-_NEED_GNU_GETTEXT= NO
.else
+. if exists(/usr/include/libintl.h)
+_NEED_GNU_GETTEXT= NO
+. else
+_NEED_GNU_GETTEXT= YES
+. endif
+#
+# Solaris has broken (for the purposes of pkgsrc) version of zlib and
+# gettext.
+#
+_INCOMPAT_GETTEXT= SunOS-*-*
+INCOMPAT_GETTEXT?= # empty
+. for _pattern_ in ${_INCOMPAT_GETTEXT} ${INCOMPAT_GETTEXT}
+. if !empty(MACHINE_PLATFORM:M${_pattern_})
_NEED_GNU_GETTEXT= YES
+. endif
+. endfor
.endif
.if ${_NEED_GNU_GETTEXT} == "YES"
@@ -41,26 +54,23 @@ BUILDLINK_FILES.gettext+= lib/libintl.*
BUILDLINK_TARGETS.gettext= gettext-buildlink
BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.gettext}
-.include "../../mk/bsd.prefs.mk"
-
-.if ${OPSYS} != "Linux"
-.if defined(GNU_CONFIGURE)
-#
# Add -lintl to LIBS in CONFIGURE_ENV to work around broken gettext.m4:
# gettext.m4 does not add -lintl where it should, and the resulting
# configure script fails to detect if libintl.a is the genuine GNU gettext
# or not.
#
-INTLLIBS= -L${BUILDLINK_DIR}/lib
+_BLNK_INTLLIBS= # empty
.if ${_NEED_GNU_GETTEXT} == "YES"
-.if ${_USE_RPATH} == "yes"
-INTLLIBS+= -Wl,-R${BUILDLINK_PREFIX.gettext}/lib
-.endif
-.endif
-INTLLIBS+= -lintl
-LIBS+= ${INTLLIBS}
-CONFIGURE_ENV+= INTLLIBS="${INTLLIBS}"
+_BLNK_INTLLIBS+= -L${BUILDLINK_DIR}/lib
+. if ${_USE_RPATH} == "yes"
+_BLNK_INTLLIBS+= -Wl,-R${BUILDLINK_PREFIX.gettext}/lib
+. endif
.endif
+_BLNK_INTLLIBS+= -lintl
+.if defined(GNU_CONFIGURE)
+INTLLIBS= ${_BLNK_INTLLIBS}
+LIBS+= ${INTLLIBS}
+CONFIGURE_ENV+= INTLLIBS="${INTLLIBS}"
.endif
pre-configure: ${BUILDLINK_TARGETS.gettext}