mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
LibJPEG-Turbo: bump, switch to cmake, enable x86_64 and x86 (#3747)
This commit is contained in:
@@ -19,7 +19,7 @@ early 2010, libjpeg-turbo spun off into an independent project, with the goal \
|
||||
of making high-speed JPEG compression/decompression technology available to \
|
||||
a broader range of users and developers."
|
||||
HOMEPAGE="https://www.libjpeg-turbo.org/"
|
||||
COPYRIGHT="1991-2018 Thomas G. Lane, Guido Vollbeding
|
||||
COPYRIGHT="1991-2019 Thomas G. Lane, Guido Vollbeding
|
||||
1997-2010 Guido Vollbeding
|
||||
2000-2017 D. R. Commander
|
||||
2009 Bill Allombert
|
||||
@@ -32,18 +32,17 @@ COPYRIGHT="1991-2018 Thomas G. Lane, Guido Vollbeding
|
||||
LICENSE="BSD (3-clause)
|
||||
IJG
|
||||
Zlib"
|
||||
REVISION="3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://downloads.sourceforge.net/libjpeg-turbo/libjpeg-turbo-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="b24890e2bb46e12e72a79f7e965f409f4e16466d00e1dd15d93d73ee6b592523"
|
||||
CHECKSUM_SHA256="acb8599fe5399af114287ee5907aea4456f8f2c1cc96d26c28aebfdf5ee82fed"
|
||||
SOURCE_DIR="libjpeg-turbo-$portVersion"
|
||||
PATCHES="libjpeg_turbo-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="?x86_gcc2 ?x86 ?x86_64 ?arm"
|
||||
SECONDARY_ARCHITECTURES="?x86"
|
||||
ARCHITECTURES="?x86_gcc2 ?x86 x86_64 ?arm"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libjpegVersion="62.2.0"
|
||||
libjpegVersion="62.3.0"
|
||||
libjpegVersionCompat="$libjpegVersion compat >= ${libjpegVersion%%.*}"
|
||||
libturbojpegVersion="0.1.0"
|
||||
libturbojpegVersion="0.2.0"
|
||||
libturbojpegVersionCompat="$libturbojpegVersion compat >= ${libturbojpegVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
@@ -88,12 +87,8 @@ BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:automake
|
||||
cmd:autoreconf
|
||||
cmd:awk
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:grep
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
@@ -107,13 +102,15 @@ defineDebugInfoPackage jpeg_turbo$secondaryArchSuffix \
|
||||
|
||||
BUILD()
|
||||
{
|
||||
autoreconf -fi
|
||||
runConfigure ./configure
|
||||
mkdir -p haiku_build && cd haiku_build
|
||||
cmake .. \
|
||||
$cmakeDirArgs
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd haiku_build
|
||||
make install
|
||||
|
||||
rm -f "$libDir"/lib*jpeg.la
|
||||
@@ -133,5 +130,6 @@ INSTALL()
|
||||
|
||||
TEST()
|
||||
{
|
||||
cd haiku_build
|
||||
make test
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
From bf7be1f0e2f9c6758e0f5f4f5ae2c21dc4e3ab12 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
|
||||
Date: Fri, 16 Mar 2018 18:34:16 +0100
|
||||
Subject: Basi Haiku arch support
|
||||
|
||||
|
||||
diff --git a/acinclude.m4 b/acinclude.m4
|
||||
index 113169f..fce8884 100644
|
||||
--- a/acinclude.m4
|
||||
+++ b/acinclude.m4
|
||||
@@ -77,6 +77,16 @@ case "$host_os" in
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
+ haiku*)
|
||||
+ case "$host_cpu" in
|
||||
+ x86_64)
|
||||
+ objfmt='ELF64'
|
||||
+ ;;
|
||||
+ *)
|
||||
+ objfmt='ELF'
|
||||
+ ;;
|
||||
+ esac
|
||||
+ ;;
|
||||
*)
|
||||
objfmt='ELF ?'
|
||||
;;
|
||||
--
|
||||
2.16.2
|
||||
|
||||
Reference in New Issue
Block a user