diff --git a/audio/freealut/Makefile b/audio/freealut/Makefile new file mode 100644 index 00000000000..3900500625a --- /dev/null +++ b/audio/freealut/Makefile @@ -0,0 +1,37 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2006/10/30 23:37:24 steven Exp $ + +COMMENT= "OpenAL Utility Toolkit" + +DISTNAME= freealut-1.1.0 +SHARED_LIBS += alut 1.0 # .1.0 +CATEGORIES= audio + +HOMEPAGE= http://www.openal.org/ + +# LGPL +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +WANTLIB= m ossaudio pthread + +MASTER_SITES= http://www.openal.org/openal_webstf/downloads/ + +LIB_DEPENDS= openal.>=1.0::audio/openal + +USE_LIBTOOL= Yes +CONFIGURE_STYLE=gnu +CONFIGURE_ARGS= --enable-dependency-tracking +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/" \ + LDFLAGS="-lossaudio -L${LOCALBASE}/lib" + +TESTS= errorstuff fileloader memoryloader retrostuff version waveforms + +do-regress: +.for t in ${TESTS} + @echo test_${t} + @cd ${WRKBUILD}/test_suite && ./test_${t} +.endfor + +.include diff --git a/audio/freealut/distinfo b/audio/freealut/distinfo new file mode 100644 index 00000000000..cf4aaa76a5b --- /dev/null +++ b/audio/freealut/distinfo @@ -0,0 +1,4 @@ +MD5 (freealut-1.1.0.tar.gz) = e089b28a0267faabdb6c079ee173664a +RMD160 (freealut-1.1.0.tar.gz) = 6cbf31bd2e51240721a5ee919e576e7348d954ab +SHA1 (freealut-1.1.0.tar.gz) = b2c04d2b5e0896b3164c01deda39f58933c8055f +SIZE (freealut-1.1.0.tar.gz) = 461830 diff --git a/audio/freealut/patches/patch-src_alutInputStream_c b/audio/freealut/patches/patch-src_alutInputStream_c new file mode 100644 index 00000000000..65793619697 --- /dev/null +++ b/audio/freealut/patches/patch-src_alutInputStream_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-src_alutInputStream_c,v 1.1.1.1 2006/10/30 23:37:24 steven Exp $ +--- src/alutInputStream.c.orig Mon Oct 16 15:18:11 2006 ++++ src/alutInputStream.c Mon Oct 16 15:18:20 2006 +@@ -4,7 +4,7 @@ + #include + #include + +-#if HAVE_STAT ++#if HAVE_STAT || HAVE_SYS_STAT_H + #if HAVE_UNISTD_H + #include + #endif diff --git a/audio/freealut/pkg/DESCR b/audio/freealut/pkg/DESCR new file mode 100644 index 00000000000..cf98f21ae0b --- /dev/null +++ b/audio/freealut/pkg/DESCR @@ -0,0 +1 @@ +freealut is a free implementation of the OpenAL Utility Toolkit (ALUT). diff --git a/audio/freealut/pkg/PFRAG.shared b/audio/freealut/pkg/PFRAG.shared new file mode 100644 index 00000000000..5c7770070c4 --- /dev/null +++ b/audio/freealut/pkg/PFRAG.shared @@ -0,0 +1,2 @@ +@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2006/10/30 23:37:24 steven Exp $ +@lib lib/libalut.so.${LIBalut_VERSION} diff --git a/audio/freealut/pkg/PLIST b/audio/freealut/pkg/PLIST new file mode 100644 index 00000000000..0341ddfc4b7 --- /dev/null +++ b/audio/freealut/pkg/PLIST @@ -0,0 +1,9 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2006/10/30 23:37:24 steven Exp $ +%%SHARED%% +bin/freealut-config +include/AL/ +include/AL/alut.h +lib/libalut.a +lib/libalut.la +lib/pkgconfig/ +lib/pkgconfig/freealut.pc