]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - netpbm/netpbm.nm
tmux: New package.
[people/ms/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
7version = 10.61.01
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
22build
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
62end
63
64packages
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
80end