diff options
author | sakamoto <sakamoto@pkgsrc.org> | 1999-12-07 08:55:58 +0000 |
---|---|---|
committer | sakamoto <sakamoto@pkgsrc.org> | 1999-12-07 08:55:58 +0000 |
commit | 12fea9c88789527f51ab3074d2ccf69f58618fd7 (patch) | |
tree | 24b37513f964bfe904737ff3e2460a35ce2a6b55 /mk | |
parent | 0a4280ecbc8939085b72325ea8ecf9f2a1cf0ee0 (diff) | |
download | pkgsrc-12fea9c88789527f51ab3074d2ccf69f58618fd7.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.mk | 18 |
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 |