1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
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.
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.
22 sources = %{thisapp}.tar.xz
40 LDFLAGS="%{LDFLAGS} -L$(pwd)/pbm -L$(pwd)/pgm -L$(pwd)/pnm -L$(pwd)/ppm" \
41 CFLAGS="%{CFLAGS} -flax-vector-conversions -fno-strict-aliasing" \
47 make package pkgdir=%{BUILDROOT}%{prefix} LINUXSVGALIB="NONE" XML2LIBS="NONE"
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}
54 ln -svf libnetpbm.so.11 %{BUILDROOT}%{libdir}/libnetpbm.so
56 rm -rvf %{BUILDROOT}%{prefix}/{README,VERSION,link,misc,man,pkginfo,config_template}
57 rm -rvf %{BUILDROOT}%{bindir}/doc.url
74 package %{name}-debuginfo