summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.mk
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2004-08-16 03:12:02 +0000
committertv <tv@pkgsrc.org>2004-08-16 03:12:02 +0000
commit57110d93e190241a4a50d7bb2088cbbe4a09f74b (patch)
treed3ef27c84757240e297925eded8d32835bd5e1b2 /mk/bsd.pkg.mk
parent3a9380afa6d628b40915d22797437169206e10db (diff)
downloadpkgsrc-57110d93e190241a4a50d7bb2088cbbe4a09f74b.tar.gz
Add new variable LIBTOOL_LA_FILES, which may be used instead of listing
all of the .a, .la, .so, and .so.* files in the PLIST. This will autogenerate the PLIST entries based on the informaion in the .la file. This include print-PLIST support; if LIBTOOL_LA_FILES contains an installed .la, its entries will be elided from the output PLIST template.
Diffstat (limited to 'mk/bsd.pkg.mk')
-rw-r--r--mk/bsd.pkg.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index bb80c8b23df..ad0571ebc31 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1489 2004/08/16 01:56:03 schmonz Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1490 2004/08/16 03:12:02 tv Exp $
#
# This file is in the public domain.
#
@@ -407,6 +407,11 @@ BUILD_DEPENDS+= libtool-base>=${LIBTOOL_REQD}:../../devel/libtool-base
CONFIGURE_ENV+= LIBTOOL="${LIBTOOL} ${LIBTOOL_FLAGS}"
MAKE_ENV+= LIBTOOL="${LIBTOOL} ${LIBTOOL_FLAGS}"
LIBTOOL_OVERRIDE?= libtool */libtool */*/libtool
+.if defined(LIBTOOL_LA_FILES)
+GENERATE_PLIST+= ${SH} ../../mk/scripts/transform-la ${PREFIX} ${LIBTOOL_LA_FILES};
+_FILTER_LIBTOOL_LA_FILES= | ${GREP} -vxF \
+ `${SH} ../../mk/scripts/transform-la ${PREFIX} ${LIBTOOL_LA_FILES} | ${SED} -e 's,^,-e ,'`
+.endif
.endif
.if defined(BUILD_USES_MSGFMT) && \
@@ -4495,6 +4500,7 @@ print-PLIST:
*) genlinks=0 ;; \
esac; \
${FIND} ${PREFIX}/. -xdev -newer ${EXTRACT_COOKIE} \! -type d -print\
+ ${_FILTER_LIBTOOL_LA_FILES} \
| ${SORT} \
| ${AWK} ' \
{ sub("${PREFIX}/\\./", ""); } \