import audio/libsmackerdec

libsmackerdec is a library for decoding smacker encoded audio files

feedback from bcallah@, sthen@ and thfr@, ok sthen@
master
lraab 2023-09-02 11:57:23 +00:00
parent 8c22ef61fc
commit 86d25fbd3e
5 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,24 @@
COMMENT = decoder for smacker audio files
V = 0.0.20220625
DISTNAME = ${GH_PROJECT}-${V}
CATEGORIES = audio
SHARED_LIBS += smackerdec 0.0 # 0.0
GH_ACCOUNT = diasurgical
GH_PROJECT = libsmackerdec
GH_COMMIT = 91e732bb6953489077430572f43fc802bf2c75b2
# LGPLv2.1+
PERMIT_PACKAGE = Yes
WANTLIB += ${COMPILER_LIBCXX} m SDL2
MODULES = devel/cmake
LIB_DEPENDS = devel/sdl2
post-patch:
cp ${FILESDIR}/CMakeLists.txt ${WRKSRC}/
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (libsmackerdec-0.0.20220625-91e732bb.tar.gz) = 5WXjfvGuT4hG2cnCS4YbxW/c4tek7OR95EjgCqkEi4c=
SIZE (libsmackerdec-0.0.20220625-91e732bb.tar.gz) = 18576

View File

@ -0,0 +1,28 @@
cmake_minimum_required(VERSION 3.27)
project(smackerdec)
find_package(SDL2 REQUIRED)
option(BUILD_SHARED_LIBS "Build using shared libraries" ON)
add_library(smackerdec
src/BitReader.cpp
src/FileStream.cpp
src/LogError.cpp
src/SmackerDecoder.cpp)
target_include_directories(smackerdec PUBLIC include)
target_link_libraries(smackerdec PUBLIC SDL2::SDL2)
set(installable_libs smackerdec)
if(TARGET smackerdec)
list(APPEND installable_libs smackerdec)
endif()
install(TARGETS ${installable_libs} DESTINATION lib)
install(FILES
include/BitReader.h
include/FileStream.h
include/LogError.h
include/SmackerDecoder.h
DESTINATION include)

View File

@ -0,0 +1 @@
libsmackerdec is a library for decoding smacker encoded audio files.

View File

@ -0,0 +1,5 @@
include/BitReader.h
include/FileStream.h
include/LogError.h
include/SmackerDecoder.h
@lib lib/libsmackerdec.so.${LIBsmackerdec_VERSION}