aboutsummaryrefslogtreecommitdiffstats
path: root/java/netbeans55/Makefile
blob: 819ec7afc0b349dab8bf517c37039904dd9a3690 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# New ports collection makefile for:    netbeans
# Date Created:             15 May 2007
# Whom:                 Nemo Liu <nemoliu@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   netbeans55
PORTVERSION=    5.5.1
PORTREVISION=   1
CATEGORIES= java devel
MASTER_SITES=   http://dlc.sun.com.edgesuite.net/netbeans/download/5_5_1/fcs/200704122300/
DISTNAME=   netbeans-5_5_1

MAINTAINER= ports@FreeBSD.org
COMMENT=    A free and open-source IDE for Java

USE_BZIP2=  yes
USE_JAVA=   yes
JAVA_VERSION=   1.5+
NO_BUILD=   yes
RESTRICTED= Restrictive license

WRKSRC=     ${WRKDIR}/netbeans

SUB_FILES=  pkg-install pkg-deinstall

#DOWNLOAD_URL?= http://www.netbeans.info/downloads/index.php

.include <bsd.port.pre.mk>

#.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) && !defined(PACKAGE_BUILDING)
#IGNORE=        you must manually fetch the source distribution (${DISTFILES}) from ${DOWNLOAD_URL}, place it in ${DISTDIR} and then run make again
#.endif

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

do-install:
    @${MKDIR} ${PREFIX}/netbeans55
    @${CP} -r ${WRKSRC}/* ${PREFIX}/netbeans55
    @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/netbeans55
    @${LN} -sf ${PREFIX}/netbeans55/bin/netbeans ${PREFIX}/bin/netbeans55
    @(cd ${WRKDIR}; ${FIND} -s netbeans -not -type d) | ${SED} -ne 's,^netbeans,netbeans55,p' >> ${TMPPLIST}
    @(cd ${WRKDIR}; ${FIND} -s -d netbeans -type d) | ${SED} -ne 's,^netbeans,netbeans55,' -ne 's,^,@dirrm ,p' >> ${TMPPLIST}
    @(cd ${WRKDIR}; ${FIND} -s -d netbeans -type d -empty) | ${SED} -ne 's,^netbeans,netbeans55,' -ne 's,^,@exec ${MKDIR} %D/,p' >> ${TMPPLIST}

.include <bsd.port.post.mk>