- Fix build with custom PREFIX
Reported by: QATty
This commit is contained in:
parent
5bed712e62
commit
d244a54472
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=237846
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user