aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorpgollucci <pgollucci@FreeBSD.org>2009-07-15 12:39:36 +0800
committerpgollucci <pgollucci@FreeBSD.org>2009-07-15 12:39:36 +0800
commitf853c0ad186fab278662cedd2d0a6a2e5e82993d (patch)
tree9b757a86d0a448b7fd9e605dac5c2b01c8f419a6 /textproc
parente09a384e2fc24a2af6d1740fc76b8e7ee4d88330 (diff)
downloadfreebsd-ports-gnome-f853c0ad186fab278662cedd2d0a6a2e5e82993d.tar.gz
freebsd-ports-gnome-f853c0ad186fab278662cedd2d0a6a2e5e82993d.tar.zst
freebsd-ports-gnome-f853c0ad186fab278662cedd2d0a6a2e5e82993d.zip
- Fix build with custom PREFIX
Reported by: QATty
Diffstat (limited to 'textproc')
-rw-r--r--textproc/sgmls/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/textproc/sgmls/Makefile b/textproc/sgmls/Makefile
index be15c915dd3c..8098796b1a1a 100644
--- a/textproc/sgmls/Makefile
+++ b/textproc/sgmls/Makefile
@@ -24,6 +24,9 @@ MAN1= sgmls.1 sgmlsasp.1 rast.1
PROGS= sgmls sgmlsasp rast
DOCS= ChangeLog INSTALL LICENSE NEWS README TODO
+post-patch:
+ @${REINPLACE_CMD} -e 's,/usr/local,${PREFIX},g' ${WRKSRC}/Makefile
+
post-build:
.for file in ${PROGS}
@${STRIP_CMD} ${WRKSRC}/${file}
@@ -34,8 +37,8 @@ post-install:
.if !defined(NOPORTDOCS)
@${ECHO_MSG} "===> Installing documentation for ${PKGNAME}"
@-${MKDIR} ${DOCSDIR}
-.for file in ${DOCS}
- @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+.for f in ${DOCS}
+ @${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif