diff --git a/audio/Makefile b/audio/Makefile index 8508da453e84..2dab906e9da9 100644 --- a/audio/Makefile +++ b/audio/Makefile @@ -147,6 +147,7 @@ SUBDIR += flite SUBDIR += fluidsynth SUBDIR += fmio + SUBDIR += freealut SUBDIR += freebirth SUBDIR += funktrackergold SUBDIR += gai-album diff --git a/audio/freealut/Makefile b/audio/freealut/Makefile new file mode 100644 index 000000000000..e609565c84db --- /dev/null +++ b/audio/freealut/Makefile @@ -0,0 +1,31 @@ +# New ports collection makefile for: freealut +# Date created: 08 March 2006 +# Whom: Oliver Lehmann +# +# $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 + +post-patch: + @${REINPLACE_CMD} -e 's/@CFLAGS@/& -lopenal ${PTHREAD_LIBS}/g' \ + ${WRKSRC}/examples/Makefile.in \ + ${WRKSRC}/test_suite/Makefile.in + +.include diff --git a/audio/freealut/distinfo b/audio/freealut/distinfo new file mode 100644 index 000000000000..a062ea8f76f3 --- /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 000000000000..f19ac896b7f9 --- /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 000000000000..179705398090 --- /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 +-#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 +-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 + #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 000000000000..d0977b4dabe0 --- /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 ++#include + #include + #elif HAVE_USLEEP && HAVE_UNISTD_H + #include diff --git a/audio/freealut/pkg-descr b/audio/freealut/pkg-descr new file mode 100644 index 000000000000..d82a843d8f81 --- /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 000000000000..17f071ea9488 --- /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 +