forked from Lainports/freebsd-ports
Fix with custom LOCALBASE / PREFIX
Submitted by: Sahil Tandon Reported by: QATty
This commit is contained in:
parent
2d16875c46
commit
83016998af
1 changed files with 5 additions and 3 deletions
|
|
@ -22,8 +22,10 @@ USE_MYSQL= yes
|
|||
.include <bsd.port.pre.mk>
|
||||
|
||||
post-patch:
|
||||
@${PERL} -pi -e "s|/usr/local/bin|${PREFIX}/bin|" ${WRKSRC}/Makefile
|
||||
@${PERL} -pi -e "s|gtk-config|${GTK_CONFIG}|" ${WRKSRC}/Makefile
|
||||
@${PERL} -pi -e "s|-ggdb|${CFLAGS}|" ${WRKSRC}/Makefile
|
||||
@${REINPLACE_CMD} -E -e "s|^(LDFLAGS.*)/usr/local|\1${LOCALBASE}|" \
|
||||
-e "s|/usr/local/bin|${PREFIX}/bin|" \
|
||||
-e "s|gtk-config|${GTK_CONFIG}|g" \
|
||||
-e "s|-ggdb|${CFLAGS}|" \
|
||||
${WRKSRC}/Makefile
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue