1 # Maintainer: Moritz Fischer <aur@pure-entropy.org>
2 pkgname=ppc64-xenon-zlib
5 pkgdesc="A Massively Spiffy Yet Delicately Unobtrusive Compression Library"
9 makedepends=('git' 'libmpc' 'mpfr' 'gettext' 'ppc64-xenon-binutils' 'ppc64-xenon-newlib' 'ppc64-xenon-gcc-elf')
10 provides=('ppc64-xenon-zlib')
11 url="http://free60.org"
12 options=(!strip !buildflags)
13 source=(http://zlib.net/zlib-1.2.5.tar.gz
16 md5sums=('c735eab2d659a96e5a594c9e8541ad63'
17 '8fb54a0fe2179278322ea6707c553fb2')
20 cd ${srcdir}/zlib-${pkgver}
21 export DEVKITXENON=/usr/xenon
23 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"
25 patch < ../Makefile.patch
26 ./configure --prefix=/usr/xenon
27 make CROSS_COMPILE=xenon-
31 cd ${srcdir}/zlib-${pkgver}
32 make CROSS_COMPILE=xenon- DESTDIR=${pkgdir} install
33 rm ${pkgdir}/usr/xenon/share -r