diff options
author | oliver <oliver@FreeBSD.org> | 2006-04-23 10:08:08 +0000 |
---|---|---|
committer | oliver <oliver@FreeBSD.org> | 2006-04-23 10:08:08 +0000 |
commit | 529486f81e8ecc751c4d074dc6095220075fbc30 (patch) | |
tree | 8a37ccd2a0b470a21f3f50876ea655d91b9ea9c7 /audio/freealut | |
parent | 05e388081a24bbb868bd21c924c92ebcee3ad4ee (diff) | |
download | FreeBSD-ports-529486f81e8ecc751c4d074dc6095220075fbc30.zip FreeBSD-ports-529486f81e8ecc751c4d074dc6095220075fbc30.tar.gz |
Add freealut 1.0.1, the OpenAL Utility Toolkit.
PR: ports/95193
Submitted by: Oliver Lehmann <oliver@FreeBSD.org>
Diffstat (limited to 'audio/freealut')
-rw-r--r-- | audio/freealut/Makefile | 31 | ||||
-rw-r--r-- | audio/freealut/distinfo | 3 | ||||
-rw-r--r-- | audio/freealut/files/patch-src_alutInit.c | 15 | ||||
-rw-r--r-- | audio/freealut/files/patch-src_alutInternal.h | 27 | ||||
-rw-r--r-- | audio/freealut/files/patch-src_alutUtil.c | 10 | ||||
-rw-r--r-- | audio/freealut/pkg-descr | 3 | ||||
-rw-r--r-- | audio/freealut/pkg-plist | 9 |
7 files changed, 98 insertions, 0 deletions
diff --git a/audio/freealut/Makefile b/audio/freealut/Makefile new file mode 100644 index 0000000..e609565 --- /dev/null +++ b/audio/freealut/Makefile @@ -0,0 +1,31 @@ +# New ports collection makefile for: freealut +# Date created: 08 March 2006 +# Whom: Oliver Lehmann <oliver@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= freealut +PORTVERSION= 1.0.1 +CATEGORIES= audio +MASTER_SITES= http://www.openal.org/openal_webstf/downloads/ + +MAINTAINER= oliver@FreeBSD.org +COMMENT= The OpenAL Utility Toolkit + +LIB_DEPENDS= openal.0:${PORTSDIR}/audio/openal + +GNU_CONFIGURE= yes +CONFIGURE_ENV= CFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib" +USE_GMAKE= yes +USE_GNOME= pkgconfig gnomehack +INSTALLS_SHLIB= yes + +.include <bsd.port.pre.mk> + +post-patch: + @${REINPLACE_CMD} -e 's/@CFLAGS@/& -lopenal ${PTHREAD_LIBS}/g' \ + ${WRKSRC}/examples/Makefile.in \ + ${WRKSRC}/test_suite/Makefile.in + +.include <bsd.port.post.mk> diff --git a/audio/freealut/distinfo b/audio/freealut/distinfo new file mode 100644 index 0000000..a062ea8 --- /dev/null +++ b/audio/freealut/distinfo @@ -0,0 +1,3 @@ +MD5 (freealut-1.0.1.tar.gz) = 2df161090428a77660999dd3d12ab65f +SHA256 (freealut-1.0.1.tar.gz) = 24a76885c2a4239bb3075e29a1f96b180d4e8ff7dd20c20301345c11c1cb9117 +SIZE (freealut-1.0.1.tar.gz) = 455507 diff --git a/audio/freealut/files/patch-src_alutInit.c b/audio/freealut/files/patch-src_alutInit.c new file mode 100644 index 0000000..f19ac89 --- /dev/null +++ b/audio/freealut/files/patch-src_alutInit.c @@ -0,0 +1,15 @@ +--- src/alutInit.c.orig Wed Mar 8 16:40:26 2006 ++++ src/alutInit.c Wed Mar 8 16:41:23 2006 +@@ -147,11 +147,7 @@ + return AL_FALSE; + } + +- if (!alcCloseDevice (device)) +- { +- _alutSetError (ALUT_ERROR_CLOSE_DEVICE); +- return AL_FALSE; +- } ++ alcCloseDevice (device); + + initialisationState = Unintialized; + return AL_TRUE; diff --git a/audio/freealut/files/patch-src_alutInternal.h b/audio/freealut/files/patch-src_alutInternal.h new file mode 100644 index 0000000..1797053 --- /dev/null +++ b/audio/freealut/files/patch-src_alutInternal.h @@ -0,0 +1,27 @@ +--- src/alutInternal.h.orig Fri Mar 31 06:15:08 2006 ++++ src/alutInternal.h Fri Mar 31 06:15:46 2006 +@@ -13,23 +13,8 @@ + + #if HAVE_STDINT_H + #include <stdint.h> +-#elif _MSC_VER < 1300 +-typedef char int8_t; +-typedef unsigned char uint8_t; +-typedef short int16_t; +-typedef unsigned short uint16_t; +-typedef int int32_t; +-typedef unsigned int uint32_t; +-#elif HAVE_BASETSD_H +-#include <basetsd.h> +-typedef INT8 int8_t; +-typedef UINT8 uint8_t; +-typedef INT16 int16_t; +-typedef UINT16 uint16_t; +-typedef INT32 int32_t; +-typedef UINT32 uint32_t; + #else +-#error Do not know sized types on this platform ++#include <inttypes.h> + #endif + + typedef uint16_t UInt16LittleEndian; diff --git a/audio/freealut/files/patch-src_alutUtil.c b/audio/freealut/files/patch-src_alutUtil.c new file mode 100644 index 0000000..d0977b4 --- /dev/null +++ b/audio/freealut/files/patch-src_alutUtil.c @@ -0,0 +1,10 @@ +--- src/alutUtil.c.orig Fri Mar 31 14:48:10 2006 ++++ src/alutUtil.c Fri Mar 31 14:48:22 2006 +@@ -2,6 +2,7 @@ + + #if HAVE_NANOSLEEP && HAVE_TIME_H + #include <time.h> ++#include <sys/time.h> + #include <errno.h> + #elif HAVE_USLEEP && HAVE_UNISTD_H + #include <unistd.h> diff --git a/audio/freealut/pkg-descr b/audio/freealut/pkg-descr new file mode 100644 index 0000000..d82a843 --- /dev/null +++ b/audio/freealut/pkg-descr @@ -0,0 +1,3 @@ +freealut is a free implementation of OpenAL's ALUT standard. + +WWW: http://www.openal.org/ diff --git a/audio/freealut/pkg-plist b/audio/freealut/pkg-plist new file mode 100644 index 0000000..17f071e --- /dev/null +++ b/audio/freealut/pkg-plist @@ -0,0 +1,9 @@ +bin/freealut-config +include/AL/alut.h +libdata/pkgconfig/freealut.pc +lib/libalut.a +lib/libalut.la +lib/libalut.so +lib/libalut.so.0 +@dirrmtry include/AL + |