mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
ports: libjpeg-turbo
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
name=libjpeg-turbo
|
||||
revision=1
|
||||
from_source=libjpeg-turbo
|
||||
imagedeps="base-devel"
|
||||
hostdeps="xgcc xbinutils cmake"
|
||||
deps="mlibc"
|
||||
|
||||
build() {
|
||||
cmake \
|
||||
-DCMAKE_TOOLCHAIN_FILE=${base_dir}/util/cmake \
|
||||
-DCMAKE_INSTALL_PREFIX=${prefix} \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DENABLE_STATIC=FALSE \
|
||||
-DCMAKE_INSTALL_DOCIDR=/usr/share/doc/libjpeg-turbo-3.0.3 \
|
||||
-DCMAKE_INSTALL_DEFAULT_LIBDIR=lib \
|
||||
-DWITH_JPEG8=ON \
|
||||
-DCMAKE_SYSTEM_PROCESSOR=x86_64 \
|
||||
${source_dir}
|
||||
|
||||
make -j${parallelism}
|
||||
}
|
||||
|
||||
package() {
|
||||
make install DESTDIR="${dest_dir}"
|
||||
}
|
||||
+1
-3
@@ -3,9 +3,7 @@ revision=1
|
||||
from_source=links
|
||||
imagedeps="meson ninja base-devel libpng"
|
||||
hostdeps="xgcc xbinutils pkgconfig"
|
||||
deps="mlibc zlib openssl bzip2 libpng libxext freetype fontconfig"
|
||||
|
||||
# TODO libjpeg
|
||||
deps="mlibc zlib openssl bzip2 libpng libxext freetype fontconfig libjpeg-turbo"
|
||||
|
||||
build() {
|
||||
CC=x86_64-astral-gcc ${source_dir}/configure --prefix=${prefix} --host=x86_64-astral --enable-graphics --without-directfb --without-librsvg --with-bzip2 --with-X --x-includes=${sysroot_dir}/usr/include --x-libraries=${sysroot_dir}/usr/lib --with-zlib --with-openssl --without-libtiff --without-openmp --without-lzma --with-freetype --without-ipv6
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
name=libjpeg-turbo
|
||||
version=3.0.3
|
||||
source_method=tarball
|
||||
tarball_url="https://github.com/libjpeg-turbo/libjpeg-turbo/releases/download/${version}/libjpeg-turbo-${version}.tar.gz"
|
||||
tarball_sha512=7c3a6660e7a54527eaa40929f5cc3d519842ffb7e961c32630ae7232b71ecaa19e89dbf5600c61038f0c5db289b607c2316fe9b6b03d482d770bcac29288d129
|
||||
regenerate() {
|
||||
true
|
||||
}
|
||||
Reference in New Issue
Block a user