aboutsummaryrefslogtreecommitdiff
path: root/java/netbeans55
diff options
context:
space:
mode:
authorJimmy Olgeni <olgeni@FreeBSD.org>2006-09-07 10:10:50 +0000
committerJimmy Olgeni <olgeni@FreeBSD.org>2006-09-07 10:10:50 +0000
commit32f0b9e01285f0d6dee910a79b92ea5a0b67132d (patch)
tree1d96b4d0eb69bc3b89a7c788b6bcf4b513b2dd6a /java/netbeans55
parent3ae4f9a57e3d979efbfd558b6c3e67a22f821365 (diff)
downloadports-32f0b9e01285f0d6dee910a79b92ea5a0b67132d.tar.gz
ports-32f0b9e01285f0d6dee910a79b92ea5a0b67132d.zip
Remove stale files and use JAVA_HOME.
Notes
Notes: svn path=/head/; revision=172462
Diffstat (limited to 'java/netbeans55')
-rw-r--r--java/netbeans55/Makefile7
-rw-r--r--java/netbeans55/files/patch-etc_netbeans.conf2
2 files changed, 8 insertions, 1 deletions
diff --git a/java/netbeans55/Makefile b/java/netbeans55/Makefile
index 3e9623091a54..a1f2e69c5866 100644
--- a/java/netbeans55/Makefile
+++ b/java/netbeans55/Makefile
@@ -30,6 +30,13 @@ DOWNLOAD_URL?= http://www.netbeans.info/downloads/download.php?p=1&a=bd&os=1&lan
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}/netbeans4
@${CP} -r ${WRKSRC}/* ${PREFIX}/netbeans4
diff --git a/java/netbeans55/files/patch-etc_netbeans.conf b/java/netbeans55/files/patch-etc_netbeans.conf
index 0c8d486cb9e2..402b5a82a203 100644
--- a/java/netbeans55/files/patch-etc_netbeans.conf
+++ b/java/netbeans55/files/patch-etc_netbeans.conf
@@ -8,7 +8,7 @@ $FreeBSD$
# default location of J2SE JDK, can be overridden by using --jdkhome <dir> switch
-#netbeans_jdkhome="/path/to/jdk"
-+netbeans_jdkhome="/usr/local/jdk1.4.2"
++netbeans_jdkhome="%%JAVA_HOME%%"
# clusters' paths separated by path.separator (semicolon on Windows, colon on Unices)
#netbeans_extraclusters="/absolute/path/to/cluster1:/absolute/path/to/cluster2"