summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorchristos <christos@pkgsrc.org>1999-09-02 21:40:14 +0000
committerchristos <christos@pkgsrc.org>1999-09-02 21:40:14 +0000
commitd94a455ae5a56b4a6bffc6bcfba736c023a80bd1 (patch)
tree02d4dc81df2689ac9cd18433e30fbaf4e64256cf /mk
parentda420b333a5288a39f1a6062a9254e6c99389f8c (diff)
downloadpkgsrc-d94a455ae5a56b4a6bffc6bcfba736c023a80bd1.tar.gz
Use devel/libtool for OS's other than NetBSD, and disable automatic shared
library handling. This partially takes care of the libfoo.so.1.2.3 names that Linux uses. More to come.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index b12a25430e2..47875107e16 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.330 1999/08/31 21:45:45 christos Exp $
+# $NetBSD: bsd.pkg.mk,v 1.331 1999/09/02 21:40:14 christos Exp $
#
# This file is in the public domain.
#
@@ -119,8 +119,13 @@ BUILD_DEPENDS+= ${PREFIX}/include/Xm/Xm.h:${PKGSRCDIR}/x11/lesstif
.endif
.if defined(USE_LIBTOOL)
+.if ${OS} == "NetBSD"
LIBTOOL= ${LOCALBASE}/bin/pkglibtool-${OBJECT_FMT}-1.2p2
BUILD_DEPENDS+= ${LIBTOOL}:${PKGSRCDIR}/pkgtools/pkglibtool
+.else
+LIBTOOL= ${LOCALBASE}/bin/libtool
+BUILD_DEPENDS+= ${LIBTOOL}:${PKGSRCDIR}/devel/libtool
+.endif
CONFIGURE_ENV+= LIBTOOL="${LIBTOOL} ${LIBTOOL_FLAGS}"
MAKE_ENV+= LIBTOOL="${LIBTOOL} ${LIBTOOL_FLAGS}"
.endif
@@ -1335,6 +1340,7 @@ root-install:
done; \
fi)
${_PKG_SILENT}${_PKG_DEBUG}cd ${.CURDIR} && ${MAKE} ${.MAKEFLAGS} ${PLIST}
+.if ${OS} == "NetBSD"
${_PKG_SILENT}(${_PKG_DEBUG}sos=`${EGREP} -h \
'.*/lib[^/]+\.so\.[0-9]+\.[0-9]+$$' \
${PLIST} || ${TRUE}`; \
@@ -1391,6 +1397,7 @@ root-install:
;; \
esac; \
fi)
+.endif
.ifdef MESSAGE_FILE
@${ECHO_MSG} "===> Please note the following:"
@${ECHO_MSG} ""