summaryrefslogtreecommitdiffhomepage
path: root/vars
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2019-03-25 17:36:54 +0000
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2019-03-25 17:36:54 +0000
commit456d2b42b6049e458720b4d2fa0ce51fe7d81b91 (patch)
tree771d5ef7d8aef3b0e441888badd532b512841b41 /vars
parent6b6135b04f86cee666fec39a42b849a1956545b3 (diff)
downloadmidipix_build-456d2b42b6049e458720b4d2fa0ce51fe7d81b91.tar.bz2
midipix_build-456d2b42b6049e458720b4d2fa0ce51fe7d81b91.tar.xz
vars/build.vars:libjpeg_turbo: updated to v2.0.2 (via Redfoxmoon.)
vars/libjpeg_turbo.vars: via Redfoxmoon.
Diffstat (limited to 'vars')
-rw-r--r--vars/build.vars7
-rw-r--r--vars/libjpeg_turbo.vars21
2 files changed, 24 insertions, 4 deletions
diff --git a/vars/build.vars b/vars/build.vars
index 8347c894..cf4e807e 100644
--- a/vars/build.vars
+++ b/vars/build.vars
@@ -549,10 +549,9 @@ NATIVE_PACKAGES_DEPS_PYTHON="${PREFIX}/bin/python2";
: ${PKG_LIBPNG_SHA256SUM:=eceb924c1fa6b79172fdfd008d335f0e59172a86a66481e09d4089df872aa319};
: ${PKG_LIBPNG_VERSION:=1.6.36};
: ${PKG_LIBPNG_URL:=https://sourceforge.mirrorservice.org/l/li/libpng/libpng16/${PKG_LIBPNG_VERSION}/libpng-${PKG_LIBPNG_VERSION}.tar.xz};
-: ${PKG_LIBJPEG_TURBO_SHA256SUM:=9098943b270388727ae61de82adec73cf9f0dbb240b3bc8b172595ebf405b528};
-: ${PKG_LIBJPEG_TURBO_VERSION:=1.5.2};
-: ${PKG_LIBJPEG_TURBO_URL:=https://midipix.zv.io/libjpeg/libjpeg-turbo-${PKG_LIBJPEG_TURBO_VERSION}.tar.gz};
-: ${PKG_LIBJPEG_TURBO_CONFIGURE_ARGS_EXTRA:=--without-simd --with-jpeg8};
+: ${PKG_LIBJPEG_TURBO_SHA256SUM:=acb8599fe5399af114287ee5907aea4456f8f2c1cc96d26c28aebfdf5ee82fed};
+: ${PKG_LIBJPEG_TURBO_VERSION:=2.0.2};
+: ${PKG_LIBJPEG_TURBO_URL:=https://sourceforge.mirrorservice.org/l/li/libjpeg-turbo/${PKG_LIBJPEG_TURBO_VERSION}/libjpeg-turbo-${PKG_LIBJPEG_TURBO_VERSION}.tar.gz};
: ${PKG_TIFF_SHA256SUM:=2c52d11ccaf767457db0c46795d9c7d1a8d8f76f68b0b800a3dfe45786b996e4};
: ${PKG_TIFF_VERSION:=4.0.10};
: ${PKG_TIFF_URL:=https://ftp.osuosl.org/pub/blfs/conglomeration/tiff/tiff-${PKG_TIFF_VERSION}.tar.gz};
diff --git a/vars/libjpeg_turbo.vars b/vars/libjpeg_turbo.vars
new file mode 100644
index 00000000..e36bcf6e
--- /dev/null
+++ b/vars/libjpeg_turbo.vars
@@ -0,0 +1,21 @@
+#
+# set -o errexit -o noglob are assumed.
+#
+
+pkg_libjpeg_turbo_configure() {
+ rm -f config.cache;
+ env CFLAGS="-L${PKG_PREFIX}/lib --sysroot=${PKG_PREFIX}" \
+ PREFIX="" \
+ cmake -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
+ -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \
+ -DCMAKE_AR="${PREFIX}/bin/${PKG_AR}" \
+ -DCMAKE_C_COMPILER="${PREFIX}/bin/${PKG_CC}" \
+ -DCMAKE_BUILD_TYPE="Debug" \
+ -DCMAKE_INSTALL_PREFIX= \
+ -DCMAKE_RANLIB="${PREFIX}/bin/${PKG_RANLIB}" \
+ -DWITH_JPEG8=ON \
+ -DCMAKE_ASM_NASM_COMPILER="${PREFIX}/bin/${PKG_TARGET}-nasm" \
+ -DCMAKE_ASM_NASM_OBJECT_FORMAT="win64" \
+ -DWITH_SIMD=OFF \
+ "../libjpeg-turbo-${PKG_VERSION}";
+}