diff options
author | jmmv <jmmv@pkgsrc.org> | 2003-06-06 10:49:59 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2003-06-06 10:49:59 +0000 |
commit | f71671ae1236b69a0619048c5532e37edf407e38 (patch) | |
tree | 1a0456e6e6fc88c4e646b60d0ffbe362ba08dbbf /devel/apr/Makefile | |
parent | b5016077490b20ac96b29f7b13881a86bab45ec9 (diff) | |
download | pkgsrc-f71671ae1236b69a0619048c5532e37edf407e38.tar.gz |
Avoid hardcoding /usr/pkg in the configuration layouts (using the value from
the ${PREFIX} variable).
Diffstat (limited to 'devel/apr/Makefile')
-rw-r--r-- | devel/apr/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/devel/apr/Makefile b/devel/apr/Makefile index 570adf5832f..4a3ce4fd1a3 100644 --- a/devel/apr/Makefile +++ b/devel/apr/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2003/05/30 06:51:29 epg Exp $ +# $NetBSD: Makefile,v 1.4 2003/06/06 10:49:59 jmmv Exp $ PKGNAME= apr-${APR_VERSION}.${APACHE_VERSION} CATEGORIES= devel @@ -17,6 +17,13 @@ LIBTOOL_OVERRIDE= ${WRKSRC}/apr/libtool WRKSRC= ${WRKDIR}/${DISTNAME}/srclib BUILD_DIRS= ${WRKSRC}/apr ${WRKSRC}/apr-util +pre-configure: +.for f in apr/config.layout apr-util/config.layout + ${SED} -e 's|@PREFIX@|${PREFIX}|g' < ${WRKSRC}/$f > ${WRKSRC}/$f.new + ${MV} ${WRKSRC}/$f.new ${WRKSRC}/$f +.endfor +.undef f + do-configure: @cd ${WRKSRC}/apr && ${SETENV} ${CONFIGURE_ENV} ./configure \ --prefix=${PREFIX} \ |