1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Support staging

This commit is contained in:
Renato Botelho 2013-10-23 22:30:27 +00:00
parent 79375e77af
commit 79a4b63aee
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=331438

View File

@ -19,7 +19,6 @@ PORTDOCS= README.txt INSTALL.txt mysql.sql
OPTIONS_DEFINE= MYSQL DOCS
NO_STAGE= yes
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MMYSQL}
@ -31,15 +30,15 @@ post-patch:
@${REINPLACE_CMD} -e 's/-liconv/${ICONV_LIB}/' ${WRKSRC}/configure
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/scanhill ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/scanhill.conf ${PREFIX}/etc/scanhill.conf-dist
${INSTALL_PROGRAM} ${WRKSRC}/scanhill ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/scanhill.conf ${STAGEDIR}${PREFIX}/etc/scanhill.conf-dist
.if !exists(${PREFIX}/etc/scanhill.conf)
${INSTALL_DATA} ${WRKSRC}/scanhill.conf ${PREFIX}/etc/
${INSTALL_DATA} ${WRKSRC}/scanhill.conf ${STAGEDIR}${PREFIX}/etc/
.endif
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${MKDIR} ${STAGEDIR}${DOCSDIR}
. for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
. endfor
.endif