-
Notifications
You must be signed in to change notification settings - Fork 298
/
libpng16-1.6.27.recipe
95 lines (84 loc) · 2.31 KB
/
libpng16-1.6.27.recipe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
SUMMARY="Portable Network Graphics library"
DESCRIPTION="libpng is the official PNG reference library. It supports almost \
all PNG features, is extensible, and has been extensively tested for over 17 \
years."
HOMEPAGE="http://www.libpng.org/"
COPYRIGHT="1998-2016 Glenn Randers-Pehrson
1996-1997 Andreas Dilger
1995-1996 Guy Eric Schalnat, Group 42, Inc."
LICENSE="LibPNG"
REVISION="1"
SOURCE_URI="http://downloads.sf.net/libpng/libpng-$portVersion.tar.gz"
CHECKSUM_SHA256="c9d164ec247f426a525a7b89936694aefbc91fb7a50182b198898b8fc91174b4"
SOURCE_DIR="libpng-$portVersion"
ARCHITECTURES="x86_gcc2 x86 x86_64 arm ?ppc"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
libpng16$secondaryArchSuffix = $portVersion compat >= 1.6
lib:libpng$secondaryArchSuffix = 16.26.0 compat >= 16
lib:libpng16$secondaryArchSuffix = 16.26.0 compat >= 16
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
libpng16${secondaryArchSuffix}_devel = $portVersion compat >= 1.6
cmd:libpng_config$secondaryArchSuffix = $portVersion compat >= 1.6
cmd:libpng16_config$secondaryArchSuffix = $portVersion compat >= 1.6
cmd:pngcp$secondaryArchSuffix = $portVersion compat >= 1.6
cmd:pngfix$secondaryArchSuffix = $portVersion compat >= 1.6
cmd:png_fix_itxt$secondaryArchSuffix = $portVersion compat >= 1.6
devel:libpng$secondaryArchSuffix = 16.26.0 compat >= 16
devel:libpng16$secondaryArchSuffix = 16.26.0 compat >= 16
"
REQUIRES_devel="
libpng16$secondaryArchSuffix == $portVersion base
haiku$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
CONFLICTS_devel="
libpng12${secondaryArchSuffix}_devel
libpng${secondaryArchSuffix}_devel
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libz$secondaryArchSuffix >= 1.0.4
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix >= 2.4.2
cmd:make
"
BUILD()
{
autoreconf -f -i
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/libpng*.la
prepareInstalledDevelLibs libpng libpng16
fixPkgconfig
if [ -z "$secondaryArchSuffix" ]; then
maybe_manDir_man3=$manDir/man3
else
maybe_manDir_man3=
rm -rf $manDir
fi
# devel package
packageEntries devel \
$binDir \
$developDir \
$maybe_manDir_man3
}
TEST()
{
make check
}