1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/devel/flex-sdk/Makefile
Vanilla I. Shu 84169c6067 Stageify.
Approved by:	portmgr@
2014-05-24 10:19:26 +00:00

53 lines
1.5 KiB
Makefile

# $FreeBSD$
PORTNAME= flex-sdk
PORTVERSION= 4.6.0.23201
CATEGORIES= devel java
MASTER_SITES= http://fpdownload.adobe.com/pub/flex/sdk/builds/flex4.6/
DISTNAME= flex_sdk_${PORTVERSION}_mpl
MAINTAINER= kuriyama@FreeBSD.org
COMMENT= Adobe Flex SDK
RUN_DEPENDS= javavm:${PORTSDIR}/java/javavmwrapper
CONFLICTS= ja-flex-sdk-2.* flex-sdk2-2.* flex-sdk3-3.*
USES= zip
USE_JAVA= YES
JAVA_VERSION= 1.6+
WRKSRC= ${WRKDIR}
SUB_FILES= ${SCRIPTS:C/\$/.sh/g}
NO_BUILD= YES
PLIST_SUB= PORTNAME=${PORTNAME}
SUB_LIST= PORTNAME=${PORTNAME}
SCRIPTS= aasdoc acompc amxmlc asdoc compc copylocale digest \
fcsh fdb mxmlc optimizer
.include <bsd.port.pre.mk>
post-extract:
${RM} ${WRKSRC}/bin/*.bat ${WRKSRC}/bin/*.exe
${FIND} ${WRKSRC} -print0 -type f | ${XARGS} -0 ${CHMOD} og+r
${FIND} ${WRKSRC} -print0 -type f -perm +0111 | ${XARGS} -0 ${CHMOD} og+rx
${FIND} ${WRKSRC} -print0 -type d | ${XARGS} -0 ${CHMOD} og+rx
do-install:
.for i in ${SCRIPTS}
${INSTALL_SCRIPT} ${WRKSRC}/${i}.sh ${STAGEDIR}${PREFIX}/bin/${i}
.endfor
${MKDIR} ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/lib/*.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}/
${INSTALL_DATA} ${WRKSRC}/ant/lib/*.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}/
${MKDIR} ${STAGEDIR}${DATADIR}/frameworks
${CP} -r ${WRKSRC}/frameworks/ ${STAGEDIR}${DATADIR}/frameworks/
${MKDIR} ${STAGEDIR}${DATADIR}/asdoc/templates
${CP} -r ${WRKSRC}/asdoc/templates/ ${STAGEDIR}${DATADIR}/asdoc/templates/
${MKDIR} ${STAGEDIR}${DOCSDIR}
${CP} -r ${WRKSRC}/*.htm ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.post.mk>