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