Ports: Add openjpeg

This commit is contained in:
Fabian Dellwing 2024-02-21 12:40:50 +01:00 committed by Tim Schumacher
parent dd3e002ecf
commit bc605ebb9c
2 changed files with 32 additions and 0 deletions

View file

@ -234,6 +234,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n
| [`ObjFW`](ObjFW/) | ObjFW | 8d19ba9 | https://objfw.nil.im/ |
| [`oksh`](oksh/) | oksh | 7.1 | https://github.com/ibara/oksh |
| [`OpenJDK`](OpenJDK/) | OpenJDK | 17.0.6 | https://openjdk.java.net/ |
| [`openjpeg`](openjpeg/) | OpenJPEG | 2.5.2 | https://www.openjpeg.org/ |
| [`openrct2`](openrct2/) | OpenRCT2 | 0.4.9 | https://openrct2.org/ |
| [`openssh`](openssh/) | OpenSSH | 9.0-94eb685 | https://github.com/openssh/openssh-portable |
| [`openssl`](openssl/) | OpenSSL | 3.1.2 | https://www.openssl.org/ |

31
Ports/openjpeg/package.sh Executable file
View file

@ -0,0 +1,31 @@
#!/usr/bin/env -S bash ../.port_include.sh
port='openjpeg'
version='2.5.2'
useconfigure='true'
files=(
"https://github.com/uclouvain/openjpeg/archive/refs/tags/v${version}.tar.gz#90e3896fed910c376aaf79cdd98bdfdaf98c6472efd8e1debf0a854938cbda6a"
)
depends=(
'lcms2'
'libpng'
'libtiff'
'zlib'
)
configopts=(
'-B build'
"-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt"
'-DCMAKE_BUILD_TYPE=release'
)
configure() {
run cmake "${configopts[@]}"
}
build() {
run make -C build "${makeopts[@]}"
}
install() {
run make -C build install "${installopts[@]}"
}