summaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2001-03-23 15:57:14 +0000
committerlioux <lioux@FreeBSD.org>2001-03-23 15:57:14 +0000
commitf13fce7fdfee67f2c152fd73c651c4b7da6dd21c (patch)
tree92ae6f2d8eebfc7c777ce95e76791b7cc5d9d331 /mail
parent042aea7e380ab9b7399e0d253ca0c923be7a58fb (diff)
downloadFreeBSD-ports-f13fce7fdfee67f2c152fd73c651c4b7da6dd21c.zip
FreeBSD-ports-f13fce7fdfee67f2c152fd73c651c4b7da6dd21c.tar.gz
Help it be PREFIX safe.
Approved by: MAINTAINER
Diffstat (limited to 'mail')
-rw-r--r--mail/cclient/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/mail/cclient/Makefile b/mail/cclient/Makefile
index 7492e19..be9ecb4 100644
--- a/mail/cclient/Makefile
+++ b/mail/cclient/Makefile
@@ -26,12 +26,21 @@ SHLIBNAME= lib${SHLIBBASE}.so.${SHLIBMAJ}
MAKE_ENV= SHLIBNAME=${SHLIBNAME} SHLIBBASE=${SHLIBBASE}
PLIST_SUB= SHLIBNAME=${SHLIBNAME} SHLIBBASE=${SHLIBBASE}
+PREFIX_FIX_FILES= Makefile src/osdep/unix/Makefile \
+ src/osdep/unix/Makefile.gss \
+ src/osdep/unix/Makefile.ssl
+
.include <bsd.port.pre.mk>
.if ${PORTOBJFORMAT} == "aout"
SHLIBNAME= lib${SHLIBBASE}.so.${SHLIBMAJ}.0
.endif
+post-patch:
+.for file in ${PREFIX_FIX_FILES}
+ @${PERL} -pi -ne "s!/usr/local!${PREFIX}!g" ${WRKSRC}/${file}
+.endfor
+
post-configure:
@${ECHO_MSG} ">> The c-client shared library will be named ${SHLIBNAME}"
OpenPOWER on IntegriCloud