Add support for STAGEDIR

This commit is contained in:
Pawel Pekala 2013-10-13 15:22:36 +00:00
parent 596cd74849
commit 23b203cb77
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=330232

View File

@ -52,20 +52,21 @@ CLASSPATH=.
CLASSPATH:=${CLASSPATH}:${JAVALIBDIR}/${jar}
.endfor
NO_STAGE= yes
post-patch:
${RM} -rf ${WRKSRC}/org/eclipse
@${SED} -E -e 's|%%CLASSPATH%%|${CLASSPATH}|' \
${FILESDIR}/build.xml > ${WRKSRC}/build.xml
do-install:
${MKDIR} ${JAVAJARDIR}
${INSTALL_DATA} ${WRKSRC}/dist/lib/${JARFILE} ${JAVAJARDIR}
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
@${MKDIR} ${STAGEDIR}${JAVAJARDIR}
${INSTALL_DATA} ${WRKSRC}/dist/lib/${JARFILE} ${STAGEDIR}${JAVAJARDIR}
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} \
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.for s in 16 32 64
${MKDIR} ${PREFIX}/share/icons/hicolor/${s}x${s}/apps
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/apps
${INSTALL_DATA} ${WRKDIR}/org/gudy/azureus2/ui/icons/a${s}.png \
${PREFIX}/share/icons/hicolor/${s}x${s}/apps/${PORTNAME}.png
${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/apps/${PORTNAME}.png
.endfor
.include <bsd.port.mk>
.undef MAKE_ARGS