]>
Commit | Line | Data |
---|---|---|
f6ff3b4a MT |
1 | ############################################################################### |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
6 | name = netpbm | |
7 | version = 10.61.01 | |
8 | release = 1 | |
9 | ||
10 | groups = System/Libraries | |
11 | url = http://netpbm.sourceforge.net/ | |
12 | license = BSD and GPLv2 and IJG and MIT and Public Domain | |
13 | summary = A library for handling different graphics file formats. | |
14 | ||
15 | description | |
16 | The netpbm package contains a library of functions which support | |
17 | programs for handling various graphics file formats, including .pbm | |
18 | (portable bitmaps), .pgm (portable graymaps), .pnm (portable anymaps), | |
19 | .ppm (portable pixmaps) and others. | |
20 | end | |
21 | ||
22 | build | |
23 | requires | |
24 | flex | |
25 | libjpeg-devel | |
26 | libpng-devel | |
27 | libtiff-devel | |
28 | libX11-devel | |
29 | libxml2-devel | |
30 | perl | |
31 | end | |
32 | ||
33 | prepare_cmds | |
34 | #sed -i 's/STRIPFLAG = -s/STRIPFLAG =/g' config.mk.in | |
35 | #rm -rf converter/other/jpeg2000/libjasper/ | |
36 | #sed -i -e 's/^SUBDIRS = libjasper/SUBDIRS =/' converter/other/jpeg2000/Makefile | |
37 | end | |
38 | ||
39 | build | |
40 | yes "" | ./configure | |
41 | ||
42 | make \ | |
43 | LDFLAGS="-L$(pwd)/pbm -L$(pwd)/pgm -L$(pwd)/pnm -L$(pwd)/ppm" \ | |
44 | CFLAGS="%{CFLAGS} -flax-vector-conversions -fno-strict-aliasing" \ | |
45 | LADD="-lm" \ | |
46 | LINUXSVGALIB="NONE" | |
47 | end | |
48 | ||
49 | install | |
50 | make package pkgdir=%{BUILDROOT}%{prefix} LINUXSVGALIB="NONE" XML2LIBS="NONE" | |
51 | ||
52 | # Ugly hack to have libs in correct dir on 64bit archs. | |
53 | mkdir -p %{BUILDROOT}%{libdir} | |
54 | if [ "%{libdir}" != "/usr/lib" ]; then | |
55 | mv %{BUILDROOT}/usr/lib/lib* %{BUILDROOT}%{libdir} | |
56 | fi | |
57 | ln -svf libnetpbm.so.11 %{BUILDROOT}%{libdir}/libnetpbm.so | |
58 | ||
59 | rm -rvf %{BUILDROOT}%{prefix}/{README,VERSION,link,misc,man,pkginfo,config_template} | |
60 | rm -rvf %{BUILDROOT}%{bindir}/doc.url | |
61 | end | |
62 | end | |
63 | ||
64 | packages | |
65 | package %{name} | |
66 | ||
67 | package %{name}-progs | |
68 | files | |
69 | %{bindir} | |
70 | end | |
71 | end | |
72 | ||
73 | package %{name}-devel | |
74 | template DEVEL | |
75 | end | |
76 | ||
77 | package %{name}-debuginfo | |
78 | template DEBUGINFO | |
79 | end | |
80 | end |