summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>1999-11-01 11:15:20 +0000
committeragc <agc@pkgsrc.org>1999-11-01 11:15:20 +0000
commiteb6541e7569f0986d491febfd71680ec43472768 (patch)
tree0d3031d1793540184f90ca630c4840b8f6ec4685 /mk
parentd0eaf1a582382553ab75d26456fd1e04653919a5 (diff)
downloadpkgsrc-eb6541e7569f0986d491febfd71680ec43472768.tar.gz
Recognise "lib" entries with two or more version numbers, in the
PLIST, as shared objects. Tested with both GNU egrep and Solaris XPG4 egrep. Not the most compact of regular expressions, due to non-portability of {n,m} repetition atoms between different versions of egrep.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk9
1 files changed, 4 insertions, 5 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index ce4103c36b0..3ca71a3d3b5 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.362 1999/10/31 19:43:02 rh Exp $
+# $NetBSD: bsd.pkg.mk,v 1.363 1999/11/01 11:15:20 agc Exp $
#
# This file is in the public domain.
#
@@ -1351,10 +1351,9 @@ root-install:
fi)
${_PKG_SILENT}${_PKG_DEBUG}cd ${.CURDIR} && ${MAKE} ${.MAKEFLAGS} ${PLIST}
.if ${OPSYS} == "NetBSD" || ${OPSYS} == "SunOS"
- ${_PKG_SILENT}(${_PKG_DEBUG}sos=`${EGREP} -h \
- '.*/lib[^/]+\.so\.[0-9]+\.[0-9]+$$' \
- ${PLIST} || ${TRUE}`; \
- if [ X"$$sos" != X"" ]; then \
+ ${_PKG_SILENT}(${_PKG_DEBUG} \
+ sos=`${EGREP} -h -x '.*/lib[^/]+\.so\.[0-9]+(\.[0-9]+)+' ${PLIST} || ${TRUE}`; \
+ if [ "X$$sos" != "X" ]; then \
shlib_type=`${MAKE} ${.MAKEFLAGS} show-shlib-type`; \
case "$$shlib_type" in \
"ELF") \