diff options
author | Ion-Mihai Tetcu <itetcu@FreeBSD.org> | 2009-07-06 17:14:44 +0000 |
---|---|---|
committer | Ion-Mihai Tetcu <itetcu@FreeBSD.org> | 2009-07-06 17:14:44 +0000 |
commit | 83016998af2ad50559d286f6be43c59ef596cedf (patch) | |
tree | 5ad289c90e34f0101ec48c0c9f85b18647500612 | |
parent | Update to 5.12 which works with out current lang/ocaml-5.11.1. (diff) |
Fix with custom LOCALBASE / PREFIX
Submitted by: Sahil Tandon
Reported by: QATty
Notes
Notes:
svn path=/head/; revision=237267
-rw-r--r-- | net/tvark/Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/net/tvark/Makefile b/net/tvark/Makefile index b4ad01847978..4421a4b2903f 100644 --- a/net/tvark/Makefile +++ b/net/tvark/Makefile @@ -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> |