1 # Maintainer: Moritz Fischer <aur@pure-entropy.org>
2 pkgname=ppc64-xenon-libpng
5 pkgdesc="libpng is the official PNG reference library. It supports almost all PNG features, is extensible, and has been extensively tested for over 15 years."
9 makedepends=('git' 'libmpc' 'mpfr' 'gettext' 'ppc64-xenon-binutils' 'ppc64-xenon-newlib' 'ppc64-xenon-gcc-elf')
10 provides=('ppc64-xenon-libpng')
11 url=("http://www.libpng.org")
12 options=(!strip !buildflags)
13 source=(ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-${pkgver}.tar.xz)
14 md5sums=('5f4e7ca1b54f361c5cfe5d520d989f29')
17 cd ${srcdir}/libpng-${pkgver}
18 export DEVKITXENON=/usr/xenon
20 export CFLAGS="-mcpu=cell -mtune=cell -m32 -fno-pic -mpowerpc64 $DEVKITXENON/lib/libxenon.a -L$DEVKITXENON/lib/32/ -T$DEVKITXENON/app.lds -u read -u _start -u exc_base"
22 ./configure --prefix=/usr/xenon --host=$CHOST
23 make CROSS_COMPILE=xenon-
27 cd ${srcdir}/libpng-${pkgver}
28 make CROSS_COMPILE=xenon- DESTDIR=${pkgdir} install
29 rm ${pkgdir}/usr/xenon/share -r