2009-12-24 03:32:26 +01:00
|
|
|
# Template file for 'SDL'
|
|
|
|
pkgname=SDL
|
2012-01-21 21:07:50 +01:00
|
|
|
version=1.2.15
|
2014-02-17 09:57:19 +01:00
|
|
|
revision=7
|
2011-06-08 16:45:39 +02:00
|
|
|
patch_args="-Np1"
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2009-12-24 03:32:26 +01:00
|
|
|
configure_args="--enable-alsa --disable-esd --disable-rpath
|
2013-03-24 11:20:04 +01:00
|
|
|
--enable-clock_gettime --disable-nas --disable-arts --disable-x11-shared
|
|
|
|
--disable-alsa-shared --disable-pulseaudio-shared --disable-video-dga
|
|
|
|
--disable-osmesa-shared"
|
2009-12-24 03:32:26 +01:00
|
|
|
short_desc="Simple Directmedia Layer"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-06-08 16:45:39 +02:00
|
|
|
homepage="http://www.libsdl.org/"
|
|
|
|
license="LGPL-2.1"
|
2012-07-31 15:01:34 +02:00
|
|
|
distfiles="http://www.libsdl.org/release/SDL-$version.tar.gz"
|
2012-01-21 21:07:50 +01:00
|
|
|
checksum=d6d316a793e5e348155f0dd93b979798933fb98aa1edebcc108829d6474aad00
|
2012-12-09 10:32:45 +01:00
|
|
|
|
2013-03-24 11:20:04 +01:00
|
|
|
hostmakedepends="pkg-config nasm"
|
|
|
|
makedepends="alsa-lib-devel"
|
2013-04-12 09:01:46 +02:00
|
|
|
|
|
|
|
# Package build options
|
|
|
|
build_options="x11 opengl aalib pulseaudio"
|
|
|
|
|
|
|
|
desc_option_x11="Enable support for X11 video output"
|
|
|
|
desc_option_opengl="Enable support for OpenGL support"
|
|
|
|
desc_option_aalib="Enable support for aalib video output"
|
|
|
|
desc_option_pulseaudio="Enable support for pulseaudio autio output"
|
|
|
|
|
|
|
|
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_x11" ]; then
|
|
|
|
configure_args+=" --enable-video-x11-xrandr --enable-video-x11-vm --enable-video-x11-xv"
|
|
|
|
makedepends+=" libXrandr-devel"
|
|
|
|
else
|
|
|
|
configure_args+=" --without-x"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_opengl" ]; then
|
|
|
|
configure_args+=" --enable-video-opengl"
|
|
|
|
makedepends+=" glu-devel"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-video-opengl"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_aalib" ]; then
|
|
|
|
configure_args+=" --enable-video-aalib"
|
|
|
|
makedepends+=" aalib-devel"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-video-aalib"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_pulseaudio" ]; then
|
|
|
|
configure_args+=" --enable-pulseaudio"
|
|
|
|
makedepends+=" pulseaudio-devel"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-pulseaudio"
|
|
|
|
fi
|
|
|
|
|
2014-01-01 16:10:11 +01:00
|
|
|
if [ "$build_option_opengl" ]; then
|
|
|
|
# libGL.so.1 is dynamically loaded with dlopen.
|
|
|
|
depends="libGL"
|
|
|
|
fi
|
|
|
|
|
2013-04-12 09:01:46 +02:00
|
|
|
SDL-devel_package() {
|
2014-02-17 09:57:19 +01:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 09:01:46 +02:00
|
|
|
depends="alsa-lib-devel SDL>=${version}"
|
|
|
|
if [ "$build_option_x11" ]; then
|
|
|
|
depends+=" libXrandr-devel"
|
|
|
|
fi
|
|
|
|
if [ "$build_option_opengl" ]; then
|
|
|
|
depends+=" glu-devel"
|
|
|
|
fi
|
|
|
|
if [ "$build_option_pulseaudio" ]; then
|
|
|
|
depends+=" pulseaudio-devel"
|
|
|
|
fi
|
|
|
|
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove "usr/lib/*.a"
|
2014-02-17 09:57:19 +01:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-12 09:01:46 +02:00
|
|
|
vmove usr/share
|
|
|
|
}
|
|
|
|
}
|