void-packages/srcpkgs/irrlicht/template

44 lines
1.1 KiB
Plaintext
Raw Normal View History

2013-06-18 10:34:02 +02:00
# Template file for 'irrlicht'
pkgname=irrlicht
version=1.8
revision=1
hostmakedepends="unzip pkg-config"
makedepends="libjpeg-turbo-devel libpng-devel libXcursor-devel libXext-devel MesaLib-devel"
short_desc="Lightning fast realtime 3D engine"
maintainer="Juan RP <xtraeme@gmail.com>"
license="LGPL-2.1"
homepage="http://irrlicht.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.zip"
checksum=f8756c3cf83f16f41eb1eca8f4ebb530f0e8fd572443905e3d8eb8f09445a642
do_build() {
cd source/Irrlicht
make ${makejobs} NDEBUG=1 sharedlib
make ${makejobs} NDEBUG=1
}
do_install() {
cd source/Irrlicht
vmkdir usr/lib
sed -i "/^INSTALL_DIR/s:=.*:=${DESTDIR}/usr/lib:" Makefile
make install
cd ${wrksrc}
vinstall lib/Linux/libIrrlicht.a 644 usr/lib
chmod 644 ${DESTDIR}/usr/include/$pkgname/*
cd ${DESTDIR}/usr/lib
ln -s libIrrlicht.so.${version} libIrrlicht.so.1
}
irrlicht-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}