freebsd-ports/java/netbeans61/Makefile
Baptiste Daroussin 7c354b1913 Decommissioning java 1.5 (EOLed since October 2009):
suppress any reference to JAVA_VERSION=	1.5+ (part2)
2012-12-10 13:18:28 +00:00

45 lines
1.3 KiB
Makefile

# Created by: olgeni@FreeBSD.org
# $FreeBSD$
PORTNAME= netbeans
PORTVERSION= 6.1
PORTREVISION= 2
CATEGORIES= java devel
MASTER_SITES= http://dlc.sun.com.edgesuite.net/netbeans/6.1/final/zip/
DISTNAME= netbeans-${PORTVERSION}-200805300101-ml
MAINTAINER= ports@FreeBSD.org
COMMENT= A full-featured integrated environment for Java
USE_ZIP= yes
USE_JAVA= yes
JAVA_VERSION= 1.6+
NO_BUILD= yes
NO_LATEST_LINK= yes
WRKSRC= ${WRKDIR}/netbeans
SUB_FILES= pkg-install pkg-deinstall
.include <bsd.port.pre.mk>
post-patch:
@${RM} ${WRKSRC}/etc/netbeans.conf.orig
@${REINPLACE_CMD} -e "s@%%GREP%%@${GREP}@" \
-e "s@%%GCONFTOOL%%@${LOCALBASE}/bin/gconftool-2@" \
${WRKSRC}/platform8/lib/nbexec
do-configure:
@${REINPLACE_CMD} 's|%%JAVA_HOME%%|${JAVA_HOME}|' ${WRKSRC}/etc/netbeans.conf
@${RM} ${WRKSRC}/etc/netbeans.conf.bak
do-install:
@${MKDIR} ${PREFIX}/netbeans
@${CP} -r ${WRKSRC}/* ${PREFIX}/netbeans
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/netbeans
@${LN} -sf ${PREFIX}/netbeans/bin/netbeans ${PREFIX}/bin/netbeans
@(cd ${WRKDIR}; ${FIND} -s netbeans -not -type d) >> ${TMPPLIST}
@(cd ${WRKDIR}; ${FIND} -s -d netbeans -type d) | ${SED} -ne 's,^,@dirrm ,p' >> ${TMPPLIST}
@(cd ${WRKDIR}; ${FIND} -s -d netbeans -type d -empty) | ${SED} -ne 's,^,@exec mkdir -p %D/,p' >> ${TMPPLIST}
.include <bsd.port.post.mk>