aboutsummaryrefslogtreecommitdiffstats
path: root/java/netbeans/Makefile
blob: f1f1bec7866e71938aae64f23125b118df3554ea (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
# New ports collection makefile for:    netbeans
# Date Created:             2 Jun 2003
# Whom:                 olgeni@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=   netbeans
PORTVERSION=    6.0.1
CATEGORIES= java devel
MASTER_SITES=   http://download.netbeans.org/netbeans/6.0/final/zip/

DISTNAME=   netbeans-${PORTVERSION}-200801291616-ml

MAINTAINER= olgeni@FreeBSD.org
COMMENT=    A full-featured integrated environment for Java

USE_ZIP=    yes
USE_JAVA=   yes
JAVA_VERSION=   1.5+
NO_BUILD=   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}/platform7/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>