summaryrefslogtreecommitdiff
path: root/devel/libtool-base
diff options
context:
space:
mode:
authorjlam <jlam>2003-01-10 08:44:18 +0000
committerjlam <jlam>2003-01-10 08:44:18 +0000
commit9247382858046e89e8bd0c871918eb25c11d8d80 (patch)
tree9efd9e8c8d7cabb87e4a540c9e040f9cc4940c74 /devel/libtool-base
parent789ec27677ebd0882c52d5da0a7146bfabfdc376 (diff)
downloadpkgsrc-9247382858046e89e8bd0c871918eb25c11d8d80.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 'devel/libtool-base')
-rw-r--r--devel/libtool-base/Makefile36
-rw-r--r--devel/libtool-base/PLIST3
2 files changed, 33 insertions, 6 deletions
diff --git a/devel/libtool-base/Makefile b/devel/libtool-base/Makefile
index 1daf2ce11a9..6819dcbb589 100644
--- a/devel/libtool-base/Makefile
+++ b/devel/libtool-base/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2002/12/22 19:04:08 jlam Exp $
+# $NetBSD: Makefile,v 1.15 2003/01/10 08:44:19 jlam Exp $
#
.include "../libtool/Makefile.common"
@@ -15,21 +15,47 @@ test: build
.include "../../mk/bsd.prefs.mk"
-.if ${MACHINE_PLATFORM:MNetBSD-1.4-sparc} != "" || \
- ${MACHINE_PLATFORM:MNetBSD-1.4.[12]-sparc} != ""
+.if !empty(MACHINE_PLATFORM:MNetBSD-1.4-sparc) || \
+ !empty(MACHINE_PLATFORM:MNetBSD-1.4.[12]-sparc)
DEPENDS+= c++rt0>=1.0:../../sysutils/c++rt0
.endif
.if ${OPSYS} == "NetBSD"
. if !exists(/usr/libexec/ld.so) && !exists(/usr/libexec/ld.elf_so)
-CONFIGURE_ARGS= --disable-shared
+CONFIGURE_ARGS= --disable-shared
+BUILD_SHLIBTOOL= NO
. endif
.else
-CONFIGURE_ARGS= --enable-ltdl-install
+CONFIGURE_ARGS= --enable-ltdl-install
.endif
.if !empty(MACHINE_PLATFORM:MDarwin-*-*)
. include "../../devel/dlcompat/buildlink2.mk"
.endif
+BUILD_SHLIBTOOL?= YES
+BUILDING_SHLIBTOOL?= NO
+
+.if ${BUILDING_SHLIBTOOL} == "YES"
+CONFIGURE_ARGS+= --disable-static
+.else
+SHLIBTOOL_WRKDIR= ${WRKDIR}/shlibtool
+SHLIBTOOL_WRKSRC= ${WRKSRC:S/${WRKDIR}/${SHLIBTOOL_WRKDIR}/}
+SHLIBTOOL_MAKEFLAGS= BUILDING_SHLIBTOOL=YES
+SHLIBTOOL_MAKEFLAGS+= WRKDIR=${SHLIBTOOL_WRKDIR}
+
+. if ${BUILD_SHLIBTOOL} == "NO"
+PLIST_SUBST+= SHLIBTOOL="@comment "
+. else
+PLIST_SUBST+= SHLIBTOOL=
+
+post-build:
+ cd ${.CURDIR} && ${MAKE} build ${SHLIBTOOL_MAKEFLAGS}
+
+post-install:
+ ${INSTALL_SCRIPT} ${SHLIBTOOL_WRKSRC}/libtool \
+ ${PREFIX}/bin/shlibtool
+. endif
+.endif
+
.include "../../mk/bsd.pkg.mk"
diff --git a/devel/libtool-base/PLIST b/devel/libtool-base/PLIST
index 5306629a4e3..9befea0fd4d 100644
--- a/devel/libtool-base/PLIST
+++ b/devel/libtool-base/PLIST
@@ -1,6 +1,7 @@
-@comment $NetBSD: PLIST,v 1.3 2002/12/09 16:01:19 tron Exp $
+@comment $NetBSD: PLIST,v 1.4 2003/01/10 08:44:19 jlam Exp $
bin/libtool
bin/libtoolize
+${SHLIBTOOL}bin/shlibtool
include/ltdl.h
lib/libltdl.a
lib/libltdl.la