aboutsummaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2008-01-17 07:51:46 +0000
committerGreg Lewis <glewis@FreeBSD.org>2008-01-17 07:51:46 +0000
commit6602230e32950c877e577e3eff0f3994a68fe132 (patch)
treecc607d7d73dbe2f546ee5cffe8b19d65544f8e57 /java
parente137e57269a1e181c14a220b2e54be529d219800 (diff)
downloadports-6602230e32950c877e577e3eff0f3994a68fe132.tar.gz
ports-6602230e32950c877e577e3eff0f3994a68fe132.zip
Notes
Diffstat (limited to 'java')
-rw-r--r--java/eclipse/Makefile14
-rw-r--r--java/eclipse/files/eclipse.in2
2 files changed, 15 insertions, 1 deletions
diff --git a/java/eclipse/Makefile b/java/eclipse/Makefile
index a68efa5a25db..679b5cd1563e 100644
--- a/java/eclipse/Makefile
+++ b/java/eclipse/Makefile
@@ -7,6 +7,7 @@
PORTNAME= eclipse
PORTVERSION= 3.2.2
+PORTREVISION= 1
CATEGORIES= java devel
MASTER_SITES= ${MASTER_SITE_ECLIPSE}
MASTER_SITE_SUBDIR= R-${PORTVERSION}-200702121330
@@ -60,6 +61,10 @@ MAKE_CAIRO= make_cairo
.include <bsd.port.pre.mk>
+.if ${OSVERSION} >= 700000
+JAVA_VENDOR= bsdjava
+.endif
+
.if !defined(WITHOUT_MOZILLA)
MAKE_MOZILLA= make_mozilla
BROWSER= ${GECKO}
@@ -125,6 +130,15 @@ do-install:
-e "s,%%JAVA_VERSION%%,${JAVA_VERSION},g" \
-e "s+%%JAVA_OS%%+${JAVA_OS}+g" \
${FILESDIR}/eclipse.in > ${WRKSRC}/eclipse.tmp
+.if defined(JAVA_VENDOR)
+ ${REINPLACE_CMD} \
+ -e "s+%%JAVA_VENDOR_SPECIFICATION%%+JAVA_VENDOR=\"${JAVA_VENDOR}\"+g" \
+ ${WRKSRC}/eclipse.tmp
+.else
+ ${REINPLACE_CMD} \
+ -e "s+%%JAVA_VENDOR_SPECIFICATION%%++g" \
+ ${WRKSRC}/eclipse.tmp
+.endif
${INSTALL_SCRIPT} ${WRKSRC}/eclipse.tmp ${PREFIX}/bin/eclipse
@${SED} \
-e "s+%%ECLIPSE_HOME%%+${PORTDESTDIR}+g" \
diff --git a/java/eclipse/files/eclipse.in b/java/eclipse/files/eclipse.in
index a1c7576eb288..8a2b7e32eb51 100644
--- a/java/eclipse/files/eclipse.in
+++ b/java/eclipse/files/eclipse.in
@@ -46,4 +46,4 @@ if [ ! -x "${ECLIPSE_HOME}/eclipse" ]; then
exit 1
fi
-JAVA_VERSION="%%JAVA_VERSION%%" JAVA_OS="%%JAVA_OS%%" PATH=${JAVA_HOME}/bin:${PATH} exec "${ECLIPSE_HOME}/eclipse" $@
+JAVA_VERSION="%%JAVA_VERSION%%" JAVA_OS="%%JAVA_OS%%" %%JAVA_VENDOR_SPECIFICATION%% PATH=${JAVA_HOME}/bin:${PATH} exec "${ECLIPSE_HOME}/eclipse" $@