Skip to content

Commit 3283bc4

Browse files
committed
ports/openjdk17: Add port
1 parent 8fa7838 commit 3283bc4

File tree

4 files changed

+571
-0
lines changed

4 files changed

+571
-0
lines changed

bootstrap.d/app-arch.y4.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
tools:
2+
- name: host-zip
3+
architecture: '@OPTION:arch@'
4+
source:
5+
subdir: ports
6+
url: 'https://downloads.sourceforge.net/infozip/zip30.tar.gz'
7+
format: 'tar.gz'
8+
checksum: blake2b:4f78ab75214e4a339ab96c2b0e6e1037596368a5ad7d2839e3568d0eb7491de2ffa7dbed6ae354417cff438005f5b7af7223ed889b616e265df54f05c1f6276e
9+
version: '3.0'
10+
extract_path: 'zip30'
11+
configure:
12+
- args: ['cp', '-r', '@THIS_SOURCE_DIR@/.', '@THIS_BUILD_DIR@']
13+
compile:
14+
- args: ['make', '-f', '@THIS_BUILD_DIR@/unix/Makefile', 'generic']
15+
- args: ['mkdir', '-p', '@PREFIX@/bin']
16+
- args: ['mkdir', '-p', '@PREFIX@/share/man/man1']
17+
- args: ['cp', '@THIS_BUILD_DIR@/zip', '@PREFIX@/bin/']
18+
- args: ['cp', '@THIS_BUILD_DIR@/zipcloak', '@PREFIX@/bin/']
19+
- args: ['cp', '@THIS_BUILD_DIR@/zipnote', '@PREFIX@/bin/']
20+
- args: ['cp', '@THIS_BUILD_DIR@/zipsplit', '@PREFIX@/bin/']
21+
- args: ['cp', '@THIS_BUILD_DIR@/man/zip.1', '@PREFIX@/share/man/man1/']
22+
- args: ['cp', '@THIS_BUILD_DIR@/man/zipcloak.1', '@PREFIX@/share/man/man1/']
23+
- args: ['cp', '@THIS_BUILD_DIR@/man/zipnote.1', '@PREFIX@/share/man/man1/']
24+
- args: ['cp', '@THIS_BUILD_DIR@/man/zipsplit.1', '@PREFIX@/share/man/man1/']
25+
126
packages:
227
- name: brotli
328
architecture: '@OPTION:arch@'

bootstrap.d/dev-java.y4.yml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
tools:
2+
- name: host-openjdk
3+
architecture: 'x86_64'
4+
source:
5+
subdir: 'ports'
6+
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'
7+
format: 'tar.gz'
8+
checksum: 'blake2b:0bf5a6583f27a2d961fc72de11154e2fc6ba6383ebaf58fb328ea7ef40994188d1aee6fbdef5784f5629f552d6942c43e29fa3f7b99af250e4179da9bd7fcbe4'
9+
version: '17.0.9.9'
10+
configure:
11+
- args: ['cp', '-r', '@THIS_SOURCE_DIR@/jdk-17.0.9+9', '@PREFIX@']
12+
13+
packages:
14+
- name: openjdk17
15+
architecture: '@OPTION:arch@'
16+
metadata:
17+
summary: Open source implementation of the Java programming language
18+
description: Open source implementation of the Java programming language
19+
spdx: 'GPL-2-with-classpath-exception'
20+
website: 'https://openjdk.org'
21+
maintainer: 'Qwinci <qwinci222@gmail.com>'
22+
categories: ['dev-java']
23+
source:
24+
subdir: 'ports'
25+
git: 'https://github.com/openjdk/jdk17.git'
26+
tag: 'jdk-17+35'
27+
version: '17.0.35'
28+
tools_required:
29+
- host-automake-v1.15
30+
regenerate:
31+
- args: ['cp',
32+
'@BUILD_ROOT@/tools/host-automake-v1.15/share/automake-1.15/config.sub',
33+
'@THIS_SOURCE_DIR@/make/autoconf/build-aux/']
34+
- args: ['chmod', '+x', '@THIS_SOURCE_DIR@/configure']
35+
tools_required:
36+
- system-gcc
37+
- host-libtool
38+
- host-autoconf-v2.69
39+
- host-automake-v1.15
40+
- host-file
41+
- host-zip
42+
- host-openjdk
43+
pkgs_required:
44+
- mlibc
45+
- managarm-system
46+
- cups
47+
- freetype
48+
- giflib
49+
- harfbuzz
50+
- libpng
51+
- libjpeg-turbo
52+
- zlib
53+
- libx11
54+
- libxext
55+
- libxi
56+
- libxrandr
57+
- libxrender
58+
- libxt
59+
- libxtst
60+
- xorg-proto
61+
- alsa-lib
62+
- libiconv
63+
configure:
64+
- args:
65+
- '@THIS_SOURCE_DIR@/configure'
66+
- '--openjdk-target=@OPTION:arch-triple@'
67+
- '--prefix=/usr'
68+
- '--disable-ccache'
69+
- '--disable-precompiled-headers'
70+
- '--disable-warnings-as-errors'
71+
- '--enable-full-docs=no'
72+
- '--with-boot-jdk=@BUILD_ROOT@/tools/host-openjdk'
73+
- '--with-freetype=system'
74+
- '--with-giflib=system'
75+
- '--with-harfbuzz=system'
76+
- '--with-libjpeg=system'
77+
- '--with-libpng=system'
78+
79+
build:
80+
- args: ['make', 'JOBS=@PARALLELISM@', 'product-images']
81+
isolate_network: false
82+
- args: ['mkdir', '-p', 'images/jdk/.systemPrefs']
83+
- args: ['touch', 'images/jdk/.systemPrefs/.system.lock']
84+
- args: ['touch', 'images/jdk/.systemPrefs/.systemRootModFile']
85+
- args: ['mkdir', '-p', '@THIS_COLLECT_DIR@/usr/lib/jvm']
86+
- args: ['cp', '-pPr', 'images/jdk', '@THIS_COLLECT_DIR@/usr/lib/jvm/java-17']

bootstrap.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ imports:
99
- file: bootstrap.d/app-shells.y4.yml
1010
- file: bootstrap.d/app-text.y4.yml
1111
- file: bootstrap.d/dev-db.y4.yml
12+
- file: bootstrap.d/dev-java.y4.yml
1213
- file: bootstrap.d/dev-lang.y4.yml
1314
- file: bootstrap.d/dev-libs.y4.yml
1415
- file: bootstrap.d/dev-util.y4.yml

0 commit comments

Comments
 (0)