diff options
author | jlam <jlam@pkgsrc.org> | 2004-01-05 11:12:46 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-01-05 11:12:46 +0000 |
commit | 94985359bdea645015459a9284d56f18e1bb8187 (patch) | |
tree | 8572fd3df2cd8b7ec42b004bae272ab1b536618e /devel/libtool-base | |
parent | d279e6f535dc80e70f53ddd04e1769c0e1086d32 (diff) | |
download | pkgsrc-94985359bdea645015459a9284d56f18e1bb8187.tar.gz |
"bl3ify": [v] to convert a package to use the buildlink3 framework.
Diffstat (limited to 'devel/libtool-base')
-rw-r--r-- | devel/libtool-base/Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/devel/libtool-base/Makefile b/devel/libtool-base/Makefile index 54791a93d9c..58735fc1d0b 100644 --- a/devel/libtool-base/Makefile +++ b/devel/libtool-base/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.17 2003/09/18 16:25:12 jmmv Exp $ +# $NetBSD: Makefile,v 1.18 2004/01/05 11:12:46 jlam Exp $ # .include "../../devel/libtool/Makefile.common" @@ -35,6 +35,16 @@ CONFIGURE_ARGS= --enable-ltdl-install 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 .else |