void-packages/srcpkgs/allegro5/template
2016-12-17 00:41:00 -02:00

33 lines
1.1 KiB
Bash

# Template file for 'allegro5'.
pkgname=allegro5
version=5.2.2
revision=1
wrksrc="allegro-${version}.0"
build_style=cmake
configure_args="-DWANT_DOCS=1 -DWANT_PHYSFS=1"
hostmakedepends="pkg-config"
makedepends="zlib-devel alsa-lib-devel jack-devel libXpm-devel libXxf86vm-devel
libXxf86dga-devel libXcursor-devel libvorbis-devel libpng-devel glu-devel
libjpeg-turbo-devel libtheora-devel freetype-devel libflac-devel physfs-devel
libopenal-devel"
depends="libGL"
short_desc="Portable library mainly aimed at video game and multimedia programming"
maintainer="Diogo Leal <diogo@diogoleal.com>"
license="Allegro License (MIT alike)"
homepage="http://alleg.sourceforge.net/"
distfiles="http://download.gna.org/allegro/allegro/${version}/allegro-${version}.tar.gz"
checksum=e285b9e12a7b33488c0e7e139326903b9df10e8fa9adbfcfe2e1105b69ce94fc
post_install() {
vlicense LICENSE.txt
}
allegro5-devel_package() {
short_desc+=" - development files"
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}