aboutsummaryrefslogtreecommitdiffstats
path: root/devel/flex-sdk/Makefile
blob: 9ba58d3993ec3dbe74a0c5fe118ae5804d7dba62 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# New ports collection makefile for:    Adobe Flex SDK
# Date created:     18 Oct 2007
# Whom:         Jun Kuriyama <kuriyama@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   flex-sdk
PORTVERSION=    3.1.0.2710
CATEGORIES= devel java
MASTER_SITES=   http://flexorg.wip3.adobe.com/flexsdk/${PORTVERSION}/
DISTFILES=  flex_sdk_${PORTVERSION}_mpl.zip

MAINTAINER= kuriyama@FreeBSD.org
COMMENT=    Adobe Flex SDK

RUN_DEPENDS=    javavm:${PORTSDIR}/java/javavmwrapper

CONFLICTS=  ja-flex-sdk-2.* flex-sdk-2.*
USE_ZIP=    YES
USE_JAVA=   YES
JAVA_VERSION=   1.4+
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

do-install:
.for i in ${SCRIPTS}
    ${INSTALL_SCRIPT} ${WRKSRC}/${i}.sh ${PREFIX}/bin/${i}
.endfor

    ${MKDIR} ${JAVAJARDIR}/${PORTNAME}
    ${INSTALL_DATA} ${WRKSRC}/lib/*.jar ${JAVAJARDIR}/${PORTNAME}/
    ${INSTALL_DATA} ${WRKSRC}/ant/lib/*.jar ${JAVAJARDIR}/${PORTNAME}/

    ${MKDIR} ${DATADIR}/frameworks
    ${CP} -r ${WRKSRC}/frameworks/ ${DATADIR}/frameworks/

    ${MKDIR} ${DATADIR}/asdoc/templates
    ${CP} -r ${WRKSRC}/asdoc/templates/ ${DATADIR}/asdoc/templates/

    ${MKDIR} ${DOCSDIR}
    ${CP} -r ${WRKSRC}/*.htm ${DOCSDIR}/

.include <bsd.port.post.mk>