void-packages/srcpkgs/libopenal/template
Juan RP 1c5f4690e6 xbps-src: always require current srcpkgs version in build dependencies.
That means that version comparators are not supported anymore in
hostmakedepends and makedepends.

This will ensure that a pkg is always built with the same build dependencies
everywhere, if the srcpkgs tree is uptodate.
2015-03-27 10:59:58 +01:00

32 lines
912 B
Bash

# Template file for 'libopenal'
pkgname=libopenal
version=1.16.0
revision=2
build_style=cmake
wrksrc="openal-soft-${version}"
short_desc="A cross-platform 3D audio library"
maintainer="Juan RP <xtraeme@gmail.com>"
license="LGPL-2.1"
homepage="http://kcat.strangesoft.net/openal.html"
distfiles="http://kcat.strangesoft.net/openal-releases/openal-soft-${version}.tar.bz2"
checksum=2f3dcd313fe26391284fbf8596863723f99c65d6c6846dccb48e79cadaf40d5f
hostmakedepends="pkg-config cmake"
makedepends="alsa-lib-devel pulseaudio-devel SDL-devel ffmpeg-devel"
# dlopen(3)d dependencies
depends="alsa-lib libpulseaudio SDL"
post_install() {
rm -f ${DESTDIR}/usr/share/openal/alsoftrc.sample
vsconf alsoftrc.sample
}
libopenal-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}