aboutsummaryrefslogtreecommitdiff
path: root/java/openjdk7
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2010-02-23 03:31:03 +0000
committerGreg Lewis <glewis@FreeBSD.org>2010-02-23 03:31:03 +0000
commit8fe22ffb54957df240aa05f8b729b5d8cc34275c (patch)
tree68160440290f71e02449360403143d9fa9d26d41 /java/openjdk7
parent303bfce9a8c48d92c35943169c7b1b63280ee842 (diff)
downloadports-8fe22ffb54957df240aa05f8b729b5d8cc34275c.tar.gz
ports-8fe22ffb54957df240aa05f8b729b5d8cc34275c.zip
Notes
Diffstat (limited to 'java/openjdk7')
-rw-r--r--java/openjdk7/Makefile10
-rw-r--r--java/openjdk7/files/patch-src-os-bsd-vm-os_bsd.cpp13
2 files changed, 20 insertions, 3 deletions
diff --git a/java/openjdk7/Makefile b/java/openjdk7/Makefile
index 79f1d9b60228..33fad5b345e8 100644
--- a/java/openjdk7/Makefile
+++ b/java/openjdk7/Makefile
@@ -7,6 +7,7 @@
PORTNAME= openjdk
PORTVERSION= ${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_BUILD_NUMBER}
+PORTREVISION= 1
CATEGORIES= java devel
MASTER_SITES= http://download.java.net/openjdk/jdk7/promoted/b${JDK_BUILD_NUMBER}/ \
${MASTER_SITE_APACHE:S,%SUBDIR%/,ant/binaries/:ant,}
@@ -37,9 +38,10 @@ USE_ICONV= YES
USE_XORG+= x11 xext xi xrender xt xtst
LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2
-BUILD_DEPENDS+= zip:${PORTSDIR}/archivers/zip
-BUILD_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip
-BUILD_DEPENDS+= ${LOCALBASE}/include/cups/cups.h:${PORTSDIR}/print/cups-client
+BUILD_DEPENDS+= zip:${PORTSDIR}/archivers/zip \
+ unzip:${PORTSDIR}/archivers/unzip \
+ ${LOCALBASE}/include/cups/cups.h:${PORTSDIR}/print/cups-client
+RUN_DEPENDS+= javavm:${PORTSDIR}/java/javavmwrapper
OPENJDK_OSARCH= bsd-${ARCH:S/i386/i586/}
INSTALLDIR= ${PREFIX}/${PORTNAME}${JDK_MAJOR_VERSION}
@@ -112,6 +114,8 @@ post-extract:
done
post-patch:
+ @${REINPLACE_CMD} "s|%%LOCALBASE%%|${LOCALBASE}|" \
+ ${WRKSRC}/hotspot/src/os/bsd/vm/os_bsd.cpp
@${REINPLACE_CMD} 's|build-policy install-limited|build-policy install-unlimited|' \
${WRKSRC}/jdk/make/javax/crypto/Makefile
diff --git a/java/openjdk7/files/patch-src-os-bsd-vm-os_bsd.cpp b/java/openjdk7/files/patch-src-os-bsd-vm-os_bsd.cpp
new file mode 100644
index 000000000000..b2f8297af0ed
--- /dev/null
+++ b/java/openjdk7/files/patch-src-os-bsd-vm-os_bsd.cpp
@@ -0,0 +1,13 @@
+$FreeBSD$
+
+--- hotspot/src/os/bsd/vm/os_bsd.cpp.orig 2010-02-21 20:07:54.000000000 -0800
++++ hotspot/src/os/bsd/vm/os_bsd.cpp 2010-02-21 20:08:41.000000000 -0800
+@@ -358,7 +358,7 @@
+ * 7: The default directories, normally /lib and /usr/lib.
+ */
+ #ifndef DEFAULT_LIBPATH
+-#define DEFAULT_LIBPATH "/lib:/usr/lib"
++#define DEFAULT_LIBPATH "/lib:/usr/lib:%%LOCALBASE%%/lib"
+ #endif
+
+ #define EXTENSIONS_DIR "/lib/ext"