diff options
author | nia <nia@pkgsrc.org> | 2021-09-11 23:44:48 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2021-09-11 23:44:48 +0000 |
commit | 37acc8dda0c39ee5fa180c3e067c8a6a1a5770dd (patch) | |
tree | 2f3345d36b358e8a62abf439bfca4bf15743daf6 /audio | |
parent | d693490abc7e635595def2e7c483131fe59da471 (diff) | |
download | pkgsrc-37acc8dda0c39ee5fa180c3e067c8a6a1a5770dd.tar.gz |
add audio/aften
Aften is an audio encoder which generates compressed audio streams based on
ATSC A/52 specification. This type of audio is also known as AC-3 or Dolby
Digital and is one of the audio codecs used in DVD-Video content.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/Makefile | 3 | ||||
-rw-r--r-- | audio/aften/DESCR | 3 | ||||
-rw-r--r-- | audio/aften/Makefile | 24 | ||||
-rw-r--r-- | audio/aften/PLIST | 14 | ||||
-rw-r--r-- | audio/aften/buildlink3.mk | 12 | ||||
-rw-r--r-- | audio/aften/distinfo | 8 | ||||
-rw-r--r-- | audio/aften/patches/patch-CMakeLists.txt | 36 | ||||
-rw-r--r-- | audio/aften/patches/patch-libaften_cpu__caps.h | 16 |
8 files changed, 115 insertions, 1 deletions
diff --git a/audio/Makefile b/audio/Makefile index 61d058896ad..f5c4b4dc3fe 100644 --- a/audio/Makefile +++ b/audio/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.639 2021/09/11 10:29:15 nia Exp $ +# $NetBSD: Makefile,v 1.640 2021/09/11 23:44:48 nia Exp $ # COMMENT= Audio tools, players, and libraries @@ -11,6 +11,7 @@ SUBDIR+= abcmidi SUBDIR+= adplay SUBDIR+= adplug SUBDIR+= aeneas +SUBDIR+= aften SUBDIR+= aiomixer SUBDIR+= alac SUBDIR+= alacconvert diff --git a/audio/aften/DESCR b/audio/aften/DESCR new file mode 100644 index 00000000000..fb19a532d52 --- /dev/null +++ b/audio/aften/DESCR @@ -0,0 +1,3 @@ +Aften is an audio encoder which generates compressed audio streams based on +ATSC A/52 specification. This type of audio is also known as AC-3 or Dolby +Digital and is one of the audio codecs used in DVD-Video content. diff --git a/audio/aften/Makefile b/audio/aften/Makefile new file mode 100644 index 00000000000..28174d146d2 --- /dev/null +++ b/audio/aften/Makefile @@ -0,0 +1,24 @@ +# $NetBSD: Makefile,v 1.1 2021/09/11 23:44:48 nia Exp $ + +DISTNAME= aften-0.0.8 +CATEGORIES= audio +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=aften/} +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://aften.sourceforge.net/ +COMMENT= ATSC A/52 / AC-3 / Dolby Digital audio encoder +LICENSE= gnu-lgpl-v2.1 + +USE_CMAKE= yes +USE_LANGUAGES= c c++ +CONFIGURE_DIRS= build +CMAKE_ARG_PATH= .. + +CMAKE_ARGS+= -DBINDINGS_CXX=ON +CMAKE_ARGS+= -DSHARED=ON + +pre-configure: + mkdir ${WRKSRC}/build + +.include "../../mk/bsd.pkg.mk" diff --git a/audio/aften/PLIST b/audio/aften/PLIST new file mode 100644 index 00000000000..7e47ab3b704 --- /dev/null +++ b/audio/aften/PLIST @@ -0,0 +1,14 @@ +@comment $NetBSD: PLIST,v 1.1 2021/09/11 23:44:48 nia Exp $ +bin/aften +bin/wavfilter +bin/wavinfo +bin/wavrms +include/aften/aften-types.h +include/aften/aften.h +include/aften/aftenxx.h +lib/libaften.so +lib/libaften.so.0 +lib/libaften.so.${PKGVERSION} +lib/libaftenxx.so +lib/libaftenxx.so.0 +lib/libaftenxx.so.${PKGVERSION} diff --git a/audio/aften/buildlink3.mk b/audio/aften/buildlink3.mk new file mode 100644 index 00000000000..b17e1dce761 --- /dev/null +++ b/audio/aften/buildlink3.mk @@ -0,0 +1,12 @@ +# $NetBSD: buildlink3.mk,v 1.1 2021/09/11 23:44:48 nia Exp $ + +BUILDLINK_TREE+= aften + +.if !defined(AFTEN_BUILDLINK3_MK) +AFTEN_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.aften+= aften>=0.0.8 +BUILDLINK_PKGSRCDIR.aften?= ../../audio/aften +.endif # AFTEN_BUILDLINK3_MK + +BUILDLINK_TREE+= -aften diff --git a/audio/aften/distinfo b/audio/aften/distinfo new file mode 100644 index 00000000000..4866654c1ac --- /dev/null +++ b/audio/aften/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1 2021/09/11 23:44:48 nia Exp $ + +SHA1 (aften-0.0.8.tar.bz2) = 1ff73cdcade0624495ad807492cecf14862fb61c +RMD160 (aften-0.0.8.tar.bz2) = 540d4efb6428d14c46dd181cb89b5261fa98b1ac +SHA512 (aften-0.0.8.tar.bz2) = 1261297eac5065c6f028618d3e15e9b152ac35440c74cfb09d98cd99a90fb1c6a49585f70928834c3f6ddbcdd1d8721f7329d24f57cd30901dff09bbc0d419e3 +Size (aften-0.0.8.tar.bz2) = 80865 bytes +SHA1 (patch-CMakeLists.txt) = a99d769b6145192ec04548c20a3f89dc3294ffdf +SHA1 (patch-libaften_cpu__caps.h) = 543a436e180796f62dab20b5e8c4fd139f7034e2 diff --git a/audio/aften/patches/patch-CMakeLists.txt b/audio/aften/patches/patch-CMakeLists.txt new file mode 100644 index 00000000000..042047bfc75 --- /dev/null +++ b/audio/aften/patches/patch-CMakeLists.txt @@ -0,0 +1,36 @@ +$NetBSD: patch-CMakeLists.txt,v 1.1 2021/09/11 23:44:49 nia Exp $ + +- Expand the default CMAKE_MODULE_PATH so pkgsrc can append to it +without breaking things. +- Recognize amd64 as x86. + +--- CMakeLists.txt.orig 2007-09-08 01:51:47.000000000 +0000 ++++ CMakeLists.txt +@@ -17,12 +17,12 @@ ENDIF(${Aften_SOURCE_DIR} MATCHES ${Afte + + INCLUDE(${CMAKE_ROOT}/Modules/TestBigEndian.cmake) + INCLUDE(${CMAKE_ROOT}/Modules/CheckCSourceCompiles.cmake) +-INCLUDE(${CMAKE_MODULE_PATH}/ConfigHelper.cmake) +-INCLUDE(${CMAKE_MODULE_PATH}/HeaderTests.cmake) +-INCLUDE(${CMAKE_MODULE_PATH}/FlagsTests.cmake) +-INCLUDE(${CMAKE_MODULE_PATH}/CompilerVisibility.cmake) +-INCLUDE(${CMAKE_MODULE_PATH}/CompilerSIMD.cmake) +-INCLUDE(${CMAKE_MODULE_PATH}/DetectCompiler.cmake) ++INCLUDE(${CMAKE_SOURCE_DIR}/CMakeModules/ConfigHelper.cmake) ++INCLUDE(${CMAKE_SOURCE_DIR}/CMakeModules/HeaderTests.cmake) ++INCLUDE(${CMAKE_SOURCE_DIR}/CMakeModules/FlagsTests.cmake) ++INCLUDE(${CMAKE_SOURCE_DIR}/CMakeModules/CompilerVisibility.cmake) ++INCLUDE(${CMAKE_SOURCE_DIR}/CMakeModules/CompilerSIMD.cmake) ++INCLUDE(${CMAKE_SOURCE_DIR}/CMakeModules/DetectCompiler.cmake) + + OPTION(SHARED "build shared Aften library" OFF) + OPTION(DOUBLE "build Aften with doubles instead of floats" OFF) +@@ -179,7 +179,7 @@ IF(SVN_VERSION) + ENDIF(SVN_VERSION) + + # do SIMD stuff +-IF(CMAKE_SYSTEM_MACHINE MATCHES "i.86" OR CMAKE_SYSTEM_MACHINE MATCHES "x86_64") ++IF(CMAKE_SYSTEM_MACHINE MATCHES "i.86" OR CMAKE_SYSTEM_MACHINE MATCHES "x86_64" OR CMAKE_SYSTEM_MACHINE MATCHES "amd64") + CHECK_MMX() + + IF(HAVE_MMX) diff --git a/audio/aften/patches/patch-libaften_cpu__caps.h b/audio/aften/patches/patch-libaften_cpu__caps.h new file mode 100644 index 00000000000..20950fef84b --- /dev/null +++ b/audio/aften/patches/patch-libaften_cpu__caps.h @@ -0,0 +1,16 @@ +$NetBSD: patch-libaften_cpu__caps.h,v 1.1 2021/09/11 23:44:49 nia Exp $ + +[PATCH] add fallback function for apply_simd_restrictions() on non-x86/ppc + +git-svn-id: https://aften.svn.sourceforge.net/svnroot/aften@766 ef0d8562-5c19-0410-972e-841db63a069c + +--- libaften/cpu_caps.h.orig 2007-08-11 16:13:25.000000000 +0000 ++++ libaften/cpu_caps.h +@@ -26,6 +26,7 @@ + #include "ppc_cpu_caps.h" + #else + static inline void cpu_caps_detect(void){} ++static inline void apply_simd_restrictions(AftenSimdInstructions *simd_instructions){} + #endif + + #endif /* CPU_CAPS_H */ |