freebsd-ports/java/netbeans/Makefile
Mathieu Arnold f899c758a6 When there is a do-install target, do not use a post-install target, do
everything at once.  Sometime, rename post-install into a options helper
target.

I did not fix ports that were such a mess that I could not figure out
what they really wanted to do.  I also did not change ports that had
some version of an auto-plist code in post-install, for the same reason.

With hat:	portmgr
Sponsored by:	Absolight
2016-07-19 11:04:13 +00:00

50 lines
1.4 KiB
Makefile

# Created by: olgeni@FreeBSD.org
# $FreeBSD$
PORTNAME= netbeans
PORTVERSION= 8.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}-201510222201
MAINTAINER= kwm@FreeBSD.org
COMMENT= Modular, standards-based integrated development environment
LICENSE= CDDL GPLv2
LICENSE_COMB= dual
USES= shebangfix zip
SHEBANG_FILES= extide/ant/bin/antRun.pl \
extide/ant/bin/complete-ant-cmd.pl \
extide/ant/bin/runant.pl \
extide/ant/bin/runant.py
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}
${FIND} ${STAGEDIR}${DATADIR} -type f -ipath "*/bin/*" | ${XARGS} ${CHMOD} ${BINMODE}
.include <bsd.port.mk>