# Description: client application platform for use with the JDK # URL: https://wiki.openjdk.java.net/display/OpenJFX/Main # Maintainer: Tim Biermann, tbier at posteo dot de # Depends on: fdk-aac ffmpeg gnutls gtk3 lame libidn2 libtheora libva libvpx libwebp openjdk8 opus x264 x265 ruby python name=openjdk8-openjfx version=8u202 release=1 source=(https://hg.openjdk.java.net/openjfx/8u-dev/rt/archive/${version//./}-ga.tar.bz2 https://services.gradle.org/distributions/gradle-4.8-bin.zip https://archive.apache.org/dist/ant/binaries/apache-ant-1.8.2-bin.tar.gz gradle.properties openjfx.conf gradle.patch 01-gradle-set-java-versions.patch 02-jfxpanel.patch 04-fix-gcc-sentinel-warnings.patch java8-openjfx-flags.patch java8-openjfx-no-xlocale.patch # gentoo patches 0000-Fix-wait-call-in-PosixPlatform.patch 0001-Change-Lucene.patch 0003-fix-cast-between-incompatible-function-types.patch 0004-Fix-Compilation-Flags.patch 0005-don-t-include-xlocale.h.patch 06-disable-architecture-verification.patch 07-disable-assembler-on-unsupported-archs.patch 10-javadoc-locale.patch 99-sysdeps.patch Wno-error.patch disable-online-repos.patch don-t-force-msse.patch fxpackager-don-t-include-obsolete-sys-sysctl.h.patch respect_flags.patch) build() { cd rt-${version//./}-ga # https://git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/java8-openjfx patch -Np1 -i ../java8-openjfx-flags.patch patch -Np1 -i ../java8-openjfx-no-xlocale.patch ## https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-java/openjfx/files/11 patch -Np1 -i ../gradle.patch ## https://github.com/sgerrand/alpine-pkg-java-openjfx patch -Np1 -i ../01-gradle-set-java-versions.patch patch -Np1 -i ../02-jfxpanel.patch patch -Np1 -i ../04-fix-gcc-sentinel-warnings.patch patch -Np1 -i $SRC/99-sysdeps.patch #patch -Np1 -i $SRC/disable-online-repos.patch patch -Np1 -i $SRC/respect_flags.patch patch -Np1 -i $SRC/0000-Fix-wait-call-in-PosixPlatform.patch patch -Np1 -i $SRC/0001-Change-Lucene.patch patch -Np1 -i $SRC/0003-fix-cast-between-incompatible-function-types.patch patch -Np1 -i $SRC/0004-Fix-Compilation-Flags.patch #patch -Np1 -i $SRC/0005-don-t-include-xlocale.h.patch patch -Np1 -i $SRC/06-disable-architecture-verification.patch patch -Np1 -i $SRC/07-disable-assembler-on-unsupported-archs.patch patch -Np1 -i $SRC/10-javadoc-locale.patch patch -Np1 -i $SRC/Wno-error.patch patch -Np1 -i $SRC/don-t-force-msse.patch patch -Np1 -i $SRC/fxpackager-don-t-include-obsolete-sys-sysctl.h.patch echo "Checking if $PKGMK_SOURCE_DIR/gradle_user_home exists.." if [ ! -e $PKGMK_SOURCE_DIR/gradle_user_home ]; then mkdir $PKGMK_SOURCE_DIR/gradle_user_home else echo "Nothing needs to be done!" fi echo "Checking if $PKGMK_SOURCE_DIR/gradle_project_home exists.." if [ ! -e $PKGMK_SOURCE_DIR/gradle_project_home ]; then mkdir $PKGMK_SOURCE_DIR/gradle_project_home else echo "Nothing needs to be done!" fi export CFLAGS+=' -fcommon -fPIC' export LDFLAGS+=' -fPIC' unset ANT_HOME export ANT_RESPECT_JAVA_HOME=ture export ANT_RESPECT_JAVA_HOME=true export GRADLE_HOME=$SRC/gradle-4.8 export gradle="${GRADLE_HOME}/bin/gradle" local gradle_args=( --info --stacktrace --no-build-cache --no-daemon --offline --gradle-user-home "${PKGMK_SOURCE_DIR}/gradle_user_home" --project-cache-dir "${PKGMK_SOURCE_DIR}/gradle_project_cache" ) unset _JAVA_OPTIONS export JAVA_HOME="/usr/lib/java/openjdk8" export PATH="$JAVA_HOME/bin:$SRC/gradle-4.8/bin/:$SRC/apache-ant-1.8.2/bin/:${PATH}" ln -sf ../gradle.properties . find -name '*.class' -delete find -name '*.jar' -delete #sed 's|, "-Werror"||g' -i buildSrc/linux.gradle #rm -rf modules/media/src/main/native/gstreamer/3rd_party/glib #rm -rf modules/media/src/main/native/gstreamer/gstreamer-lite #rm -rf modules/graphics/src/main/native-iio/libjpeg* gradle install -dm 755 "$PKG"/usr/lib/java/openjdk8/jre cp -dr --no-preserve=ownership build/sdk/{bin,lib} "$PKG"/usr/lib/java/openjdk8/ cp -dr --no-preserve=ownership build/sdk/rt/lib "$PKG"/usr/lib/java/openjdk8/jre/ install -dm755 $PKG/etc/ld.so.conf.d/ cp -R $SRC/openjfx.conf $PKG/etc/ld.so.conf.d/openjfx.conf }