aboutsummaryrefslogtreecommitdiff
path: root/java/jdk15
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2010-06-11 00:58:46 +0000
committerGreg Lewis <glewis@FreeBSD.org>2010-06-11 00:58:46 +0000
commita2f8232d177f38458e32f31a3aa7b437c50662ee (patch)
tree553ef08e26367b62128e1778dddfbe64e272eead /java/jdk15
parent8fa3d45835840256bb577e4a4e52df2319e85c37 (diff)
downloadports-a2f8232d177f38458e32f31a3aa7b437c50662ee.tar.gz
ports-a2f8232d177f38458e32f31a3aa7b437c50662ee.zip
Notes
Diffstat (limited to 'java/jdk15')
-rw-r--r--java/jdk15/Makefile4
-rw-r--r--java/jdk15/files/patch-j2se::common::Defs-bsd.gmk2
2 files changed, 4 insertions, 2 deletions
diff --git a/java/jdk15/Makefile b/java/jdk15/Makefile
index 4f3fd878c71f..cd1ae558b568 100644
--- a/java/jdk15/Makefile
+++ b/java/jdk15/Makefile
@@ -289,9 +289,11 @@ post-patch:
${REINPLACE_CMD} -e "s:%%LOCALBASE%%:${LOCALBASE}:" \
${WRKSRC}/$${file}; \
done
- ${REINPLACE_CMD} -e "s:%%PREFIX%%:${PREFIX}:g" \
+ @${REINPLACE_CMD} -e "s:%%PREFIX%%:${PREFIX}:g" \
-e "s:%%JDK_VERSION%%:${JDK_VERSION}:g"\
${WRKSRC}/../../deploy/src/plugin/solaris/controlpanel/sun_java.desktop
+ @${REINPLACE_CMD} -e "s:%%OSVERSION%%:${OSVERSION}:g" \
+ ${WRKSRC}/../../j2se/make/common/Defs-bsd.gmk
.if defined(WITH_LINUX_BOOTSTRAP)
pre-build:
diff --git a/java/jdk15/files/patch-j2se::common::Defs-bsd.gmk b/java/jdk15/files/patch-j2se::common::Defs-bsd.gmk
index d71e8363bf41..4fbf7360cea4 100644
--- a/java/jdk15/files/patch-j2se::common::Defs-bsd.gmk
+++ b/java/jdk15/files/patch-j2se::common::Defs-bsd.gmk
@@ -8,7 +8,7 @@ $FreeBSD$
override HAVE_SIGIGNORE = true
+endif
+ifeq ($(TRUE_PLATFORM),FreeBSD)
-+OS_RELDATE := $(shell sysctl kern.osreldate | cut -d' ' -f2)
++OS_RELDATE := %%OSVERSION%%
+HAS_SIGIGNORE := $(shell if [ $(OS_RELDATE) -ge 800502 -a $(OS_RELDATE) -lt 900000 -o $(OS_RELDATE) -ge 900003 ]; then echo "1"; fi)
+ifeq ($(HAS_SIGIGNORE),1)
+override HAVE_SIGIGNORE = true