- Fix build with custom LOCALBASE

Reported by:    QATty
This commit is contained in:
Philip M. Gollucci 2009-07-15 04:33:20 +00:00
parent 7f5fba69be
commit 5bed712e62
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=237845

View file

@ -18,16 +18,13 @@ ALL_TARGET= ${PORTNAME}
MAN1= etunnel.1 MAN1= etunnel.1
post-patch: post-patch:
@${REINPLACE_CMD} -e \ @${REINPLACE_CMD} -e 's|CC=gcc|CC?=gcc|g' -e 's|/usr/local|${PREFIX}|g' -e 's|CFLAGS=|CFLAGS+=|g' ${WRKSRC}/Makefile
's|CC=gcc|CC?=gcc|g ; \
s|PREFIX=|PREFIX?=|g ; \
s|CFLAGS=|CFLAGS+=|g' ${WRKSRC}/Makefile
post-install: post-install:
.if !defined(NOPORTDOCS) .if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR} ${MKDIR} ${DOCSDIR}/
.for i in README .for i in README
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/
.endfor .endfor
.endif .endif