pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/audio add audio/aften
details: https://anonhg.NetBSD.org/pkgsrc/rev/5906ff70e425
branches: trunk
changeset: 458219:5906ff70e425
user: nia <nia%pkgsrc.org@localhost>
date: Sat Sep 11 23:44:48 2021 +0000
description:
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:
audio/Makefile | 3 +-
audio/aften/DESCR | 3 ++
audio/aften/Makefile | 24 +++++++++++++++++
audio/aften/PLIST | 14 ++++++++++
audio/aften/buildlink3.mk | 12 ++++++++
audio/aften/distinfo | 8 +++++
audio/aften/patches/patch-CMakeLists.txt | 36 ++++++++++++++++++++++++++
audio/aften/patches/patch-libaften_cpu__caps.h | 16 +++++++++++
8 files changed, 115 insertions(+), 1 deletions(-)
diffs (158 lines):
diff -r 45d8d3532e38 -r 5906ff70e425 audio/Makefile
--- a/audio/Makefile Sat Sep 11 23:41:44 2021 +0000
+++ b/audio/Makefile Sat Sep 11 23:44:48 2021 +0000
@@ -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+= adplay
SUBDIR+= adplug
SUBDIR+= aeneas
+SUBDIR+= aften
SUBDIR+= aiomixer
SUBDIR+= alac
SUBDIR+= alacconvert
diff -r 45d8d3532e38 -r 5906ff70e425 audio/aften/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/aften/DESCR Sat Sep 11 23:44:48 2021 +0000
@@ -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 -r 45d8d3532e38 -r 5906ff70e425 audio/aften/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/aften/Makefile Sat Sep 11 23:44:48 2021 +0000
@@ -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@localhost
+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 -r 45d8d3532e38 -r 5906ff70e425 audio/aften/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/aften/PLIST Sat Sep 11 23:44:48 2021 +0000
@@ -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 -r 45d8d3532e38 -r 5906ff70e425 audio/aften/buildlink3.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/aften/buildlink3.mk Sat Sep 11 23:44:48 2021 +0000
@@ -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 -r 45d8d3532e38 -r 5906ff70e425 audio/aften/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/aften/distinfo Sat Sep 11 23:44:48 2021 +0000
@@ -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 -r 45d8d3532e38 -r 5906ff70e425 audio/aften/patches/patch-CMakeLists.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/aften/patches/patch-CMakeLists.txt Sat Sep 11 23:44:48 2021 +0000
@@ -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 -r 45d8d3532e38 -r 5906ff70e425 audio/aften/patches/patch-libaften_cpu__caps.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/aften/patches/patch-libaften_cpu__caps.h Sat Sep 11 23:44:48 2021 +0000
@@ -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 */
Home |
Main Index |
Thread Index |
Old Index