a2b7f89d83
Update JAVA field to jdk 11 and 17, which are the offical supported jdk's. Changes 16: https://github.com/apache/netbeans/releases/tag/16 Changes 15: https://github.com/apache/netbeans/releases/tag/15 Changes 14: https://github.com/apache/netbeans/releases/tag/14 Changes 13: https://github.com/apache/netbeans/releases/tag/13 PR: 268268 Reported by: i@vboldin.ru
55 lines
1.5 KiB
Makefile
55 lines
1.5 KiB
Makefile
PORTNAME= netbeans
|
|
DISTVERSION= 16
|
|
CATEGORIES= java devel
|
|
MASTER_SITES= APACHE/netbeans/netbeans/${PORTVERSION}/
|
|
DISTNAME= netbeans-${DISTVERSION}-bin
|
|
|
|
MAINTAINER= kwm@FreeBSD.org
|
|
COMMENT= Modular, standards-based integrated development environment
|
|
WWW= https://netbeans.apache.org/
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USES= cpe shebangfix zip
|
|
|
|
CPE_VENDOR= apache
|
|
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 11 17
|
|
NO_BUILD= yes
|
|
|
|
SHEBANG_FILES= extide/ant/bin/antRun.pl \
|
|
extide/ant/bin/complete-ant-cmd.pl \
|
|
extide/ant/bin/runant.pl \
|
|
extide/ant/bin/runant.py
|
|
|
|
perl_OLD_CMD= /usr/bin/perl
|
|
perl_CMD= ${LOCALBASE}/bin/perl
|
|
python_OLD_CMD= /usr/bin/python
|
|
python_CMD= ${LOCALBASE}/bin/python${PYTHON_DEFAULT}
|
|
|
|
WRKSRC= ${WRKDIR}/netbeans
|
|
DATADIR= ${PREFIX}/${PORTNAME}-${PORTVERSION}
|
|
|
|
PLIST_SUB+= PORTVERSION=${PORTVERSION}
|
|
|
|
DESKTOP_ENTRIES="Apache NetBeans" \
|
|
"Apache NetBeans IDE (incubating)" \
|
|
${DATADIR}/nb/netbeans.png \
|
|
${PORTNAME} \
|
|
"Development;" \
|
|
false
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -i '' -e '77s|#||;77s|/path/to/jdk|${JAVA_HOME}|' \
|
|
${WRKSRC}/etc/netbeans.conf
|
|
@${FIND} ${WRKSRC} -name "*.orig" -delete
|
|
|
|
do-install:
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}
|
|
cd ${STAGEDIR}${PREFIX} && ${LN} -sf ../${PORTNAME}-${PORTVERSION}/bin/netbeans bin/${PORTNAME}
|
|
cd ${STAGEDIR}${PREFIX} && ${LN} -sf ../${PORTNAME}-${PORTVERSION}/bin/netbeans bin/${PORTNAME}-${PORTVERSION}
|
|
${RM} -rf ${STAGEDIR}${DATADIR}/profiler/lib/deployed/jdk16/linux-arm*
|
|
|
|
.include <bsd.port.mk>
|