]>
Commit | Line | Data |
---|---|---|
3b878b6f | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
3b878b6f SS |
4 | ############################################################################### |
5 | ||
8ed466cd | 6 | name = libjpeg |
831bb895 | 7 | version = 2.1.4 |
2cba7dba | 8 | release = 1 |
8ed466cd | 9 | thisapp = libjpeg-turbo-%{version} |
70e0de8a | 10 | |
802ea3af MT |
11 | groups = System/Libraries |
12 | url = http://sourceforge.net/projects/libjpeg-turbo | |
13 | license = wxWidgets | |
14 | summary = A MMX/SSE2 accelerated library for manipulating JPEG image files. | |
70e0de8a | 15 | |
802ea3af | 16 | description |
334b5987 SS |
17 | The libjpeg-turbo-utils package contains simple client programs for |
18 | accessing the libjpeg functions. It contains cjpeg, djpeg, jpegtran, | |
19 | rdjpgcom and wrjpgcom. Cjpeg compresses an image file into JPEG format. | |
20 | Djpeg decompresses a JPEG file into a regular image file. Jpegtran | |
21 | can perform various useful transformations on JPEG files. Rdjpgcom | |
22 | displays any text comments included in a JPEG file. Wrjpgcom inserts | |
70e0de8a | 23 | text comments into a JPEG file. |
802ea3af MT |
24 | end |
25 | ||
8ed466cd | 26 | source_dl = http://sourceforge.net/projects/libjpeg-turbo/files/%{version}/ |
802ea3af MT |
27 | |
28 | build | |
29 | requires | |
831bb895 | 30 | cmake |
802ea3af | 31 | gcc-c++ |
802ea3af MT |
32 | nasm |
33 | end | |
34 | ||
831bb895 SS |
35 | # NASM object files are missing GNU Property note for Intel CET, |
36 | # force it on the resulting library | |
37 | LDFLAGS +="-Wl,-z,ibt -Wl,-z,shstk" | |
802ea3af | 38 | |
831bb895 SS |
39 | export LD_LIBRARY_PATH = %{DIR_APP} |
40 | ||
41 | build | |
42 | %{cmake} . \ | |
43 | -DCMAKE_SKIP_RPATH:BOOL=YES \ | |
44 | -DCMAKE_SKIP_INSTALL_RPATH:BOOL=YES \ | |
45 | -DENABLE_STATIC:BOOL=NO | |
46 | ||
47 | make %{PARALLELISMFLAGS} | |
48 | end | |
49 | ||
50 | test | |
51 | make test | |
802ea3af | 52 | end |
802ea3af MT |
53 | end |
54 | ||
55 | packages | |
56 | package %{name} | |
1f9bc2f0 | 57 | |
802ea3af MT |
58 | package %{name}-devel |
59 | template DEVEL | |
8ed466cd | 60 | |
67c2f986 | 61 | files += !%{libdir}/libturbojpeg.so |
802ea3af | 62 | end |
1f9bc2f0 MT |
63 | |
64 | package %{name}-debuginfo | |
65 | template DEBUGINFO | |
66 | end | |
802ea3af | 67 | end |