Fix install with custom PREFIX

Reported by:	QATty
This commit is contained in:
Ion-Mihai Tetcu 2009-06-04 11:01:21 +00:00
parent 38840ddaa2
commit 1780b7d696
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=235160

View File

@ -23,6 +23,7 @@ USE_GMAKE= yes
post-patch:
@${FIND} ${WRKSRC} -name "Makefile" | ${XARGS} \
${REINPLACE_CMD} -e "s|make$$|${GMAKE}|" \
-e "s|^CFLAGS[ ]+=|CFLAGS +=|"
-e "s|^CFLAGS[ ]+=|CFLAGS +=|" \
-e "s|/usr/local|${PREFIX}|"
.include <bsd.port.mk>