aboutsummaryrefslogtreecommitdiff
path: root/audio/freealut
diff options
context:
space:
mode:
authorOliver Lehmann <oliver@FreeBSD.org>2006-04-23 10:08:08 +0000
committerOliver Lehmann <oliver@FreeBSD.org>2006-04-23 10:08:08 +0000
commit70c81dfdc87f1a26a6eb29096b21a68cfbf5f3bc (patch)
tree57a75c0710e16c87848f33bba069085f740ce65e /audio/freealut
parent77dac30344b65ee74e7665712e3982b8266509c6 (diff)
downloadports-70c81dfdc87f1a26a6eb29096b21a68cfbf5f3bc.tar.gz
ports-70c81dfdc87f1a26a6eb29096b21a68cfbf5f3bc.zip
Notes
Diffstat (limited to 'audio/freealut')
-rw-r--r--audio/freealut/Makefile31
-rw-r--r--audio/freealut/distinfo3
-rw-r--r--audio/freealut/files/patch-src_alutInit.c15
-rw-r--r--audio/freealut/files/patch-src_alutInternal.h27
-rw-r--r--audio/freealut/files/patch-src_alutUtil.c10
-rw-r--r--audio/freealut/pkg-descr3
-rw-r--r--audio/freealut/pkg-plist9
7 files changed, 98 insertions, 0 deletions
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 <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 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 <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 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 <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 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
+