]> git.ipfire.org Git - ipfire-3.x.git/blame - netpbm/netpbm.nm
pcengines-firmware: update to 4.9.0.7
[ipfire-3.x.git] / netpbm / netpbm.nm
CommitLineData
f6ff3b4a
MT
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = netpbm
892abb57 7version = 10.71.02
f6ff3b4a
MT
8release = 1
9
10groups = System/Libraries
11url = http://netpbm.sourceforge.net/
12license = BSD and GPLv2 and IJG and MIT and Public Domain
13summary = A library for handling different graphics file formats.
14
15description
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.
20end
21
892abb57
MT
22sources = %{thisapp}.tar.xz
23
f6ff3b4a
MT
24build
25 requires
26 flex
892abb57 27 ghostscript
f6ff3b4a
MT
28 libjpeg-devel
29 libpng-devel
30 libtiff-devel
31 libX11-devel
32 libxml2-devel
33 perl
34 end
35
f6ff3b4a
MT
36 build
37 yes "" | ./configure
38
39 make \
892abb57 40 LDFLAGS="%{LDFLAGS} -L$(pwd)/pbm -L$(pwd)/pgm -L$(pwd)/pnm -L$(pwd)/ppm" \
f6ff3b4a
MT
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
59end
60
61packages
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
77end