summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2003-01-10 08:44:18 +0000
committerjlam <jlam@pkgsrc.org>2003-01-10 08:44:18 +0000
commit1abdd450fe362879f5881c4ff72747f448ee1ce0 (patch)
tree9efd9e8c8d7cabb87e4a540c9e040f9cc4940c74 /mk
parentef73a12c29e7af9d8eecbee53071be31a5fedad5 (diff)
downloadpkgsrc-1abdd450fe362879f5881c4ff72747f448ee1ce0.tar.gz
Install a ${PREFIX}/bin/shlibtool as part of the devel/libtool-base
package. shlibtool will not build static libraries. Add handling in bsd.pkg.mk for a variable named "SHLIBTOOL_OVERRIDE" that is analogous to LIBTOOL_OVERRIDE and causes any listed libtool scripts to be replaced with a symlink to shlibtool, and teach buildlink2 about shlibtool. Bump PKGREVISION of devel/libtool* packages to 11.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk25
-rw-r--r--mk/buildlink2/bsd.buildlink2.mk23
-rw-r--r--mk/defs.Darwin.mk3
-rw-r--r--mk/defs.FreeBSD.mk3
-rw-r--r--mk/defs.IRIX.mk3
-rw-r--r--mk/defs.Linux.mk3
-rw-r--r--mk/defs.NetBSD.mk3
-rw-r--r--mk/defs.OpenBSD.mk3
-rw-r--r--mk/defs.SunOS.mk3
9 files changed, 44 insertions, 25 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 988db6f9055..e44d9890d85 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1125 2003/01/09 13:16:38 schmonz Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1126 2003/01/10 08:44:19 jlam Exp $
#
# This file is in the public domain.
#
@@ -222,10 +222,12 @@ CONFIG_SHELL?= ${SH}
CONFIGURE_ENV+= CONFIG_SHELL=${CONFIG_SHELL}
.endif
-LIBTOOL_REQD= ${_OPSYS_LIBTOOL_REQD}
+LIBTOOL_REQD?= 1.4.20010614nb11
LIBTOOL= ${LOCALBASE}/bin/libtool
+SHLIBTOOL= ${LOCALBASE}/bin/shlibtool
.if defined(USE_LIBTOOL)
PKGLIBTOOL= ${LIBTOOL}
+PKGSHLIBTOOL= ${SHLIBTOOL}
BUILD_DEPENDS+= libtool-base>=${LIBTOOL_REQD}:../../devel/libtool-base
CONFIGURE_ENV+= LIBTOOL="${PKGLIBTOOL} ${LIBTOOL_FLAGS}"
MAKE_ENV+= LIBTOOL="${PKGLIBTOOL} ${LIBTOOL_FLAGS}"
@@ -1886,14 +1888,25 @@ do-configure: ${_CONFIGURE_PREREQ}
_CONFIGURE_POSTREQ+= do-libtool-override
do-libtool-override:
-.if defined(USE_LIBTOOL) && defined(LIBTOOL_OVERRIDE)
-. for libtool in ${LIBTOOL_OVERRIDE}
+.if defined(USE_LIBTOOL)
+. if defined(LIBTOOL_OVERRIDE)
+. for libtool in ${LIBTOOL_OVERRIDE}
${_PKG_SILENT}${_PKG_DEBUG} \
if [ -f ${libtool} ]; then \
${RM} -f ${libtool}; \
- ${LN} -sf ${PKGLIBTOOL} ${libtool}; \
+ ${LN} -sf ${PKGLIBTOOL} ${libtool}; \
fi
-. endfor
+. endfor
+. endif
+. if defined(SHLIBTOOL_OVERRIDE)
+. for libtool in ${SHLIBTOOL_OVERRIDE}
+ ${_PKG_SILENT}${_PKG_DEBUG} \
+ if [ -f ${libtool} ]; then \
+ ${RM} -f ${libtool}; \
+ ${LN} -sf ${PKGSHLIBTOOL} ${libtool}; \
+ fi
+. endfor
+. endif
.else
${_PKG_SILENT}${_PKG_DEBUG}${TRUE}
.endif
diff --git a/mk/buildlink2/bsd.buildlink2.mk b/mk/buildlink2/bsd.buildlink2.mk
index e5e310230b1..7da446a7e08 100644
--- a/mk/buildlink2/bsd.buildlink2.mk
+++ b/mk/buildlink2/bsd.buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.buildlink2.mk,v 1.72 2003/01/08 08:33:54 jlam Exp $
+# $NetBSD: bsd.buildlink2.mk,v 1.73 2003/01/10 08:44:21 jlam Exp $
#
# An example package buildlink2.mk file:
#
@@ -518,8 +518,9 @@ _BLNK_WRAPPEES+= FC
.endif
.if defined(USE_LIBTOOL)
PKGLIBTOOL= ${BUILDLINK_LIBTOOL}
+PKGSHLIBTOOL= ${BUILDLINK_SHLIBTOOL}
.endif
-_BLNK_WRAPPEES+= LIBTOOL
+_BLNK_WRAPPEES+= LIBTOOL SHLIBTOOL
.if defined(USE_X11)
IMAKE?= ${X11BASE}/bin/imake
_BLNK_WRAPPEES+= IMAKE
@@ -606,13 +607,18 @@ _BLNK_WRAP_SETENV.CPP= # empty
#
_BLNK_WRAP_SETENV.FC+= F77="${BUILDLINK_FC:T}"
-# Don't override the default LIBTOOL setting in the environment, as
-# it already correctly points to ${PKGLIBTOOL}, and don't sanitize the PATH
-# because we want libtool to invoke the wrapper scripts, too.
+# Don't override the default LIBTOOL and SHLIBTOOL settings in the
+# environment, as they already correctly point to the correct values, and
+# don't sanitize the PATH because we want libtool to invoke the wrapper
+# scripts, too.
#
_BLNK_WRAP_SETENV.LIBTOOL= # empty
_BLNK_WRAPPER_SH.LIBTOOL= ${.CURDIR}/../../mk/buildlink2/libtool.sh
_BLNK_WRAP_SANITIZE_PATH.LIBTOOL= # empty
+#
+_BLNK_WRAP_SETENV.SHLIBTOOL= # empty
+_BLNK_WRAPPER_SH.SHLIBTOOL= ${.CURDIR}/../../mk/buildlink2/libtool.sh
+_BLNK_WRAP_SANITIZE_PATH.SHLIBTOOL= # empty
# We need to "unbuildlinkify" any libtool archives.
_BLNK_WRAP_LT_UNTRANSFORM_SED= ${_REPLACE_BUILDLINK_SED}
@@ -629,6 +635,13 @@ _BLNK_WRAP_PRIVATE_CACHE.LIBTOOL= ${BUILDLINK_DIR}/bin/.libtool-cache
_BLNK_WRAP_PRIVATE_POST_CACHE.LIBTOOL= ${BUILDLINK_DIR}/bin/.libtool-post-cache
_BLNK_WRAP_POST_LOGIC.LIBTOOL= ${BUILDLINK_DIR}/bin/.libtool-logic
+# shlibtool shares cache information with libtool.
+_BLNK_WRAP_PRIVATE_PRE_CACHE.SHLIBTOOL= ${_BLNK_WRAP_PRIVATE_PRE_CACHE.LIBTOOL}
+_BLNK_WRAP_PRIVATE_CACHE_ADD.SHLIBTOOL= ${_BLNK_WRAP_PRIVATE_CACHE_ADD.LIBTOOL}
+_BLNK_WRAP_PRIVATE_CACHE.SHLIBTOOL= ${_BLNK_WRAP_PRIVATE_CACHE.LIBTOOL}
+_BLNK_WRAP_PRIVATE_POST_CACHE.SHLIBTOOL= ${_BLNK_WRAP_PRIVATE_POST_CACHE.LIBTOOL}
+_BLNK_WRAP_POST_LOGIC.SHLIBTOOL= ${_BLNK_WRAP_POST_LOGIC.LIBTOOL}
+
# Allow BUILDLINK_SETENV.<wrappee> to override _BLNK_WRAP_SETENV.<wrappee>.
.for _wrappee_ in ${_BLNK_WRAPPEES}
. if defined(BUILDLINK_SETENV.${_wrappee_})
diff --git a/mk/defs.Darwin.mk b/mk/defs.Darwin.mk
index 480580c858d..57ba47b4138 100644
--- a/mk/defs.Darwin.mk
+++ b/mk/defs.Darwin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: defs.Darwin.mk,v 1.41 2002/12/18 06:18:14 schmonz Exp $
+# $NetBSD: defs.Darwin.mk,v 1.42 2003/01/10 08:44:20 jlam Exp $
#
# Variable definitions for the Darwin operating system.
@@ -93,7 +93,6 @@ _OPSYS_HAS_INET6= no # IPv6 is not standard
_OPSYS_HAS_JAVA= yes # Java is standard
_OPSYS_HAS_MANZ= yes # MANZ controls gzipping of man pages
_OPSYS_HAS_OSSAUDIO= no # libossaudio is available
-_OPSYS_LIBTOOL_REQD= 1.4.20010614nb9 # base version of libtool required
_OPSYS_PERL_REQD= 5.8.0 # base version of perl required
_OPSYS_RPATH_NAME= # no name of symbol in rpath directive to linker
_PATCH_CAN_BACKUP= yes # native patch(1) can make backups
diff --git a/mk/defs.FreeBSD.mk b/mk/defs.FreeBSD.mk
index 6191c8afb5d..c55ecd03390 100644
--- a/mk/defs.FreeBSD.mk
+++ b/mk/defs.FreeBSD.mk
@@ -1,4 +1,4 @@
-# $NetBSD: defs.FreeBSD.mk,v 1.13 2002/12/18 06:18:14 schmonz Exp $
+# $NetBSD: defs.FreeBSD.mk,v 1.14 2003/01/10 08:44:20 jlam Exp $
#
# Variable definitions for the FreeBSD operating system.
@@ -105,7 +105,6 @@ _OPSYS_HAS_INET6= no # IPv6 is not standard
_OPSYS_HAS_JAVA= no # Java is not standard
_OPSYS_HAS_MANZ= yes # MANZ controls gzipping of man pages
_OPSYS_HAS_OSSAUDIO= yes # libossaudio is available
-_OPSYS_LIBTOOL_REQD= 1.4.20010614nb10 # base version of libtool required
_OPSYS_PERL_REQD= # no base version of perl required
_OPSYS_RPATH_NAME= -R # name of symbol in rpath directive to linker
_PATCH_CAN_BACKUP= yes # native patch(1) can make backups
diff --git a/mk/defs.IRIX.mk b/mk/defs.IRIX.mk
index 650f010eae6..e72c6e40898 100644
--- a/mk/defs.IRIX.mk
+++ b/mk/defs.IRIX.mk
@@ -1,4 +1,4 @@
-# $NetBSD: defs.IRIX.mk,v 1.15 2002/12/23 23:03:23 jschauma Exp $
+# $NetBSD: defs.IRIX.mk,v 1.16 2003/01/10 08:44:20 jlam Exp $
#
# Variable definitions for the IRIX operating system.
@@ -100,7 +100,6 @@ _OPSYS_HAS_INET6= no # IPv6 is not standard
_OPSYS_HAS_JAVA= no # Java is not standard
_OPSYS_HAS_MANZ= no # no MANZ for gzipping of man pages
_OPSYS_HAS_OSSAUDIO= no # libossaudio is available
-_OPSYS_LIBTOOL_REQD= 1.4.20010614nb9 # base version of libtool required
_OPSYS_PERL_REQD= # no base version of perl required
_OPSYS_RPATH_NAME= -rpath, # name of symbol in rpath directive to linker
_PATCH_CAN_BACKUP= no # native patch(1) can make backups
diff --git a/mk/defs.Linux.mk b/mk/defs.Linux.mk
index c62bc4f63ff..004e2d8549a 100644
--- a/mk/defs.Linux.mk
+++ b/mk/defs.Linux.mk
@@ -1,4 +1,4 @@
-# $NetBSD: defs.Linux.mk,v 1.42 2002/12/18 06:18:14 schmonz Exp $
+# $NetBSD: defs.Linux.mk,v 1.43 2003/01/10 08:44:20 jlam Exp $
#
# Variable definitions for the Linux operating system.
@@ -95,7 +95,6 @@ _OPSYS_HAS_INET6= no # IPv6 is not standard
_OPSYS_HAS_JAVA= no # Java is not standard
_OPSYS_HAS_MANZ= no # no MANZ for gzipping of man pages
_OPSYS_HAS_OSSAUDIO= no # libossaudio is available
-_OPSYS_LIBTOOL_REQD= 1.4.20010614nb9 # base version of libtool required
_OPSYS_PERL_REQD= # no base version of perl required
_OPSYS_RPATH_NAME= -R # name of symbol in rpath directive to linker
_PATCH_CAN_BACKUP= yes # native patch(1) can make backups
diff --git a/mk/defs.NetBSD.mk b/mk/defs.NetBSD.mk
index fd2090e897d..2b3433ff51d 100644
--- a/mk/defs.NetBSD.mk
+++ b/mk/defs.NetBSD.mk
@@ -1,4 +1,4 @@
-# $NetBSD: defs.NetBSD.mk,v 1.42 2002/12/18 06:18:15 schmonz Exp $
+# $NetBSD: defs.NetBSD.mk,v 1.43 2003/01/10 08:44:20 jlam Exp $
#
# Variable definitions for the NetBSD operating system.
@@ -105,7 +105,6 @@ _OPSYS_HAS_INET6= no # IPv6 is not standard
_OPSYS_HAS_JAVA= no # Java is not standard
_OPSYS_HAS_MANZ= yes # MANZ controls gzipping of man pages
_OPSYS_HAS_OSSAUDIO= yes # libossaudio is available
-_OPSYS_LIBTOOL_REQD= 1.4.20010614nb9 # base version of libtool required
_OPSYS_PERL_REQD= # no base version of perl required
_OPSYS_RPATH_NAME= -R # name of symbol in rpath directive to linker
_PATCH_CAN_BACKUP= yes # native patch(1) can make backups
diff --git a/mk/defs.OpenBSD.mk b/mk/defs.OpenBSD.mk
index a6c853c1d32..a737d55f7cc 100644
--- a/mk/defs.OpenBSD.mk
+++ b/mk/defs.OpenBSD.mk
@@ -1,4 +1,4 @@
-# $NetBSD: defs.OpenBSD.mk,v 1.11 2002/12/18 06:18:15 schmonz Exp $
+# $NetBSD: defs.OpenBSD.mk,v 1.12 2003/01/10 08:44:20 jlam Exp $
#
# Variable definitions for the OpenBSD operating system.
@@ -105,7 +105,6 @@ _OPSYS_HAS_INET6= no # IPv6 is not standard
_OPSYS_HAS_JAVA= no # Java is not standard
_OPSYS_HAS_MANZ= yes # MANZ controls gzipping of man pages
_OPSYS_HAS_OSSAUDIO= yes # libossaudio is available
-_OPSYS_LIBTOOL_REQD= 1.4.20010614nb9 # base version of libtool required
_OPSYS_PERL_REQD= # no base version of perl required
_OPSYS_RPATH_NAME= -R # name of symbol in rpath directive to linker
_PATCH_CAN_BACKUP= yes # native patch(1) can make backups
diff --git a/mk/defs.SunOS.mk b/mk/defs.SunOS.mk
index 60d5bcb6c7d..667c5e44b30 100644
--- a/mk/defs.SunOS.mk
+++ b/mk/defs.SunOS.mk
@@ -1,4 +1,4 @@
-# $NetBSD: defs.SunOS.mk,v 1.50 2003/01/06 22:29:23 grant Exp $
+# $NetBSD: defs.SunOS.mk,v 1.51 2003/01/10 08:44:20 jlam Exp $
#
# Variable definitions for the SunOS/Solaris operating system.
@@ -111,7 +111,6 @@ _OPSYS_HAS_INET6= no # IPv6 is not standard
_OPSYS_HAS_JAVA= no # Java is not standard
_OPSYS_HAS_MANZ= no # no MANZ for gzipping of man pages
_OPSYS_HAS_OSSAUDIO= no # libossaudio is available
-_OPSYS_LIBTOOL_REQD= 1.4.20010614nb9 # base version of libtool required
_OPSYS_PERL_REQD= # no base version of perl required
_OPSYS_RPATH_NAME= -R # name of symbol in rpath directive to linker
_PATCH_CAN_BACKUP= yes # native patch(1) can make backups