lwjgl3: add port

This commit is contained in:
monkuous
2025-11-15 23:22:35 +01:00
parent ad40275ac9
commit ebc810a4d8
3 changed files with 3868 additions and 0 deletions
File diff suppressed because it is too large Load Diff
+46
View File
@@ -0,0 +1,46 @@
name=lwjgl3
revision=1
from_source=lwjgl3
imagedeps="build-essential zip unzip file ant openjdk-8-jdk"
hostdeps="xgcc xbinutils libstdc++-v3 pkgconfig autoconf"
deps="base cups freetype fontconfig libpng libjpeg-turbo zlib libx11 libxext libxi libxrandr libxrender libxt libxtst xorgproto libiconv libffi libxcursor libxxf86vm openjdk17 glfw openal"
allow_network=yes
configure() {
cp -rp "${source_dir}/." .
}
_call_ant() {
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 ant \
-Dgcc.prefix=x86_64-astral- \
-Dbuild.arch=x64 \
-Dplatform=astral \
-Djni.headers="${sysroot_dir}/usr/lib/jvm/java-17/include" \
-Dbinding.nfd=false \
-Dbinding.tootle=false \
-Dbinding.remotery=false \
-Dbinding.assimp=false \
-Dbinding.bgfx=false \
-Dbinding.harfbuzz=false \
-Dbinding.hwloc=false \
-Dbinding.ktx=false \
-Dbinding.openvr=false \
-Dbinding.openxr=false \
-Dbinding.opus=false \
-Dbinding.shaderc=false \
-Dbinding.spvc=false \
-Dbinding.nanovg=false \
-Djavadoc.skip=true \
"$@"
}
build() {
_call_ant compile-templates generate compile
_call_ant -Dbuild.offline=true compile-native
yes | _call_ant -Dbuild.offline=true release
}
package() {
mkdir -vp "${dest_dir}${prefix}/share/lwjgl3"
find bin/RELEASE -type f -name '*.jar' ! -name '*-sources.jar' -exec cp '{}' "${dest_dir}${prefix}/share/lwjgl3" ';'
}
+8
View File
@@ -0,0 +1,8 @@
name=lwjgl3
version=3.3.3
source_method=tarball
tarball_url="https://github.com/LWJGL/lwjgl3/archive/refs/tags/${version}.tar.gz"
tarball_sha512=739a8bcadc0b4008326b9a90fcbc90076308baa0e38649454b8747187611d355d454e4c0396d1a9f4ea3c1ac515ec8f7ae0ff6607fb0dab825d035c6a83873b7
prepare() {
true
}