- Fix build with custom LOCALBASE
Reported by: QATty
This commit is contained in:
parent
7f5fba69be
commit
5bed712e62
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=237845
1 changed files with 3 additions and 6 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue