2003-06-02 12:18:17 +00:00
|
|
|
# New ports collection makefile for: netbeans
|
|
|
|
# Date Created: 2 Jun 2003
|
|
|
|
# Whom: olgeni@FreeBSD.org
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2006-02-18 16:26:01 +00:00
|
|
|
PORTNAME= netbeans4
|
2005-05-16 18:57:59 +00:00
|
|
|
PORTVERSION= 4.1
|
2003-06-02 12:18:17 +00:00
|
|
|
CATEGORIES= java devel
|
2005-05-16 18:57:59 +00:00
|
|
|
MASTER_SITES=
|
|
|
|
DISTNAME= netbeans-4_1
|
2003-06-02 12:18:17 +00:00
|
|
|
|
|
|
|
MAINTAINER= olgeni@FreeBSD.org
|
|
|
|
COMMENT= A full-featured integrated environment for Java
|
|
|
|
|
|
|
|
USE_BZIP2= yes
|
2006-02-13 18:52:12 +00:00
|
|
|
USE_JAVA= yes
|
|
|
|
JAVA_VERSION= 1.4+
|
2003-06-02 12:18:17 +00:00
|
|
|
NO_BUILD= yes
|
2006-02-13 18:52:12 +00:00
|
|
|
RESTRICTED= Restrictive license
|
2003-06-02 12:18:17 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/netbeans
|
|
|
|
|
2006-11-22 20:22:51 +00:00
|
|
|
SUB_FILES= pkg-install pkg-deinstall
|
|
|
|
|
2006-01-31 21:04:54 +00:00
|
|
|
DOWNLOAD_URL?= http://www.netbeans.info/downloads/download.php?p=1&a=bd&os=1&lang=1&rv=4.1&b_bt=2
|
2003-06-02 15:51:50 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-09-03 06:21:24 +00:00
|
|
|
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) && !defined(PACKAGE_BUILDING)
|
2006-02-13 18:52:12 +00:00
|
|
|
IGNORE= you must manually fetch the source distribution (${DISTFILES}) from ${DOWNLOAD_URL}, place it in ${DISTDIR} and then run make again
|
2003-06-02 15:51:50 +00:00
|
|
|
.endif
|
|
|
|
|
2006-09-07 10:10:50 +00:00
|
|
|
post-patch:
|
|
|
|
@${RM} ${WRKSRC}/etc/netbeans.conf.orig
|
|
|
|
|
|
|
|
do-configure:
|
|
|
|
@${REINPLACE_CMD} 's|%%JAVA_HOME%%|${JAVA_HOME}|' ${WRKSRC}/etc/netbeans.conf
|
|
|
|
@${RM} ${WRKSRC}/etc/netbeans.conf.bak
|
|
|
|
|
2003-06-02 12:18:17 +00:00
|
|
|
do-install:
|
2006-03-28 22:22:23 +00:00
|
|
|
@${MKDIR} ${PREFIX}/netbeans4
|
|
|
|
@${CP} -r ${WRKSRC}/* ${PREFIX}/netbeans4
|
|
|
|
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/netbeans4
|
|
|
|
@${LN} -sf ${PREFIX}/netbeans4/bin/netbeans ${PREFIX}/bin/netbeans4
|
2006-11-22 20:22:51 +00:00
|
|
|
@(cd ${WRKDIR}; ${FIND} -s netbeans -not -type d) | ${SED} -ne 's,^netbeans,netbeans4,p' >> ${TMPPLIST}
|
|
|
|
@(cd ${WRKDIR}; ${FIND} -s -d netbeans -type d) | ${SED} -ne 's,^netbeans,netbeans4,' -ne 's,^,@dirrm ,p' >> ${TMPPLIST}
|
|
|
|
@(cd ${WRKDIR}; ${FIND} -s -d netbeans -type d -empty) | ${SED} -ne 's,^netbeans,netbeans4,' -ne 's,^,@exec mkdir -p %D/,p' >> ${TMPPLIST}
|
2003-06-02 12:18:17 +00:00
|
|
|
|
2003-06-02 15:51:50 +00:00
|
|
|
.include <bsd.port.post.mk>
|