1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- add stage support

This commit is contained in:
Olli Hauer 2014-05-31 10:22:22 +00:00
parent 52bb5e052b
commit 7285b08e9f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=355951

View File

@ -33,7 +33,6 @@ AP_LIB= ${LOCALBASE}/lib
PORTEXAMPLES= *.sql tsa.conf
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMYSQL}
@ -66,11 +65,12 @@ CONFIGURE_ARGS+= --with-debug=yes
CONFIGURE_ARGS+= --with-debug-memory=yes
.endif
post-patch:
${REINPLACE_CMD} -e 's|-i -a|-i -S LIBEXECDIR=${STAGEDIR}${PREFIX}/${APACHEMODDIR}|' \
${WRKSRC}/Makefile.in
post-install:
.if ${PORT_OPTIONS:MEXAMPLES}
${MKDIR} ${EXAMPLESDIR}/
${INSTALL_DATA} ${WRKSRC}/*.sql ${EXAMPLESDIR}/
${INSTALL_DATA} ${WRKSRC}/tsa.conf ${EXAMPLESDIR}/
.endif
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/*.sql ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/tsa.conf ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>