From 5c9c05f1a5406a3889f410c2b1b43d6030cf7d98 Mon Sep 17 00:00:00 2001 From: Mikhail Teterin Date: Wed, 17 Oct 2001 15:43:08 +0000 Subject: Prepend the bsd.port.pre.mk to the conditional patching /usr/local -> ${LOCALBASE}. The condition was, naturally ${LOCALBASE} != /usr/local, but the value of LOCALBASE is not necessarily known without bsd.port.pre.mk. Sorry for the breakage. Submitted by: Brian Dean, Dan Langille --- comms/hylafax/Makefile | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'comms/hylafax') diff --git a/comms/hylafax/Makefile b/comms/hylafax/Makefile index ccc7b13ca281..70da04e2aaa2 100644 --- a/comms/hylafax/Makefile +++ b/comms/hylafax/Makefile @@ -58,13 +58,6 @@ SUID_EXES= ${PREFIX}/sbin/faxgetty ${PREFIX}/sbin/faxq \ post-extract: ${RM} -rf ${WRKSRC}/zlib ${WRKSRC}/regex -.if ${LOCALBASE} != "/usr/local" -post-patch: - ${PERL} -pi -e 's^/usr/local^${LOCALBASE}^g' \ - `find work/hylafax-4.1 -type f -print0 | \ - xargs -0 fgrep -l --mmap /usr/local` -.endif - post-install: ${CHOWN} uucp ${SUID_EXES} ${CHMOD} 4555 ${SUID_EXES} @@ -75,4 +68,13 @@ post-install: fi @${SED} 's^/usr/local^${PREFIX}^g' < ${PKGMESSAGE} -.include +.include + +.if ${LOCALBASE} != /usr/local +post-patch: + ${PERL} -pi -e 's^/usr/local^${LOCALBASE}^g' \ + `find work/hylafax-4.1 -type f -print0 | \ + xargs -0 fgrep -l --mmap /usr/local` +.endif + +.include -- cgit v1.2.3