1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00
freebsd-ports/java/netbeans/Makefile
Koop Mast acc1dff37c java/netbeans: update to 12.3.
Set execute bit on maven binary so netbeans can run it. [1]

PR:		248192 [1]
Submitted by:	akruijff@dds.nl
2021-04-08 22:59:07 +02:00

54 lines
1.3 KiB
Makefile

# Created by: olgeni@FreeBSD.org
PORTNAME= netbeans
DISTVERSION= 12.3
CATEGORIES= java devel
MASTER_SITES= APACHE/netbeans/netbeans/${PORTVERSION}/
DISTNAME= netbeans-${DISTVERSION}-bin
MAINTAINER= kwm@FreeBSD.org
COMMENT= Modular, standards-based integrated development environment
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= shebangfix zip
USE_JAVA= yes
JAVA_VERSION= 1.8+
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/python2.7
WRKSRC= ${WRKDIR}/netbeans
DATADIR= ${PREFIX}/${PORTNAME}-${PORTVERSION}
PLIST_SUB+= PORTVERSION=${PORTVERSION}
DESKTOP_ENTRIES="Apache NetBeans" \
"Apache NetBeans IDE (incubating)" \
${DATADIR}/nb/netbeans.png \
${PORTNAME}-${PORTVERSION} \
"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 ${DATADIR}/bin/netbeans bin/${PORTNAME}-${PORTVERSION}
${RM} -rf ${STAGEDIR}${DATADIR}/profiler/lib/deployed/jdk16/linux-arm*
.include <bsd.port.mk>