]> git.ipfire.org Git - ipfire-3.x.git/blame - netpbm/netpbm.nm
gmp: Set ABI to 64 for all architectures.
[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
c45ab529 7version = 10.73.41
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
c45ab529
SS
22source_dl = https://netcologne.dl.sourceforge.net/project/netpbm/super_stable/%{version}/
23sources = %{thisapp}.tgz
892abb57 24
f6ff3b4a
MT
25build
26 requires
c45ab529
SS
27 /usr/bin/perl
28 perl(English)
29 perl(Time::gmtime)
f6ff3b4a
MT
30 flex
31 libjpeg-devel
32 libpng-devel
33 libtiff-devel
f6ff3b4a 34 libxml2-devel
c45ab529 35 zlib-devel
f6ff3b4a
MT
36 end
37
c45ab529
SS
38 prepare_cmds
39 # Create config file.
40 cp -avf config.mk.in config.mk
41
42 # Enable fPIC.
43 echo 'CFLAGS_SHLIB = -fPIC' >> config.mk
44
45 # Disable static libs.
46 echo 'STATICLIB_TOO = N' >> config.mk
47
48 # Link to libtiff, libjpeg, libpng and libz.
49 echo 'TIFFLIB = libtiff.so' >> config.mk
50 echo 'JPEGLIB = libjpeg.so' >> config.mk
51 echo 'PNGLIB = libpng.so' >> config.mk
52 echo 'ZLIB = libz.so' >> config.mk
f6ff3b4a 53
c45ab529
SS
54 # Define include directorys for the linked libraries.
55 echo 'TIFFHDR_DIR = %{includedir}' >> config.mk
56 echo 'JPEGHDR_DIR = %{includedir}' >> config.mk
57 echo 'PNGHDR_DIR = %{includedir}' >> config.mk
58 echo 'ZHDR_DIR = %{includedir}' >> config.mk
59 end
60
61 build
62 make %{PARALLELISMFLAGS} \
892abb57 63 LDFLAGS="%{LDFLAGS} -L$(pwd)/pbm -L$(pwd)/pgm -L$(pwd)/pnm -L$(pwd)/ppm" \
f6ff3b4a
MT
64 CFLAGS="%{CFLAGS} -flax-vector-conversions -fno-strict-aliasing" \
65 LADD="-lm" \
c45ab529
SS
66 LINUXSVGALIB="NONE" \
67 X11LIB="NONE"
f6ff3b4a
MT
68 end
69
70 install
71 make package pkgdir=%{BUILDROOT}%{prefix} LINUXSVGALIB="NONE" XML2LIBS="NONE"
72
73 # Ugly hack to have libs in correct dir on 64bit archs.
74 mkdir -p %{BUILDROOT}%{libdir}
75 if [ "%{libdir}" != "/usr/lib" ]; then
76 mv %{BUILDROOT}/usr/lib/lib* %{BUILDROOT}%{libdir}
77 fi
78 ln -svf libnetpbm.so.11 %{BUILDROOT}%{libdir}/libnetpbm.so
79
80 rm -rvf %{BUILDROOT}%{prefix}/{README,VERSION,link,misc,man,pkginfo,config_template}
81 rm -rvf %{BUILDROOT}%{bindir}/doc.url
82 end
83end
84
85packages
86 package %{name}
87
88 package %{name}-progs
89 files
90 %{bindir}
91 end
92 end
93
94 package %{name}-devel
95 template DEVEL
96 end
97
98 package %{name}-debuginfo
99 template DEBUGINFO
100 end
101end