diff options
author | lofi <lofi@FreeBSD.org> | 2005-10-19 02:33:22 +0800 |
---|---|---|
committer | lofi <lofi@FreeBSD.org> | 2005-10-19 02:33:22 +0800 |
commit | 67db65c97cd317e5cab7f3cecc46be0106452199 (patch) | |
tree | e2a13a0913b293b4f674ecce0184661d602af9be /print/foomatic-db-hpijs | |
parent | 36f0c37b69a32aac5ee184bcbcc389d39d286b54 (diff) | |
download | freebsd-ports-gnome-67db65c97cd317e5cab7f3cecc46be0106452199.tar.gz freebsd-ports-gnome-67db65c97cd317e5cab7f3cecc46be0106452199.tar.zst freebsd-ports-gnome-67db65c97cd317e5cab7f3cecc46be0106452199.zip |
Make PREFIX-safe
Diffstat (limited to 'print/foomatic-db-hpijs')
-rw-r--r-- | print/foomatic-db-hpijs/Makefile | 5 | ||||
-rw-r--r-- | print/foomatic-db-hpijs/files/patch-configure | 24 |
2 files changed, 27 insertions, 2 deletions
diff --git a/print/foomatic-db-hpijs/Makefile b/print/foomatic-db-hpijs/Makefile index 253b42ff86e5..63b809315327 100644 --- a/print/foomatic-db-hpijs/Makefile +++ b/print/foomatic-db-hpijs/Makefile @@ -19,5 +19,10 @@ RUN_DEPENDS= ${LOCALBASE}/share/foomatic/db/oldprinterids:${PORTSDIR}/print/foom GNU_CONFIGURE= yes USE_GMAKE= yes +USE_REINPLACE= yes + +post-patch: + ${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \ + -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/configure .include <bsd.port.mk> diff --git a/print/foomatic-db-hpijs/files/patch-configure b/print/foomatic-db-hpijs/files/patch-configure index 21cd21aa9ecb..b204a43ea0f0 100644 --- a/print/foomatic-db-hpijs/files/patch-configure +++ b/print/foomatic-db-hpijs/files/patch-configure @@ -1,5 +1,14 @@ ---- configure.orig Sat Sep 17 02:25:59 2005 -+++ configure Sat Sep 17 02:26:04 2005 +--- configure.orig Wed May 21 23:01:15 2003 ++++ configure Tue Oct 18 20:23:45 2005 +@@ -9,7 +9,7 @@ + + # Defaults: + ac_help= +-ac_default_prefix=/usr/local ++ac_default_prefix=%%PREFIX%% + # Any additions from configure.in: + + # Initialize some variables set by options. @@ -522,7 +522,7 @@ @@ -9,3 +18,14 @@ sysconfdir=/etc fi +@@ -658,8 +658,8 @@ + fi + + +-BINSEARCHPATH=/usr/bin:/bin:/usr/local/bin +-DATASEARCHPATH=/usr/share:/usr/local/share:/usr/lib:/usr/local/lib:/opt ++BINSEARCHPATH=/usr/bin:/bin:%%LOCALBASE%%/bin ++DATASEARCHPATH=/usr/share:%%LOCALBASE%%/share:/usr/lib:%%LOCALBASE%%/lib:/opt + + for ac_prog in perl + do |