diff options
author | jlam <jlam> | 2004-02-18 19:13:30 +0000 |
---|---|---|
committer | jlam <jlam> | 2004-02-18 19:13:30 +0000 |
commit | 447af209a80f7bc01d92246c350c8f9b173dff03 (patch) | |
tree | 9f2a6737f43812e9f9797ef5467fa3e0fa2db5a6 /devel/libtool-base | |
parent | bfe954f95c629a5e1a208f76d539f4a26b3330bb (diff) | |
download | pkgsrc-447af209a80f7bc01d92246c350c8f9b173dff03.tar.gz |
Configure and build shlibtool after configuring and building libtool,
resepectively. This makes the build output look more logically grouped
into phases.
Diffstat (limited to 'devel/libtool-base')
-rw-r--r-- | devel/libtool-base/Makefile | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/devel/libtool-base/Makefile b/devel/libtool-base/Makefile index 837c2a10f33..83a7fb14f26 100644 --- a/devel/libtool-base/Makefile +++ b/devel/libtool-base/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.28 2004/02/16 20:24:25 jlam Exp $ +# $NetBSD: Makefile,v 1.29 2004/02/18 19:13:30 jlam Exp $ # PKGNAME= ${DISTNAME:C/-/-base-/} @@ -49,39 +49,39 @@ CONFIGURE_ENV+= lt_cv_path_SED=${SED:Q} . include "../../devel/dlcompat/buildlink3.mk" .endif -BUILD_SHLIBTOOL?= YES -BUILDING_SHLIBTOOL?= NO +BUILD_SHLIBTOOL?= yes +BUILDING_SHLIBTOOL= no -.PHONY: fix-libtool -fix-libtool: - cd ${WRKSRC}; for f in libtool; do \ - ${SED} -e "s,-L${BUILDLINK_DIR}/lib,," $$f > $$f.new; \ - if [ -x $$f ]; then ${CHMOD} +x $$f.new; fi; \ - ${MV} -f $$f.new $$f; \ - done - -post-build: fix-libtool - -.if ${BUILDING_SHLIBTOOL} == "YES" -CONFIGURE_ARGS+= --disable-static +.if !empty(BUILD_SHLIBTOOL:M[nN][oO]) +PLIST_SUBST+= SHLIBTOOL="@comment" .else SHLIBTOOL_WRKDIR= ${WRKDIR}/shlibtool SHLIBTOOL_WRKSRC= ${WRKSRC:S/${WRKDIR}/${SHLIBTOOL_WRKDIR}/} -SHLIBTOOL_MAKEFLAGS= BUILDING_SHLIBTOOL=YES +SHLIBTOOL_MAKEFLAGS= BUILDING_SHLIBTOOL=yes SHLIBTOOL_MAKEFLAGS+= WRKDIR=${SHLIBTOOL_WRKDIR} - -. if ${BUILD_SHLIBTOOL} == "NO" -PLIST_SUBST+= SHLIBTOOL="@comment " -. else PLIST_SUBST+= SHLIBTOOL= +. if !empty(BUILDING_SHLIBTOOL:M[yY][eE][sS]) +CONFIGURE_ARGS+= --disable-static +. else +post-configure: + cd ${.CURDIR} && ${MAKE} configure ${SHLIBTOOL_MAKEFLAGS} post-build: cd ${.CURDIR} && ${MAKE} build ${SHLIBTOOL_MAKEFLAGS} +. endif post-install: - ${INSTALL_SCRIPT} ${SHLIBTOOL_WRKSRC}/libtool \ - ${PREFIX}/bin/shlibtool -. endif + ${INSTALL_SCRIPT} ${SHLIBTOOL_WRKSRC}/libtool ${PREFIX}/bin/shlibtool .endif +.PHONY: fix-libtool +fix-libtool: + cd ${WRKSRC}; for f in libtool; do \ + ${SED} -e "s,-L${BUILDLINK_DIR}/lib,," $$f > $$f.new; \ + if [ -x $$f ]; then ${CHMOD} +x $$f.new; fi; \ + ${MV} -f $$f.new $$f; \ + done + +post-build: fix-libtool + .include "../../mk/bsd.pkg.mk" |