0bf80f5e3f
who also takes maintainership, with a minor tweak by me (chown ${BINOWN}:${BINGRP} in do-install so that it packages properly when built as user) See http://marc.info/?l=openbsd-ports&m=126223375703003&w=2 and http://marc.info/?l=openbsd-ports&m=126216832521398&w=2 for details. Also tested by Brandon Mercer and Fred Crowson, with much prodding from Brandon Mercer.
53 lines
1.2 KiB
Makefile
53 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.12 2010/04/03 11:42:06 landry Exp $
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
COMMENT= NetBeans Java IDE
|
|
|
|
V= 6.8
|
|
DISTNAME= netbeans-${V}-200912041610-ml
|
|
PKGNAME= netbeans-${V}
|
|
CATEGORIES= java devel
|
|
|
|
HOMEPAGE= http://www.netbeans.org/
|
|
|
|
MAINTAINER= Daniel Dickman <didickman@gmail.com>
|
|
|
|
# CDDL and GPLv2 dual-licensed
|
|
#
|
|
# For external components see:
|
|
# http://www.netbeans.info/downloads/licence/netbeans-3rd-party.txt
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= http://download.netbeans.org/netbeans/sync/${V}/zip/
|
|
EXTRACT_SUFX= .zip
|
|
|
|
MODULES= java
|
|
MODJAVA_VER= 1.6+
|
|
|
|
RUN_DEPENDS= ::java/javaPathHelper
|
|
|
|
NO_BUILD= Yes
|
|
NO_REGRESS= Yes
|
|
|
|
WRKDIST= ${WRKDIR}/netbeans
|
|
|
|
NB= ${PREFIX}/netbeans
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${NB}
|
|
@tar -czf - -C ${WRKDIR}/netbeans . | tar xzf - -C ${NB}
|
|
@rm -rf ${NB}/profiler3
|
|
@find ${NB} -name "*.dll" -o -name "*.exe" -o -name "*.cmd" \
|
|
-o -name "*.bat" -o -name "*.orig" | xargs rm
|
|
${SUBST_CMD} -c ${FILESDIR}/netbeans \
|
|
${PREFIX}/bin/netbeans
|
|
@chmod ${BINMODE} ${PREFIX}/bin/netbeans
|
|
@chown ${BINOWN}:${BINGRP} ${PREFIX}/bin/netbeans
|
|
${INSTALL_DATA} ${FILESDIR}/README.OpenBSD ${NB}
|
|
|
|
.include <bsd.port.mk>
|