diff options
author | Greg Lewis <glewis@FreeBSD.org> | 2019-03-21 17:34:20 +0000 |
---|---|---|
committer | Greg Lewis <glewis@FreeBSD.org> | 2019-03-21 17:34:20 +0000 |
commit | 51ef8bf96e4287870622b357c9ae879a960f11a3 (patch) | |
tree | 1c3be1c6642fee0f12afe40e8a516b207ed1651b /java/openjdk12 | |
parent | Remove openjdk12 to try a repo copy again. (diff) |
Re-add the port of OpenJDK 12
Notes
Notes:
svn path=/head/; revision=496480
Diffstat (limited to 'java/openjdk12')
-rw-r--r-- | java/openjdk12/Makefile | 137 | ||||
-rw-r--r-- | java/openjdk12/distinfo | 3 | ||||
-rw-r--r-- | java/openjdk12/files/cacerts | bin | 0 -> 102225 bytes | |||
-rw-r--r-- | java/openjdk12/files/patch-configure | 14 | ||||
-rw-r--r-- | java/openjdk12/pkg-descr | 3 | ||||
-rw-r--r-- | java/openjdk12/pkg-message | 16 |
6 files changed, 173 insertions, 0 deletions
diff --git a/java/openjdk12/Makefile b/java/openjdk12/Makefile new file mode 100644 index 000000000000..786dbe423589 --- /dev/null +++ b/java/openjdk12/Makefile @@ -0,0 +1,137 @@ +# $FreeBSD$ + +PORTNAME= openjdk +PORTVERSION= ${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_PATCH_VERSION}.${JDK_BUILD_NUMBER}.${BSD_JDK_VERSION} +CATEGORIES= java devel +MASTER_SITES= https://github.com/battleblow/openjdk-jdk12u/archive/ +PKGNAMESUFFIX?= ${JDK_MAJOR_VERSION} +DISTNAME= jdk-${JDK_MAJOR_VERSION}+${JDK_BUILD_NUMBER}-${BSD_JDK_VERSION} + +MAINTAINER= java@FreeBSD.org +COMMENT= Java Development Kit ${JDK_MAJOR_VERSION} + +LICENSE= GPLv2 + +ONLY_FOR_ARCHS= amd64 i386 + +BUILD_DEPENDS= zip:archivers/zip \ + autoconf>0:devel/autoconf \ + ${LOCALBASE}/include/cups/cups.h:print/cups \ + bash:shells/bash +LIB_DEPENDS= libfreetype.so:print/freetype2 \ + libfontconfig.so:x11-fonts/fontconfig \ + liblcms2.so:graphics/lcms2 \ + libgif.so:graphics/giflib \ + libpng16.so:graphics/png + +USES= compiler:features gmake iconv jpeg pkgconfig +USE_XORG= xext x11 xrender xtst xi xt xrandr + +WRKSRC= ${WRKDIR}/${PORTNAME}-jdk${JDK_MAJOR_VERSION}u-jdk-${JDK_MAJOR_VERSION}-${JDK_BUILD_NUMBER}-${BSD_JDK_VERSION} + +_MAKE_JOBS= # +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib +MAKE_ENV= LANG="C" \ + LC_ALL="C" \ + CLASSPATH="" \ + JAVA_HOME="" \ + LD_LIBRARY_PATH="" \ + LDFLAGS=-L${LOCALBASE}/lib \ + CC=/usr/bin/cc \ + CXX=/usr/bin/c++ \ + MAKEFLAGS="" \ + USE_CLANG=true + +JDK_OSARCH= bsd-${ARCH:S/amd64/x86_64/:S/i386/x86/} +JDK_BUILDDIR= ${WRKSRC}/build/${JDK_OSARCH}-${JDK_BUILD_JVM}-${JDK_BUILD_TYPE} +JDK_IMAGEDIR= ${JDK_BUILDDIR}/images/jdk +INSTALLDIR= ${PREFIX}/${PKGBASE} + +NOPRECIOUSMAKEVARS= yes + +JDK_MAJOR_VERSION= 12 +JDK_MINOR_VERSION= 0 +JDK_PATCH_VERSION= 0 +JDK_BUILD_NUMBER= 33 +BSD_JDK_VERSION= 1 + +GNU_CONFIGURE= yes +CONFIGURE_ENV= CC=/usr/bin/cc \ + CXX=/usr/bin/c++ +CONFIGURE_ARGS= --with-boot-jdk=${BOOTSTRAPJDKDIR} \ + --disable-ccache \ + --disable-dtrace \ + --disable-javac-server \ + --disable-hotspot-gtest \ + --with-alsa=${LOCALBASE} \ + --with-cups=${LOCALBASE} \ + --with-fontconfig=${LOCALBASE} \ + --with-freetype=system \ + --with-freetype-include=${LOCALBASE}/include/freetype2 \ + --with-freetype-lib=${LOCALBASE}/lib \ + --with-libjpeg=system \ + --with-giflib=system \ + --with-libpng=system \ + --with-zlib=system \ + --with-lcms=system \ + --with-extra-cflags=-I${LOCALBASE}/include \ + --with-extra-cxxflags=-I${LOCALBASE}/include \ + --with-extra-ldflags=-L${LOCALBASE}/lib \ + --with-toolchain-type=clang \ + --x-includes=${LOCALBASE}/include \ + --x-libraries=${LOCALBASE}/lib \ + --with-package-path=${LOCALBASE} \ + --with-cacerts-file=${FILESDIR}/cacerts \ + --with-version-string=${JDK_MAJOR_VERSION}+${JDK_BUILD_NUMBER}-${BSD_JDK_VERSION} \ + --with-native-debug-symbols=none \ + --with-debug-level=release + +JAVAVMS_COMMENT= OpenJDK${JDK_MAJOR_VERSION} + +ALL_TARGET= images +JDK_BUILD_TYPE= release + +.include <bsd.port.pre.mk> + +BOOTSTRAP_JDKS= ${LOCALBASE}/openjdk12 \ + ${LOCALBASE}/openjdk11 \ + ${LOCALBASE}/bootstrap-openjdk11 + +# do we have valid native jdk installed? +.for BJDK in ${BOOTSTRAP_JDKS} +. if !defined(BOOTSTRAPJDKDIR) && exists(${BJDK}/bin/javac) +BOOTSTRAPJDKDIR= ${BJDK} +. endif +.endfor + +# if no valid jdk found, set dependency +.if !defined(BOOTSTRAPJDKDIR) +BOOTSTRAPJDKDIR?= ${LOCALBASE}/bootstrap-openjdk11 +BUILD_DEPENDS+= ${BOOTSTRAPJDKDIR}/bin/javac:java/bootstrap-openjdk11 +.endif + +JDK_BUILD_JVM= server + +.if empty(ICONV_LIB) +ICONV_CPPFLAGS= -DLIBICONV_PLUG +.else +ICONV_CPPFLAGS= -I${LOCALBASE}/include +ICONV_LDFLAGS= -L${LOCALBASE}/lib ${ICONV_LIB} +.endif + +post-patch: + @${FIND} ${WRKSRC} -name '*.orig' -delete + @${CHMOD} 755 ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \ + ${WRKSRC}/configure + +do-install: + @${MKDIR} ${STAGEDIR}${INSTALLDIR} + @cd ${JDK_IMAGEDIR} && ${COPYTREE_SHARE} . ${STAGEDIR}${INSTALLDIR} + @cd ${STAGEDIR}${INSTALLDIR} && \ + ${FIND} bin -type f -exec ${CHMOD} ${BINMODE} {} \; + @${FIND} ${STAGEDIR}${INSTALLDIR} -not -type d | ${SORT} | \ + ${SED} -e 's|^${STAGEDIR}${PREFIX}/||' >> ${TMPPLIST} + +.include <bsd.port.post.mk> diff --git a/java/openjdk12/distinfo b/java/openjdk12/distinfo new file mode 100644 index 000000000000..82b4aa470ddb --- /dev/null +++ b/java/openjdk12/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1553131068 +SHA256 (jdk-12+33-1.tar.gz) = a1aae0dc0adbb00c9733b91276a6f739e3dc234fd4c019fe7ee3f4e323fbe67f +SIZE (jdk-12+33-1.tar.gz) = 110195427 diff --git a/java/openjdk12/files/cacerts b/java/openjdk12/files/cacerts Binary files differnew file mode 100644 index 000000000000..02181bef7e36 --- /dev/null +++ b/java/openjdk12/files/cacerts diff --git a/java/openjdk12/files/patch-configure b/java/openjdk12/files/patch-configure new file mode 100644 index 000000000000..59daa4ff854f --- /dev/null +++ b/java/openjdk12/files/patch-configure @@ -0,0 +1,14 @@ +--- configure.orig 2019-03-12 12:38:39.648907000 -0700 ++++ configure 2019-03-12 12:39:04.275572000 -0700 +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!%%LOCALBASE%%/bin/bash + # + # Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved. + # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. +@@ -32,4 +32,4 @@ + # Delegate to wrapper, forcing wrapper to believe $0 is this script by using -c. + # This trick is needed to get autoconf to co-operate properly. + # The ${-:+-$-} construction passes on bash options. +-bash ${-:+-$-} -c ". $this_script_dir/make/autoconf/configure" $this_script_dir/configure CHECKME $this_script_dir "$@" ++%%LOCALBASE%%/bin/bash ${-:+-$-} -c ". $this_script_dir/make/autoconf/configure" $this_script_dir/configure CHECKME $this_script_dir "$@" diff --git a/java/openjdk12/pkg-descr b/java/openjdk12/pkg-descr new file mode 100644 index 000000000000..7b9a9faf8549 --- /dev/null +++ b/java/openjdk12/pkg-descr @@ -0,0 +1,3 @@ +An open-source implementation of the Java Platform, Standard Edition, + +WWW: https://openjdk.java.net/ diff --git a/java/openjdk12/pkg-message b/java/openjdk12/pkg-message new file mode 100644 index 000000000000..a651593720d1 --- /dev/null +++ b/java/openjdk12/pkg-message @@ -0,0 +1,16 @@ +====================================================================== + +This OpenJDK implementation requires fdescfs(5) mounted on /dev/fd and +procfs(5) mounted on /proc. + +If you have not done it yet, please do the following: + + mount -t fdescfs fdesc /dev/fd + mount -t procfs proc /proc + +To make it permanent, you need the following lines in /etc/fstab: + + fdesc /dev/fd fdescfs rw 0 0 + proc /proc procfs rw 0 0 + +====================================================================== |