mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
66 lines
1.8 KiB
Bash
66 lines
1.8 KiB
Bash
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
|
|
# Contributor: Hilton Medeiros <medeiros.hilton AT gmail DOT com>
|
|
# Contributor: Ali H. Caliskan <ali.h.caliskan AT gmail DOT com>
|
|
# Contributor: Paolo Fagni <paolo.fagni AT mail DOT com>
|
|
# Contributor: Lukas Kropatschek <lukas.krop AT gmail DOT com>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - add -DPNG_ARM_NEON_OPT=0 to CPPFLAGS
|
|
|
|
pkgbase=irrlicht
|
|
pkgname=('irrlicht' 'irrlicht-docs')
|
|
pkgver=1.8.4
|
|
pkgrel=2.1
|
|
pkgdesc="An open source high performance realtime 3D graphics engine."
|
|
arch=('x86_64')
|
|
url="http://irrlicht.sourceforge.net/"
|
|
license=('ZLIB')
|
|
depends=('libgl' 'libjpeg' 'bzip2' 'libpng')
|
|
makedepends=('mesa' 'unzip' 'libxcursor')
|
|
optdepends=('libxcursor: run examples')
|
|
source=("https://downloads.sourceforge.net/irrlicht/$pkgname-$pkgver.zip")
|
|
noextract=($pkgname-$pkgver.zip)
|
|
md5sums=('9401cfff801395010b0912211f3cbb4f')
|
|
|
|
prepare() {
|
|
unzip $pkgbase-$pkgver.zip
|
|
|
|
cd $srcdir/$pkgbase-$pkgver/source/Irrlicht
|
|
}
|
|
|
|
build() {
|
|
cd $srcdir/$pkgbase-$pkgver/source/Irrlicht
|
|
|
|
CPPFLAGS+=" -DPNG_ARM_NEON_OPT=0"
|
|
make NDEBUG=1 sharedlib
|
|
}
|
|
|
|
package_irrlicht() {
|
|
cd $srcdir/$pkgbase-$pkgver/source/Irrlicht
|
|
|
|
sed -i "/^INSTALL_DIR/s:=.*:=$pkgdir/usr/lib:" Makefile
|
|
|
|
make install
|
|
|
|
cd $srcdir/$pkgbase-$pkgver/
|
|
install -Dm644 readme.txt $pkgdir/usr/share/licenses/$pkgbase/LICENSE
|
|
|
|
# fix headers permissions
|
|
chmod 644 $pkgdir/usr/include/$pkgbase/*
|
|
|
|
cd $pkgdir/usr/lib
|
|
ln -s libIrrlicht.so.$pkgver libIrrlicht.so.1
|
|
}
|
|
|
|
package_irrlicht-docs() {
|
|
cd $srcdir/$pkgbase-$pkgver/
|
|
|
|
install -d $pkgdir/usr/share/$pkgbase $pkgdir/usr/share/doc/$pkgbase
|
|
|
|
# install media files for examples
|
|
cp -r media $pkgdir/usr/share/$pkgbase
|
|
|
|
# install documentation
|
|
cp -r doc/* $pkgdir/usr/share/doc/$pkgbase
|
|
rm -f $pkgdir/usr/share/doc/$pkgbase/*.txt
|
|
}
|