void-packages/srcpkgs/SDL/template

52 lines
1.6 KiB
Text
Raw Normal View History

# Template file for 'SDL'
pkgname=SDL
2012-01-21 20:07:50 +00:00
version=1.2.15
revision=9
2011-06-08 14:45:39 +00:00
patch_args="-Np1"
build_style=gnu-configure
configure_args="--enable-alsa --disable-esd --disable-rpath
--enable-clock_gettime --disable-nas --disable-arts --disable-x11-shared
--disable-alsa-shared --disable-pulseaudio-shared --disable-video-dga
--disable-osmesa-shared $(vopt_enable aalib video-aalib)
$(vopt_enable pulseaudio) $(vopt_enable opengl video-opengl)
$(vopt_if x11 '-enable-video-x11-xrandr --enable-video-x11-vm --enable-video-x11-xv')"
short_desc="Simple Directmedia Layer"
maintainer="Juan RP <xtraeme@gmail.com>"
2011-06-08 14:45:39 +00:00
homepage="http://www.libsdl.org/"
license="LGPL-2.1"
2012-07-31 13:01:34 +00:00
distfiles="http://www.libsdl.org/release/SDL-$version.tar.gz"
2012-01-21 20:07:50 +00:00
checksum=d6d316a793e5e348155f0dd93b979798933fb98aa1edebcc108829d6474aad00
hostmakedepends="pkg-config nasm"
makedepends="alsa-lib-devel $(vopt_if x11 libXrandr-devel)
$(vopt_if aalib aalib-devel) $(vopt_if opengl glu-devel)
$(vopt_if pulseaudio pulseaudio-devel)"
# Package build options
build_options="x11 opengl aalib pulseaudio"
build_options_default="x11"
if [ "$XBPS_TARGET_MACHINE" = "i686" -o "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
# Enable OpenGL and pulseaudio on x86.
build_options_default+=" opengl pulseaudio"
fi
if [ "$build_option_opengl" ]; then
# libGL.so.1 is dynamically loaded with dlopen.
shlib_requires="libGL.so.1"
depends="libGL"
fi
SDL-devel_package() {
2014-02-17 08:57:19 +00:00
short_desc+=" - development files"
depends="${makedepends} SDL>=${version}_${revision}"
pkg_install() {
vmove usr/bin
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
2014-02-17 08:57:19 +00:00
vmove "usr/lib/*.so"
vmove usr/share
}
}