From 195a87d94e17a33cb2a63ce2c8db7ee5f0551531 Mon Sep 17 00:00:00 2001 From: davehome Date: Wed, 26 Oct 2011 22:26:07 +0000 Subject: [PATCH] New package: OpenAL (3D Audio library) --- srcpkgs/libopenal-devel | 1 + srcpkgs/libopenal/libopenal-devel.template | 15 ++++++++++ srcpkgs/libopenal/template | 34 ++++++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 120000 srcpkgs/libopenal-devel create mode 100644 srcpkgs/libopenal/libopenal-devel.template create mode 100644 srcpkgs/libopenal/template diff --git a/srcpkgs/libopenal-devel b/srcpkgs/libopenal-devel new file mode 120000 index 0000000000..737d5678f5 --- /dev/null +++ b/srcpkgs/libopenal-devel @@ -0,0 +1 @@ +libopenal \ No newline at end of file diff --git a/srcpkgs/libopenal/libopenal-devel.template b/srcpkgs/libopenal/libopenal-devel.template new file mode 100644 index 0000000000..0701487bf2 --- /dev/null +++ b/srcpkgs/libopenal/libopenal-devel.template @@ -0,0 +1,15 @@ +# Template file for 'libopenal-devel'. +# +short_desc="${short_desc} - Development files" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run glibc-devel +Add_dependency run libopenal + +do_install() +{ + vmove usr/include usr + vmove usr/lib/pkgconfig usr/lib +} diff --git a/srcpkgs/libopenal/template b/srcpkgs/libopenal/template new file mode 100644 index 0000000000..2ab92c198d --- /dev/null +++ b/srcpkgs/libopenal/template @@ -0,0 +1,34 @@ +# Template file for 'libopenal' +pkgname=libopenal +version=1.13 +build_style=cmake +homepage="http://connect.creativelabs.com/openal/default.aspx" +distfiles="http://kcat.strangesoft.net/openal-releases/openal-soft-$version.tar.bz2" +short_desc="A cross-platform 3D audio library" +maintainer="davehome " +license="LGPL-2.1" +checksum=dc735b8b2ab21f6ec54b4262f150a7e0527ae42aa975a1965b9342df1520443c +long_desc=" + OpenAL is a cross-platform 3D audio API appropriate for use with gaming + applications and many other types of audio applications. + + The library models a collection of audio sources moving in a 3D space that + are heard by a single listener somewhere in that space. The basic OpenAL + objects are a Listener, a Source, and a Buffer. There can be a large number + of Buffers, which contain audio data. Each buffer can be attached to one or + more Sources, which represent points in 3D space which are emitting audio. + There is always one Listener object (per audio context), which represents + the position where the sources are heard -- rendering is done from the + perspective of the Listener." + +subpackages="$pkgname-devel" + +wrksrc=openal-soft-$version + +Add_dependency run glibc + +Add_dependency build pkg-config +Add_dependency build cmake +Add_dependency build alsa-lib-devel +Add_dependency build pulseaudio-devel +Add_dependency build SDL-devel