|
root / base / libpng
libpng Plain Text 51 lines 1.5 KB
 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
#!/bin/sh
# Build script for libpng (autotools, Template A). zlib dependency is
# PRESENT in base (/usr/lib) - not ported separately.
set -e
cd "$SRCDIR"

# Mandatory libtool hammerhead* dynamic-linker fix (see libXrender/Task 4a
# gotcha): unmatched host_os falls through to "dynamic_linker=no", forcing
# static-only output without this.
if [ -f configure ]; then
    sed -i -E 's/(kopensolaris\*-gnu)([^)]*\))/\1 | hammerhead*\2/' configure
fi

export PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig:$PREFIX/share/pkgconfig:/usr/lib/pkgconfig:$PKG_CONFIG_PATH"
export CFLAGS="${CFLAGS} -I$PREFIX/include -D__EXTENSIONS__"
export LDFLAGS="${LDFLAGS} -L$PREFIX/lib -R$PREFIX/lib"

./configure \
    --prefix="$PREFIX" \
    --build="$BUILD_TRIPLE" \
    --host="$BUILD_TRIPLE" \
    --sysconfdir="$SYSCONFDIR" \
    --disable-static

gmake -j${JOBS:-1}
gmake install DESTDIR="$PKGDIR"
# libpng - PNG reference library (freetype dependency)
# http://www.libpng.org/pub/png/libpng.html

[package]
name = "libpng"
version = "1.6.58"
release = 1
description = "PNG reference library"
url = "http://www.libpng.org/pub/png/libpng.html"
license = "libpng-2.0"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"

[dependencies]
runtime = []
build = []

[[source]]
file = "libpng-1.6.58.tar.xz"
urls = ["https://downloads.sourceforge.net/project/libpng/libpng16/1.6.58/libpng-1.6.58.tar.xz"]
checksum = "28eb403f51f0f7405249132cecfe82ea5c0ef97f1b32c5a65828814ae0d34775"

[build]
parallel = true