Skip to content

Commit

Permalink
ports/openjdk17: Add port
Browse files Browse the repository at this point in the history
  • Loading branch information
Qwinci committed May 15, 2024
1 parent 726598c commit 24d7628
Show file tree
Hide file tree
Showing 4 changed files with 570 additions and 0 deletions.
25 changes: 25 additions & 0 deletions bootstrap.d/app-arch.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
tools:
- name: host-zip
architecture: '@OPTION:arch@'
source:
subdir: ports
url: 'https://downloads.sourceforge.net/infozip/zip30.tar.gz'
format: 'tar.gz'
checksum: blake2b:4f78ab75214e4a339ab96c2b0e6e1037596368a5ad7d2839e3568d0eb7491de2ffa7dbed6ae354417cff438005f5b7af7223ed889b616e265df54f05c1f6276e
version: '3.0'
extract_path: 'zip30'
configure:
- args: ['cp', '-r', '@THIS_SOURCE_DIR@/.', '@THIS_BUILD_DIR@']
compile:
- args: ['make', '-f', '@THIS_BUILD_DIR@/unix/Makefile', 'generic']
- args: ['mkdir', '-p', '@PREFIX@/bin']
- args: ['mkdir', '-p', '@PREFIX@/share/man/man1']
- args: ['cp', '@THIS_BUILD_DIR@/zip', '@PREFIX@/bin/']
- args: ['cp', '@THIS_BUILD_DIR@/zipcloak', '@PREFIX@/bin/']
- args: ['cp', '@THIS_BUILD_DIR@/zipnote', '@PREFIX@/bin/']
- args: ['cp', '@THIS_BUILD_DIR@/zipsplit', '@PREFIX@/bin/']
- args: ['cp', '@THIS_BUILD_DIR@/man/zip.1', '@PREFIX@/share/man/man1/']
- args: ['cp', '@THIS_BUILD_DIR@/man/zipcloak.1', '@PREFIX@/share/man/man1/']
- args: ['cp', '@THIS_BUILD_DIR@/man/zipnote.1', '@PREFIX@/share/man/man1/']
- args: ['cp', '@THIS_BUILD_DIR@/man/zipsplit.1', '@PREFIX@/share/man/man1/']

packages:
- name: brotli
architecture: '@OPTION:arch@'
Expand Down
76 changes: 76 additions & 0 deletions bootstrap.d/dev-java.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
tools:
- name: host-openjdk
architecture: 'x86'
source:
subdir: 'ports'
url: 'https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.9%2B9/OpenJDK17U-jdk_x64_linux_hotspot_17.0.9_9.tar.gz'
format: 'tar.gz'
checksum: 'blake2b:0bf5a6583f27a2d961fc72de11154e2fc6ba6383ebaf58fb328ea7ef40994188d1aee6fbdef5784f5629f552d6942c43e29fa3f7b99af250e4179da9bd7fcbe4'
version: '17.0.9.9'
configure:
- args: ['cp', '-r', '@THIS_SOURCE_DIR@', '.']

packages:
- name: openjdk17
architecture: '@OPTION:arch@'
source:
subdir: 'ports'
git: 'https://github.com/openjdk/jdk17.git'
tag: 'jdk-17+35'
version: '17.0.35'
regenerate:
- args: ['cp',
'@BUILD_ROOT@/tools/host-automake-v1.15/share/automake-1.15/config.sub',
'@THIS_SOURCE_DIR@/make/autoconf/build-aux/']
- args: ['chmod', '+x', '@THIS_SOURCE_DIR@/configure']
tools_required:
- system-gcc
- host-libtool
- host-autoconf-v2.69
- host-automake-v1.15
- host-file
- host-zip
- host-openjdk
pkgs_required:
- mlibc
- cups
- freetype
- giflib
- harfbuzz
- libpng
- libjpeg-turbo
- zlib
- libx11
- libxext
- libxi
- libxrandr
- libxrender
- libxt
- libxtst
- xorg-proto
- alsa-lib
- libiconv
configure:
- args:
- '@THIS_SOURCE_DIR@/configure'
- '--openjdk-target=@OPTION:arch-triple@'
- '--prefix=/usr'
- '--disable-ccache'
- '--disable-precompiled-headers'
- '--disable-warnings-as-errors'
- '--enable-full-docs=no'
- '--with-boot-jdk=@BUILD_ROOT@/tool-builds/host-openjdk/host-openjdk/jdk-17.0.9+9'
- '--with-freetype=system'
- '--with-giflib=system'
- '--with-harfbuzz=system'
- '--with-libjpeg=system'
- '--with-libpng=system'

build:
- args: ['make', 'JOBS=@PARALLELISM@', 'product-images']
isolate_network: false
- args: ['mkdir', '-p', 'images/jdk/.systemPrefs']
- args: ['touch', 'images/jdk/.systemPrefs/.system.lock']
- args: ['touch', 'images/jdk/.systemPrefs/.systemRootModFile']
- args: ['mkdir', '-p', '@THIS_COLLECT_DIR@/usr/lib/jvm']
- args: ['cp', '-pPr', 'images/jdk', '@THIS_COLLECT_DIR@/usr/lib/jvm/java-17']
1 change: 1 addition & 0 deletions bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ imports:
- file: bootstrap.d/dev-libs.yml
- file: bootstrap.d/dev-util.yml
- file: bootstrap.d/dev-qt.yml
- file: bootstrap.d/dev-java.yml
- file: bootstrap.d/games-board.yml
- file: bootstrap.d/games-emulation.yml
- file: bootstrap.d/games-fps.yml
Expand Down
Loading

0 comments on commit 24d7628

Please sign in to comment.