summaryrefslogblamecommitdiff
path: root/java/netbeans/Makefile
blob: f35535ab83adc1633cce0f8f7ee2de192fd09c9b (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                          
                   
                 
                          

                                                                        
                                                       
 
                                

                                                               
                   
                   
                    



                                  
           

                                                                             



                                                                                      
 
           



                                                                             
 
                      
# New ports collection makefile for:	netbeans
# Date Created:				2 Jun 2003
# Whom:				 	olgeni@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=	netbeans
PORTVERSION=	6.5
PORTREVISION=	2
CATEGORIES=	java devel
MASTER_SITES=	http://download.netbeans.org/netbeans/6.5/final/zip/ \
    		http://dlc.sun.com.edgesuite.net/netbeans/6.5/final/zip/
DISTNAME=	netbeans-${PORTVERSION}-200811100001-ml

MAINTAINER=	gahr@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

post-patch:
	@${REINPLACE_CMD} -i "" -e '19s|#||;19s|/path/to/jdk|${JAVA_HOME}|' \
	    ${WRKSRC}/etc/netbeans.conf
	@${REINPLACE_CMD} -i "" -e 's|%%GCONFTOOL2%%|${LOCALBASE}/bin/gconftool-2|g; \
	    s|%%GREP%%|${GREP}|g;s|%%SED%%|${SED}|g;s|%%AWK%%|${AWK}|g' \
	    ${WRKSRC}/platform9/lib/nbexec && \
	    ${RM} ${WRKSRC}/platform9/lib/nbexec.orig

do-install:
	@${MKDIR} ${PREFIX}/netbeans65
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${PREFIX}/netbeans65)
	@${CHMOD} ${BINMODE} ${PREFIX}/netbeans65/bin/netbeans
	@${LN} -sf ${PREFIX}/netbeans65/bin/netbeans ${PREFIX}/bin/netbeans65

.include <bsd.port.mk>