2003-06-02 14:18:17 +02:00
|
|
|
# New ports collection makefile for: netbeans
|
|
|
|
# Date Created: 2 Jun 2003
|
|
|
|
# Whom: olgeni@FreeBSD.org
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= netbeans
|
2007-12-19 12:31:01 +01:00
|
|
|
PORTVERSION= 6.0
|
2003-06-02 14:18:17 +02:00
|
|
|
CATEGORIES= java devel
|
2007-12-19 12:31:01 +01:00
|
|
|
MASTER_SITES= http://download.netbeans.org/netbeans/6.0/final/zip/
|
2007-05-29 15:36:10 +02:00
|
|
|
|
2007-12-19 12:31:01 +01:00
|
|
|
DISTNAME= netbeans-6.0-200711261600
|
2003-06-02 14:18:17 +02:00
|
|
|
|
|
|
|
MAINTAINER= olgeni@FreeBSD.org
|
|
|
|
COMMENT= A full-featured integrated environment for Java
|
|
|
|
|
2007-12-19 12:31:01 +01:00
|
|
|
USE_ZIP= yes
|
2006-02-13 19:53:33 +01:00
|
|
|
USE_JAVA= yes
|
2006-11-21 23:58:56 +01:00
|
|
|
JAVA_VERSION= 1.5+
|
2003-06-02 14:18:17 +02:00
|
|
|
NO_BUILD= yes
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/netbeans
|
|
|
|
|
2006-11-21 23:58:56 +01:00
|
|
|
SUB_FILES= pkg-install pkg-deinstall
|
2003-06-02 17:51:50 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-09-07 12:16:34 +02:00
|
|
|
post-patch:
|
|
|
|
@${RM} ${WRKSRC}/etc/netbeans.conf.orig
|
2007-12-19 21:33:23 +01:00
|
|
|
@${REINPLACE_CMD} -e "s@%%GREP%%@${GREP}@" \
|
|
|
|
-e "s@%%GCONFTOOL%%@${LOCALBASE}/bin/gconftool-2@" \
|
|
|
|
${WRKSRC}/platform7/lib/nbexec
|
2006-09-07 12:16:34 +02:00
|
|
|
|
2006-03-20 20:32:56 +01:00
|
|
|
do-configure:
|
|
|
|
@${REINPLACE_CMD} 's|%%JAVA_HOME%%|${JAVA_HOME}|' ${WRKSRC}/etc/netbeans.conf
|
2006-09-07 12:16:34 +02:00
|
|
|
@${RM} ${WRKSRC}/etc/netbeans.conf.bak
|
2006-03-20 20:32:56 +01:00
|
|
|
|
2003-06-02 14:18:17 +02:00
|
|
|
do-install:
|
2006-02-13 19:38:38 +01:00
|
|
|
@${MKDIR} ${PREFIX}/netbeans
|
|
|
|
@${CP} -r ${WRKSRC}/* ${PREFIX}/netbeans
|
|
|
|
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/netbeans
|
|
|
|
@${LN} -sf ${PREFIX}/netbeans/bin/netbeans ${PREFIX}/bin/netbeans
|
2006-11-21 23:58:56 +01:00
|
|
|
@(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}
|
2003-06-02 14:18:17 +02:00
|
|
|
|
2003-06-02 17:51:50 +02:00
|
|
|
.include <bsd.port.post.mk>
|