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 Dec 21, 2024
1 parent 8fa7838 commit 3283bc4
Show file tree
Hide file tree
Showing 4 changed files with 571 additions and 0 deletions.
25 changes: 25 additions & 0 deletions bootstrap.d/app-arch.y4.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
86 changes: 86 additions & 0 deletions bootstrap.d/dev-java.y4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
tools:
- name: host-openjdk
architecture: 'x86_64'
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@/jdk-17.0.9+9', '@PREFIX@']

packages:
- name: openjdk17
architecture: '@OPTION:arch@'
metadata:
summary: Open source implementation of the Java programming language
description: Open source implementation of the Java programming language
spdx: 'GPL-2-with-classpath-exception'
website: 'https://openjdk.org'
maintainer: 'Qwinci <[email protected]>'
categories: ['dev-java']
source:
subdir: 'ports'
git: 'https://github.com/openjdk/jdk17.git'
tag: 'jdk-17+35'
version: '17.0.35'
tools_required:
- host-automake-v1.15
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
- managarm-system
- 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@/tools/host-openjdk'
- '--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 @@ -9,6 +9,7 @@ imports:
- file: bootstrap.d/app-shells.y4.yml
- file: bootstrap.d/app-text.y4.yml
- file: bootstrap.d/dev-db.y4.yml
- file: bootstrap.d/dev-java.y4.yml
- file: bootstrap.d/dev-lang.y4.yml
- file: bootstrap.d/dev-libs.y4.yml
- file: bootstrap.d/dev-util.y4.yml
Expand Down
Loading

0 comments on commit 3283bc4

Please sign in to comment.