void-packages/srcpkgs/irrlicht/template
2022-02-14 09:49:51 +01:00

48 lines
1.2 KiB
Bash

# Template file for 'irrlicht'
pkgname=irrlicht
version=1.8.5
revision=1
hostmakedepends="unzip pkg-config"
makedepends="libjpeg-turbo-devel libpng-devel libXcursor-devel libXext-devel
MesaLib-devel libXxf86vm-devel"
short_desc="Lightning fast realtime 3D engine"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause, bzip2-1.0.5, IJG, Libpng"
homepage="http://irrlicht.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.zip"
checksum=effb7beed3985099ce2315a959c639b4973aac8210f61e354475a84105944f3d
CPPFLAGS="-DPNG_ARM_NEON_OPT=0"
do_build() {
cd ${wrksrc}/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
}
post_install() {
vlicense doc/irrlicht-license.txt
}
irrlicht-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}