summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorsakamoto <sakamoto>1999-12-07 08:55:58 +0000
committersakamoto <sakamoto>1999-12-07 08:55:58 +0000
commit46fbbed09326c2afe32aca26c71677fd79f9b037 (patch)
tree24b37513f964bfe904737ff3e2460a35ce2a6b55 /mk
parentf4a34cbddf236e1a457da185b22ddb02fe31386b (diff)
downloadpkgsrc-46fbbed09326c2afe32aca26c71677fd79f9b037.tar.gz
Added LTCONFIG_OVERRIDE and LIBTOOL_OVERRIDE definition to
substitute pkglibtool for the pkg's own libtool. "ltconfig" is script to make "libtool" script. "ltconfig" is executed by GNU's "configure" script at "do-configure" target. if USE_LIBTOOL and LTCONFIG_OVERRIDE defined, specified "ltconfig" is overrided to symlink pkglibtool to "libtool" instead of making "libtool" before executing "configure". if USE_LIBTOOL and LIBTOOL_OVERRIDE defined, specified "libtool" is removed, and symlinked from pkglibtool after executing "configure" (and "ltconfig").
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk18
1 files changed, 17 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index c7ec8b2956f..984e64c672d 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.374 1999/11/30 04:17:58 hubertf Exp $
+# $NetBSD: bsd.pkg.mk,v 1.375 1999/12/07 08:55:58 sakamoto Exp $
#
# This file is in the public domain.
#
@@ -1155,6 +1155,14 @@ do-patch:
.if !target(do-configure)
do-configure:
+.if defined(USE_LIBTOOL) && defined(LTCONFIG_OVERRIDE) && !defined(LIBTOOL_OVERRIDE)
+.for ltconfig in ${LTCONFIG_OVERRIDE}
+ ${_PKG_SILENT}${_PKG_DEBUG}if [ -f ${ltconfig} ]; then \
+ ${ECHO} "${RM} -f libtool; ${LN} -s ${LIBTOOL} libtool" \
+ > ${ltconfig}; \
+ fi
+.endfor
+.endif
${_PKG_SILENT}${_PKG_DEBUG}if [ -f ${SCRIPTDIR}/configure ]; then \
cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} \
${SCRIPTDIR}/configure; \
@@ -1171,6 +1179,14 @@ do-configure:
.if defined(USE_IMAKE)
${_PKG_SILENT}(${_PKG_DEBUG}cd ${WRKSRC} && ${SETENV} ${SCRIPTS_ENV} XPROJECTROOT=${X11BASE} ${XMKMF})
.endif
+.if defined(USE_LIBTOOL) && defined(LIBTOOL_OVERRIDE) && !defined(LTCONFIG_OVERRIDE)
+.for libtool in ${LIBTOOL_OVERRIDE}
+ ${_PKG_SILENT}${_PKG_DEBUG}if [ -f ${libtool} ]; then \
+ ${RM} -f ${libtool}; \
+ ${LN} -s ${LIBTOOL} ${libtool}; \
+ fi
+.endfor
+.endif
.endif
# Build