public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] libjpeg: Update to 2.1.4
@ 2022-12-05 19:55 Stefan Schantl
  0 siblings, 0 replies; only message in thread
From: Stefan Schantl @ 2022-12-05 19:55 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 1241 bytes --]

Signed-off-by: Stefan Schantl <stefan.schantl(a)ipfire.org>
---
 libjpeg/libjpeg.nm | 26 ++++++++++++++++++--------
 1 file changed, 18 insertions(+), 8 deletions(-)

diff --git a/libjpeg/libjpeg.nm b/libjpeg/libjpeg.nm
index 1dea7aa92..b4d7b0eb0 100644
--- a/libjpeg/libjpeg.nm
+++ b/libjpeg/libjpeg.nm
@@ -4,7 +4,7 @@
 ###############################################################################
 
 name       = libjpeg
-version    = 1.4.2
+version    = 2.1.4
 release    = 1
 thisapp    = libjpeg-turbo-%{version}
 
@@ -27,18 +27,28 @@ source_dl  = http://sourceforge.net/projects/libjpeg-turbo/files/%{version}/
 
 build
 	requires
-		autoconf
-		automake
+		cmake
 		gcc-c++
-		libtool
 		nasm
 	end
 
-	configure_options += \
-		--enable-shared
+	# NASM object files are missing GNU Property note for Intel CET,
+	# force it on the resulting library
+	LDFLAGS +="-Wl,-z,ibt -Wl,-z,shstk"
 
-	prepare_cmds
-		autoreconf -vfi
+	export LD_LIBRARY_PATH = %{DIR_APP}
+
+	build
+		%{cmake} . \
+			-DCMAKE_SKIP_RPATH:BOOL=YES \
+			-DCMAKE_SKIP_INSTALL_RPATH:BOOL=YES \
+			-DENABLE_STATIC:BOOL=NO
+
+		make %{PARALLELISMFLAGS}
+	end
+
+	test
+		make test
 	end
 end
 
-- 
2.30.2


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-05 19:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-05 19:55 [PATCH] libjpeg: Update to 2.1.4 Stefan Schantl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox