summaryrefslogtreecommitdiff
path: root/repo/system/libpng/libpng.xibuild
blob: e40077df0257055d88c05cdba5263002f2b0c13d (plain)
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
#!/bin/sh

MAKEDEPS="make "
DEPS=""

PKG_VER=1.6.37
SOURCE=https://downloads.sourceforge.net/libpng/libpng-$PKG_VER.tar.xz
DESC="A collection of routines used to create PNG images"
ADDITIONAL="libpng-1.6.37-apng.patch"

prepare () {
    apply_patches
}

build () {
    ./configure --prefix=/usr --disable-static &&
    make
}

package () {
    make DESTDIR=$PKG_DEST install 
    mkdir -p $PKG_DEST/usr/share/doc/libpng-$PKG_VER &&
    cp README libpng-manual.txt $PKG_DEST/usr/share/doc/libpng-$PKG_VER

}