]> git.ipfire.org Git - ipfire-3.x.git/blob - netpbm/netpbm.nm
kernel: Update to 5.3.7
[ipfire-3.x.git] / netpbm / netpbm.nm
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.71.02
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 sources = %{thisapp}.tar.xz
23
24 build
25 requires
26 flex
27 ghostscript
28 libjpeg-devel
29 libpng-devel
30 libtiff-devel
31 libX11-devel
32 libxml2-devel
33 perl
34 end
35
36 build
37 yes "" | ./configure
38
39 make \
40 LDFLAGS="%{LDFLAGS} -L$(pwd)/pbm -L$(pwd)/pgm -L$(pwd)/pnm -L$(pwd)/ppm" \
41 CFLAGS="%{CFLAGS} -flax-vector-conversions -fno-strict-aliasing" \
42 LADD="-lm" \
43 LINUXSVGALIB="NONE"
44 end
45
46 install
47 make package pkgdir=%{BUILDROOT}%{prefix} LINUXSVGALIB="NONE" XML2LIBS="NONE"
48
49 # Ugly hack to have libs in correct dir on 64bit archs.
50 mkdir -p %{BUILDROOT}%{libdir}
51 if [ "%{libdir}" != "/usr/lib" ]; then
52 mv %{BUILDROOT}/usr/lib/lib* %{BUILDROOT}%{libdir}
53 fi
54 ln -svf libnetpbm.so.11 %{BUILDROOT}%{libdir}/libnetpbm.so
55
56 rm -rvf %{BUILDROOT}%{prefix}/{README,VERSION,link,misc,man,pkginfo,config_template}
57 rm -rvf %{BUILDROOT}%{bindir}/doc.url
58 end
59 end
60
61 packages
62 package %{name}
63
64 package %{name}-progs
65 files
66 %{bindir}
67 end
68 end
69
70 package %{name}-devel
71 template DEVEL
72 end
73
74 package %{name}-debuginfo
75 template DEBUGINFO
76 end
77 end