diff options
author | jlam <jlam> | 2001-06-23 19:26:48 +0000 |
---|---|---|
committer | jlam <jlam> | 2001-06-23 19:26:48 +0000 |
commit | 5b2c8b48db2ee1d0436c0891fd223c20cdf5d434 (patch) | |
tree | ca311365ad4be7fa955c6e626140f094e60c3647 /devel/gettext-lib | |
parent | a22484eaf1d72499b5caeed38ea9627ead371252 (diff) | |
download | pkgsrc-5b2c8b48db2ee1d0436c0891fd223c20cdf5d434.tar.gz |
Generalize how the dependency pattern may be specified. Instead of just
FOO_REQD=1.0 being converted to foo>=1.0, one can now directly specify
the dependency pattern as FOO_DEPENDS=foo>=1.0. This allows things like
JPEG_DEPENDS=jpeg-6b, or fancier expressions like for postgresql-lib.
Change existing FOO_REQD definitions in Makefiles to FOO_DEPENDS.
Diffstat (limited to 'devel/gettext-lib')
-rw-r--r-- | devel/gettext-lib/buildlink.mk | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/devel/gettext-lib/buildlink.mk b/devel/gettext-lib/buildlink.mk index 074b4aeffee..14fc8ad8d4a 100644 --- a/devel/gettext-lib/buildlink.mk +++ b/devel/gettext-lib/buildlink.mk @@ -1,10 +1,11 @@ -# $NetBSD: buildlink.mk,v 1.6 2001/06/11 01:59:34 jlam Exp $ +# $NetBSD: buildlink.mk,v 1.7 2001/06/23 19:26:52 jlam Exp $ # # This Makefile fragment is included by packages that use gettext. # # To use this Makefile fragment, simply: # -# (1) Optionally define GETTEXT_REQD to the version of gettext desired. +# (1) Optionally define BUILDLINK_DEPENDS.gettext to the dependency pattern +# for the version of gettext desired. # (2) Include this Makefile fragment in the package Makefile, # (3) Add ${BUILDLINK_DIR}/include to the front of the C preprocessor's header # search path, and @@ -14,7 +15,7 @@ .if !defined(GETTEXT_BUILDLINK_MK) GETTEXT_BUILDLINK_MK= # defined -GETTEXT_REQD?= 0.10.35nb1 +BUILDLINK_DEPENDS.gettext?= gettext-lib>=0.10.35nb1 .if defined(USE_GNU_GETTEXT) _NEED_GNU_GETTEXT= YES @@ -25,7 +26,7 @@ _NEED_GNU_GETTEXT= YES .endif .if ${_NEED_GNU_GETTEXT} == "YES" -DEPENDS+= gettext-lib>=${GETTEXT_REQD}:../../devel/gettext-lib +DEPENDS+= ${BUILDLINK_DEPENDS.gettext}:../../devel/gettext-lib BUILDLINK_PREFIX.gettext= ${LOCALBASE} .else BUILDLINK_PREFIX.gettext= /usr @@ -37,6 +38,9 @@ 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: @@ -44,13 +48,9 @@ BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.gettext} # configure script fails to detect if libintl.a is the genuine GNU gettext # or not. # -CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" -CONFIGURE_ENV+= LIBS="${LIBS}" -CFLAGS+= -I${BUILDLINK_DIR}/include -CPPFLAGS+= -I${BUILDLINK_DIR}/include -LDFLAGS+= -L${BUILDLINK_DIR}/lib LIBS+= -lintl .endif +.endif pre-configure: ${BUILDLINK_TARGETS.gettext} gettext-buildlink: _BUILDLINK_USE |