summaryrefslogtreecommitdiff
path: root/devel/gettext-lib
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-09-18 01:05:45 +0000
committerjlam <jlam@pkgsrc.org>2002-09-18 01:05:45 +0000
commit02234080c8c85b510c25511df584b6bcb9df15bf (patch)
tree613f6c8b2bc2416ad08ca4f4c14346ac19f81bf8 /devel/gettext-lib
parent7d8a00b308d64b4ef37135a15f9094e390dbdfe4 (diff)
downloadpkgsrc-02234080c8c85b510c25511df584b6bcb9df15bf.tar.gz
Create a dummy libtool archive for the system libintl.*, otherwise, in the
future when pkgsrc's libintl.so depends on libiconv.so, libtool will be confused and use the wrong libintl when we want the system one.
Diffstat (limited to 'devel/gettext-lib')
-rw-r--r--devel/gettext-lib/buildlink2.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/devel/gettext-lib/buildlink2.mk b/devel/gettext-lib/buildlink2.mk
index 24458179e02..ecd5d157635 100644
--- a/devel/gettext-lib/buildlink2.mk
+++ b/devel/gettext-lib/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.2 2002/08/23 01:22:40 jlam Exp $
+# $NetBSD: buildlink2.mk,v 1.3 2002/09/18 01:05:45 jlam Exp $
.if !defined(GETTEXT_BUILDLINK2_MK)
GETTEXT_BUILDLINK2_MK= # defined
@@ -41,6 +41,7 @@ BUILDLINK_FILES.gettext= include/libintl.h
BUILDLINK_FILES.gettext+= lib/libintl.*
BUILDLINK_TARGETS+= gettext-buildlink
+BUILDLINK_TARGETS+= gettext-libintl-la
# 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
@@ -63,9 +64,16 @@ CONFIGURE_ENV+= INTLLIBS="${INTLLIBS}"
.if ${_NEED_GNU_GETTEXT} == "NO"
LIBTOOL_ARCHIVE_UNTRANSFORM_SED+= \
+ -e "s|${BUILDLINK_PREFIX.gettext}/lib/libintl.la|-L${BUILDLINK_PREFIX.gettext}/lib -lintl|g" \
-e "s|${LOCALBASE}/lib/libintl.la|-L${BUILDLINK_PREFIX.gettext}/lib -lintl|g"
.endif
gettext-buildlink: _BUILDLINK_USE
+gettext-libintl-la:
+ ${_PKG_SILENT}${_PKG_DEBUG} \
+ lafile="${BUILDLINK_DIR}/lib/libintl.la"; \
+ libpattern="${BUILDLINK_PREFIX.gettext}/lib/libintl.*"; \
+ ${BUILDLINK_FAKE_LA}
+
.endif # GETTEXT_BUILDLINK2_MK