Import audiality2-1.9.2.

Audiality 2 is a realtime audio and music engine, primarily intended for
video games. While it supports traditional sample playback as well as
additive, subtractive and granular synthesis, the distinctive feature is
subsample accurate realtime scripting.

ok bcallah@
This commit is contained in:
bentley 2017-08-06 21:55:01 +00:00
parent 3f7983fa9d
commit 3f6bc04c41
7 changed files with 197 additions and 0 deletions

33
audio/audiality2/Makefile Normal file
View File

@ -0,0 +1,33 @@
# $OpenBSD: Makefile,v 1.1.1.1 2017/08/06 21:55:01 bentley Exp $
COMMENT = realtime audio and music engine for games
V = 1.9.2
DISTNAME = audiality2-$V
GH_ACCOUNT = olofson
GH_PROJECT = audiality2
GH_TAGNAME = v$V
SHARED_LIBS += audiality2 0.0
CATEGORIES = audio
HOMEPAGE = http://audiality.org/
MAINTAINER = Anthony J. Bentley <anthony@anjbe.name>
# zlib
PERMIT_PACKAGE_CDROM = Yes
PERMIT_DISTFILES_FTP = test/data/*.a2s are all rights reserved
WANTLIB += c SDL2 m
MODULES = devel/cmake
LIB_DEPENDS = devel/sdl2
CONFIGURE_ARGS = -DUSE_JACK=OFF
NO_TEST = Yes
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (audiality2-1.9.2.tar.gz) = FrQkjW0yBb0Z+WpasBLJuN2dxWPUbVdpqHEJv3FYPWk=
SIZE (audiality2-1.9.2.tar.gz) = 272415

View File

@ -0,0 +1,36 @@
$OpenBSD: patch-a2play_CMakeLists_txt,v 1.1.1.1 2017/08/06 21:55:01 bentley Exp $
Index: a2play/CMakeLists.txt
--- a2play/CMakeLists.txt.orig
+++ a2play/CMakeLists.txt
@@ -6,6 +6,8 @@
include_directories(${AUDIALITY2_BINARY_DIR}/include)
include_directories(${AUDIALITY2_SOURCE_DIR}/include)
link_directories(${AUDIALITY2_BINARY_DIR})
+pkg_search_module(SDL2 sdl2)
+link_directories(${SDL2_LIBDIR})
set(AUDIALITY2_LIBRARY audiality2)
@@ -16,9 +18,6 @@ if(FORCE_32BIT)
COMPILE_FLAGS "-m32" LINK_FLAGS "-m32")
endif(FORCE_32BIT)
-# Release build: full optimization, no debug features, no debug info
-set(CMAKE_C_FLAGS_RELEASE "-O3 -DNDEBUG")
-
set(f "-Wall -Wwrite-strings -Wcast-align")
set(f "${f} -Wbad-function-cast -Waggregate-return")
set(f "${f} -Wstrict-prototypes -fno-builtin -Wshadow")
@@ -27,11 +26,5 @@ set(f "${f} -Wmissing-declarations -Wdisabled-optimiza
if(CMAKE_C_COMPILER_ID MATCHES "Clang")
set(f "${f} -Wincompatible-pointer-types")
endif()
-
-# Debug build: No optimizations, extra debug features, don't fail on warnings
-set(CMAKE_C_FLAGS_DEBUG "${f} -O0 -g -DDEBUG")
-
-# Maintainer build: Few optimizations, lots of warnings, fail on warnings
-set(CMAKE_C_FLAGS_MAINTAINER "${f} -O1 -g -Werror")
install(TARGETS a2play DESTINATION bin)

View File

@ -0,0 +1,35 @@
$OpenBSD: patch-src_CMakeLists_txt,v 1.1.1.1 2017/08/06 21:55:01 bentley Exp $
Index: src/CMakeLists.txt
--- src/CMakeLists.txt.orig
+++ src/CMakeLists.txt
@@ -65,6 +65,7 @@ if(SDL_FOUND)
elseif(SDL2_FOUND)
add_definitions(-DA2_HAVE_SDL)
include_directories(${SDL2_INCLUDE_DIRS})
+ link_directories(${SDL2_LIBDIR})
endif(SDL_FOUND)
if(USE_JACK)
@@ -113,9 +114,6 @@ endif(WIN32)
set_target_properties(audiality2 PROPERTIES VERSION ${VERSION_STRING}
SOVERSION ${VERSION_STRING})
-# Release build: full optimization, no debug features, no debug info
-set(CMAKE_C_FLAGS_RELEASE "-O3 -DNDEBUG")
-
set(f "-Wall -Wwrite-strings -Wcast-align")
set(f "${f} -Wbad-function-cast -Waggregate-return")
set(f "${f} -Wstrict-prototypes -fno-builtin -Wshadow")
@@ -124,11 +122,5 @@ set(f "${f} -Wmissing-declarations -Wdisabled-optimiza
if(CMAKE_C_COMPILER_ID MATCHES "Clang")
set(f "${f} -Wincompatible-pointer-types")
endif()
-
-# Debug build: No optimizations, extra debug features, don't fail on warnings
-set(CMAKE_C_FLAGS_DEBUG "${f} -O0 -g -DDEBUG")
-
-# Maintainer build: Few optimizations, lots of warnings, fail on warnings
-set(CMAKE_C_FLAGS_MAINTAINER "${f} -O1 -g -Werror")
install(TARGETS audiality2 DESTINATION lib)

View File

@ -0,0 +1,59 @@
$OpenBSD: patch-test_CMakeLists_txt,v 1.1.1.1 2017/08/06 21:55:01 bentley Exp $
Index: test/CMakeLists.txt
--- test/CMakeLists.txt.orig
+++ test/CMakeLists.txt
@@ -18,18 +18,6 @@ function(a2_add_test testname)
endif(FORCE_32BIT)
endfunction(a2_add_test)
-a2_add_test(waveupload)
-a2_add_test(rtsubstate)
-a2_add_test(renderwave)
-a2_add_test(renderwave2)
-a2_add_test(streamupload)
-a2_add_test(wavestress)
-a2_add_test(wavestress2)
-a2_add_test(voicestress)
-a2_add_test(streamtest)
-a2_add_test(streamstress)
-a2_add_test(timingtest)
-
if(SDL_FOUND)
include_directories(${SDL_INCLUDE_DIR})
a2_add_test(a2test gui.c)
@@ -38,12 +26,22 @@ if(SDL_FOUND)
target_link_libraries(apistress SDLmain)
elseif(SDL2_FOUND)
include_directories(${SDL2_INCLUDE_DIRS})
+ link_directories(${SDL2_LIBDIR})
a2_add_test(a2test gui.c)
a2_add_test(apistress)
endif(SDL_FOUND)
-# Release build: full optimization, no debug features, no debug info
-set(CMAKE_C_FLAGS_RELEASE "-O3 -DNDEBUG")
+a2_add_test(waveupload)
+a2_add_test(rtsubstate)
+a2_add_test(renderwave)
+a2_add_test(renderwave2)
+a2_add_test(streamupload)
+a2_add_test(wavestress)
+a2_add_test(wavestress2)
+a2_add_test(voicestress)
+a2_add_test(streamtest)
+a2_add_test(streamstress)
+a2_add_test(timingtest)
set(f "-Wall -Wwrite-strings -Wcast-align")
set(f "${f} -Wbad-function-cast -Waggregate-return")
@@ -53,9 +51,3 @@ set(f "${f} -Wmissing-declarations -Wdisabled-optimiza
if(CMAKE_C_COMPILER_ID MATCHES "Clang")
set(f "${f} -Wincompatible-pointer-types")
endif()
-
-# Debug build: No optimizations, extra debug features, don't fail on warnings
-set(CMAKE_C_FLAGS_DEBUG "${f} -O0 -g -DDEBUG")
-
-# Maintainer build: Few optimizations, lots of warnings, fail on warnings
-set(CMAKE_C_FLAGS_MAINTAINER "${f} -O1 -g -Werror")

View File

@ -0,0 +1,16 @@
Audiality 2 is a realtime audio and music engine, primarily intended for
video games. While it supports traditional sample playback as well as
additive, subtractive and granular synthesis, the distinctive feature is
subsample accurate realtime scripting.
Audiality 2 generates sound and music using a tree graph of voices, driven
by user defined programs running on a virtual machine. Voices are modular,
allowing custom combinations of oscillators, filters and other units.
Each voice is controlled by a program (user defined script code) that can be
given initial arguments, and receive messages for realtime control. A
program can (recursively) spawn other programs on subvoices, and control
these by sending messages.
Timing is subsample accurate, and durations can be specified in
milliseconds, or in terms of user defined musical ticks.

View File

@ -0,0 +1,16 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2017/08/06 21:55:01 bentley Exp $
@bin bin/a2play
include/Audiality2/
include/Audiality2/a2_drivers.h
include/Audiality2/a2_dsp.h
include/Audiality2/a2_interface.h
include/Audiality2/a2_pitch.h
include/Audiality2/a2_properties.h
include/Audiality2/a2_stream.h
include/Audiality2/a2_types.h
include/Audiality2/a2_units.h
include/Audiality2/a2_vm.h
include/Audiality2/a2_waves.h
include/Audiality2/audiality2.h
@lib lib/libaudiality2.so.${LIBaudiality2_VERSION}
lib/pkgconfig/audiality2.pc