blob: 47ef1784dd405bb6318028cc325ab3cedf043622 (
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
|
# ex:ts=8
# New ports collection makefile for: netbeans
# Date Created: 2 Jun 2003
# Whom: olgeni@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= netbeans
PORTVERSION= 7.2.1
CATEGORIES= java devel
MASTER_SITES= http://download.netbeans.org/netbeans/${PORTVERSION}/final/zip/ \
http://dlc.sun.com.edgesuite.net/netbeans/${PORTVERSION}/final/zip/
DISTNAME= netbeans-${PORTVERSION}-201210100934-ml
MAINTAINER= gahr@FreeBSD.org
COMMENT= A full-featured integrated environment for Java
USE_ZIP= yes
USE_JAVA= yes
JAVA_VERSION= 1.6+
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 '19s|#||;19s|/path/to/jdk|${JAVA_HOME}|' \
${WRKSRC}/etc/netbeans.conf
@${REINPLACE_CMD} -i "" -e 's|%%GCONFTOOL2%%|${LOCALBASE}/bin/gconftool-2|g; \
s|%%GREP%%|${GREP}|g;s|%%SED%%|${SED}|g;s|%%FGREP%%|`which fgrep`|g;s|%%AWK%%|${AWK}|g' \
${WRKSRC}/platform/lib/nbexec
@${FIND} ${WRKSRC} -name "*.orig" -delete
do-install:
@(cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${DATADIR})
@${CHMOD} ${BINMODE} ${DATADIR}/bin/netbeans
@${LN} -sf ${DATADIR}/bin/netbeans ${PREFIX}/bin/${PORTNAME}-${PORTVERSION}
post-install:
@${CHMOD} ${BINMODE} ${DATADIR}/java/maven/bin/mvn
.include <bsd.port.mk>
|