blob: cef32d4ad5fb762c327699c825b41c20818a80e1 (
plain)
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# New ports collection makefile for: x10
# Date created: 2011-10-12
# Whom: Jason Bacon <jwbacon@tds.net>
#
# $FreeBSD$
#
PORTNAME= x10
PORTVERSION= 2.2.1
CATEGORIES= lang devel java
MASTER_SITES= http://dist.codehaus.org/x10/dependencies/ \
SF
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
DISTFILES= ${PORTNAME}-${PORTVERSION}-src${EXTRACT_SUFX} \
lpg.runtime.java_2.0.22.jar \
ecj-3.5.1.jar \
com.ibm.wala.cast.java_1.0.0.201101071300.jar \
com.ibm.wala.cast_1.0.0.201101071300.jar \
com.ibm.wala.core_1.1.3.201101071300.jar \
com.ibm.wala.shrike_1.3.1.201101071300.jar \
org.eclipse.equinox.common_3.6.0.v20100503.jar \
commons-math-2.2.jar \
bdwgc-7.1.tar.gz
EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}-src${EXTRACT_SUFX}
MAINTAINER= jwbacon@tds.net
COMMENT= Object-oriented parallal programming language
USE_BZIP2= yes
USE_JAVA= yes
JAVA_VERSION= 1.5+
USE_ANT= yes
USE_LDCONFIG= ${PREFIX}/stdlib/lib
# Can't have USE_GMAKE with USE_ANT: They imply conflicting do-build actions.
BUILD_DEPENDS+= gmake:${PORTSDIR}/devel/gmake \
bash:${PORTSDIR}/shells/bash
WRKSRC= ${WRKDIR}/x10.dist
post-patch:
${REINPLACE_CMD} -e 's/value="make"/value="gmake"/g' \
${WRKDIR}/x10.runtime/build.xml
${MKDIR} ${WRKSRC}/lib ${WRKDIR}/x10.runtime/src-cpp/bdwgc/src
${CP} ${DISTDIR}/lpg.runtime.java_2.0.22.jar ${WRKSRC}/lib/lpg.jar
${CP} ${DISTDIR}/ecj-3.5.1.jar ${WRKSRC}/lib/ecj.jar
${CP} ${DISTDIR}/com.ibm.wala.cast.java_1.0.0.201101071300.jar ${WRKSRC}/lib
${CP} ${DISTDIR}/com.ibm.wala.cast_1.0.0.201101071300.jar ${WRKSRC}/lib
${CP} ${DISTDIR}/com.ibm.wala.core_1.1.3.201101071300.jar ${WRKSRC}/lib
${CP} ${DISTDIR}/com.ibm.wala.shrike_1.3.1.201101071300.jar ${WRKSRC}/lib
${CP} ${DISTDIR}/org.eclipse.equinox.common_3.6.0.v20100503.jar ${WRKSRC}/lib
${CP} ${DISTDIR}/commons-math-2.2.jar ${WRKSRC}/lib
${CP} ${DISTDIR}/bdwgc-7.1.tar.gz ${WRKDIR}/x10.runtime/src-cpp/bdwgc
do-install:
.for f in X10Launcher apgas precommit x10 x10c x10c++ x10j
${INSTALL_SCRIPT} ${WRKSRC}/bin/${f} ${PREFIX}/bin
.endfor
${MKDIR} ${PREFIX}/stdlib
${INSTALL_DATA} ${WRKSRC}/etc/* ${PREFIX}/etc
${INSTALL_DATA} ${WRKSRC}/include/* ${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/lib/* ${PREFIX}/lib
${CP} -R ${WRKSRC}/stdlib/* ${PREFIX}/stdlib
.if !defined(NOPORTEXAMPLES)
${MKDIR} ${EXAMPLESDIR}
${CP} -R ${WRKSRC}/samples/* ${EXAMPLESDIR}
.endif
.include <bsd.port.mk>
|