Subject: take2; using pkglibtool
To: None <tech-pkg@netbsd.org>
From: Kazuki Sakamoto <sakamoto@cec.co.jp>
List: tech-pkg
Date: 12/07/1999 13:04:23
tv@pobox.com wrote:
> Also, having a way to specify the location of ltconfig would be nice. A
> simple "echo '' >.../ltconfig" will eliminate the time spent building a
> libtool program; it would null out the ltconfig script.
I see.
USE_LIBTOOL= yes
LTCONFIG_OVERRIDE=${WRKSRC}/ltconfig
(overrided ${WRKSRC}/ltconfig as
rm -f libtool; ln -s /usr/pkg/bin/pkglibtool-... libtool)
or
USE_LIBTOOL= yes
LIBTOOL_OVERRIDE=${WRKSRC}/libtool
sakamoto
--
--- bsd.pkg.mk.orig Mon Dec 6 13:27:43 1999
+++ bsd.pkg.mk Tue Dec 7 10:01:47 1999
@@ -1155,6 +1155,14 @@
.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; \
@@ -1170,6 +1178,14 @@
.endif
.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