aboutsummaryrefslogtreecommitdiffstats
path: root/mail/cclient
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2001-03-23 23:57:14 +0800
committerlioux <lioux@FreeBSD.org>2001-03-23 23:57:14 +0800
commitf13fce7fdfee67f2c152fd73c651c4b7da6dd21c (patch)
tree92ae6f2d8eebfc7c777ce95e76791b7cc5d9d331 /mail/cclient
parent042aea7e380ab9b7399e0d253ca0c923be7a58fb (diff)
downloadfreebsd-ports-graphics-f13fce7fdfee67f2c152fd73c651c4b7da6dd21c.tar.gz
freebsd-ports-graphics-f13fce7fdfee67f2c152fd73c651c4b7da6dd21c.tar.zst
freebsd-ports-graphics-f13fce7fdfee67f2c152fd73c651c4b7da6dd21c.zip
Help it be PREFIX safe.
Approved by: MAINTAINER
Diffstat (limited to 'mail/cclient')
-rw-r--r--mail/cclient/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/mail/cclient/Makefile b/mail/cclient/Makefile
index 7492e19e982..be9ecb4043c 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}"