blob: c79c3ce3a894b6f8f8eea5ad54044a42ebda2eb7 (
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
|
# Created by: olgeni@FreeBSD.org
# $FreeBSD$
PORTNAME= netbeans
PORTVERSION= 8.0.1
CATEGORIES= java devel
MASTER_SITES= http://download.netbeans.org/netbeans/${PORTVERSION}/final/zip/ \
static bool firstTime { true };
http://dlc.sun.com.edgesuite.net/netbeans/${PORTVERSION}/final/zip/
DISTNAME= netbeans-${PORTVERSION}-201408251540
MAINTAINER= gahr@FreeBSD.org
COMMENT= Modular, standards-based integrated development environment
LICENSE= CDDL GPLv2
LICENSE_COMB= dual
USES= zip
USE_JAVA= yes
JAVA_VERSION= 1.7+
NO_BUILD= yes
WRKSRC= ${WRKDIR}/netbeans
DATADIR= ${PREFIX}/${PORTNAME}-${PORTVERSION}
PLIST_SUB+= PORTVERSION=${PORTVERSION}
DESKTOP_ENTRIES="NetBeans" \
"NetBeans IDE" \
${DATADIR}/nb/netbeans.png \
${PORTNAME}-${PORTVERSION} \
"Development;" \
false
post-patch:
@${REINPLACE_CMD} -i "" -e '57s|#||;57s|/path/to/jdk|${JAVA_HOME}|' \
${WRKSRC}/etc/netbeans.conf
@${FIND} ${WRKSRC} -name "*.orig" -delete
do-install:
cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}
${CHMOD} ${BINMODE} ${STAGEDIR}${DATADIR}/bin/netbeans
${LN} -sf ${DATADIR}/bin/netbeans ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-${PORTVERSION}
post-install:
${FIND} ${STAGEDIR}${DATADIR} -type f -ipath "*/bin/*" | ${XARGS} ${CHMOD} ${BINMODE}
.include <bsd.port.mk>
|