mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-30 01:15:52 +00:00
c0b57219c9
PR: 185423 Submitted by: Hardy Schumacher <hardy.schumacher@gmx.de>
50 lines
1.3 KiB
Makefile
50 lines
1.3 KiB
Makefile
# Created by: olgeni@FreeBSD.org
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= netbeans
|
|
PORTVERSION= 7.4
|
|
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}-201310111528
|
|
|
|
MAINTAINER= gahr@FreeBSD.org
|
|
COMMENT= A full-featured integrated environment for Java
|
|
|
|
LICENSE= CDDL GPLv2
|
|
LICENSE_COMB= multi
|
|
|
|
USE_ZIP= yes
|
|
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
|
|
@${REINPLACE_CMD} -i "" -e 's|%%GREP%%|${GREP}|g' \
|
|
${WRKSRC}/platform/lib/nbexec
|
|
@${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:
|
|
@${CHMOD} ${BINMODE} ${STAGEDIR}${DATADIR}/java/maven/bin/mvn
|
|
|
|
.include <bsd.port.mk>
|