aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorolgeni <olgeni@FreeBSD.org>2006-03-21 03:32:56 +0800
committerolgeni <olgeni@FreeBSD.org>2006-03-21 03:32:56 +0800
commit864f75846e90a173d90879291abfb5a66a7dee29 (patch)
tree0e5720dad9d5d1d2c4712f507f1ecc0e3bb1323f /java
parent603a2196d88c151052ffac05f3783fefa6ae939c (diff)
downloadfreebsd-ports-gnome-864f75846e90a173d90879291abfb5a66a7dee29.tar.gz
freebsd-ports-gnome-864f75846e90a173d90879291abfb5a66a7dee29.tar.zst
freebsd-ports-gnome-864f75846e90a173d90879291abfb5a66a7dee29.zip
Automatically detect netbeans_jdkhome.
Submitted by: hq
Diffstat (limited to 'java')
-rw-r--r--java/netbeans/Makefile3
-rw-r--r--java/netbeans/files/patch-etc_netbeans.conf2
-rw-r--r--java/netbeans61/Makefile3
-rw-r--r--java/netbeans61/files/patch-etc_netbeans.conf2
4 files changed, 8 insertions, 2 deletions
diff --git a/java/netbeans/Makefile b/java/netbeans/Makefile
index 41afc35d98ec..2fc4dcb3a44a 100644
--- a/java/netbeans/Makefile
+++ b/java/netbeans/Makefile
@@ -30,6 +30,9 @@ DOWNLOAD_URL?= http://www.netbeans.info/downloads/download.php?type=5.0&p=1&a=bs
IGNORE= you must manually fetch the source distribution (${DISTFILES}) from ${DOWNLOAD_URL}, place it in ${DISTDIR} and then run make again
.endif
+do-configure:
+ @${REINPLACE_CMD} 's|%%JAVA_HOME%%|${JAVA_HOME}|' ${WRKSRC}/etc/netbeans.conf
+
do-install:
@${MKDIR} ${PREFIX}/netbeans
@${CP} -r ${WRKSRC}/* ${PREFIX}/netbeans
diff --git a/java/netbeans/files/patch-etc_netbeans.conf b/java/netbeans/files/patch-etc_netbeans.conf
index 0c8d486cb9e2..402b5a82a203 100644
--- a/java/netbeans/files/patch-etc_netbeans.conf
+++ b/java/netbeans/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"
diff --git a/java/netbeans61/Makefile b/java/netbeans61/Makefile
index 41afc35d98ec..2fc4dcb3a44a 100644
--- a/java/netbeans61/Makefile
+++ b/java/netbeans61/Makefile
@@ -30,6 +30,9 @@ DOWNLOAD_URL?= http://www.netbeans.info/downloads/download.php?type=5.0&p=1&a=bs
IGNORE= you must manually fetch the source distribution (${DISTFILES}) from ${DOWNLOAD_URL}, place it in ${DISTDIR} and then run make again
.endif
+do-configure:
+ @${REINPLACE_CMD} 's|%%JAVA_HOME%%|${JAVA_HOME}|' ${WRKSRC}/etc/netbeans.conf
+
do-install:
@${MKDIR} ${PREFIX}/netbeans
@${CP} -r ${WRKSRC}/* ${PREFIX}/netbeans
diff --git a/java/netbeans61/files/patch-etc_netbeans.conf b/java/netbeans61/files/patch-etc_netbeans.conf
index 0c8d486cb9e2..402b5a82a203 100644
--- a/java/netbeans61/files/patch-etc_netbeans.conf
+++ b/java/netbeans61/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"