pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/audio



Module Name:    pkgsrc
Committed By:   nia
Date:           Sat Sep 11 23:44:49 UTC 2021

Modified Files:
        pkgsrc/audio: Makefile
Added Files:
        pkgsrc/audio/aften: DESCR Makefile PLIST buildlink3.mk distinfo
        pkgsrc/audio/aften/patches: patch-CMakeLists.txt
            patch-libaften_cpu__caps.h

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.639 -r1.640 pkgsrc/audio/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/audio/aften/DESCR pkgsrc/audio/aften/Makefile \
    pkgsrc/audio/aften/PLIST pkgsrc/audio/aften/buildlink3.mk \
    pkgsrc/audio/aften/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/audio/aften/patches/patch-CMakeLists.txt \
    pkgsrc/audio/aften/patches/patch-libaften_cpu__caps.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/audio/Makefile
diff -u pkgsrc/audio/Makefile:1.639 pkgsrc/audio/Makefile:1.640
--- pkgsrc/audio/Makefile:1.639 Sat Sep 11 10:29:15 2021
+++ pkgsrc/audio/Makefile       Sat Sep 11 23:44:48 2021
@@ -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

Added files:

Index: pkgsrc/audio/aften/DESCR
diff -u /dev/null pkgsrc/audio/aften/DESCR:1.1
--- /dev/null   Sat Sep 11 23:44:49 2021
+++ pkgsrc/audio/aften/DESCR    Sat Sep 11 23:44:48 2021
@@ -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.
Index: pkgsrc/audio/aften/Makefile
diff -u /dev/null pkgsrc/audio/aften/Makefile:1.1
--- /dev/null   Sat Sep 11 23:44:49 2021
+++ pkgsrc/audio/aften/Makefile Sat Sep 11 23:44:48 2021
@@ -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"
Index: pkgsrc/audio/aften/PLIST
diff -u /dev/null pkgsrc/audio/aften/PLIST:1.1
--- /dev/null   Sat Sep 11 23:44:49 2021
+++ pkgsrc/audio/aften/PLIST    Sat Sep 11 23:44:48 2021
@@ -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}
Index: pkgsrc/audio/aften/buildlink3.mk
diff -u /dev/null pkgsrc/audio/aften/buildlink3.mk:1.1
--- /dev/null   Sat Sep 11 23:44:49 2021
+++ pkgsrc/audio/aften/buildlink3.mk    Sat Sep 11 23:44:48 2021
@@ -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
Index: pkgsrc/audio/aften/distinfo
diff -u /dev/null pkgsrc/audio/aften/distinfo:1.1
--- /dev/null   Sat Sep 11 23:44:49 2021
+++ pkgsrc/audio/aften/distinfo Sat Sep 11 23:44:48 2021
@@ -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

Index: pkgsrc/audio/aften/patches/patch-CMakeLists.txt
diff -u /dev/null pkgsrc/audio/aften/patches/patch-CMakeLists.txt:1.1
--- /dev/null   Sat Sep 11 23:44:49 2021
+++ pkgsrc/audio/aften/patches/patch-CMakeLists.txt     Sat Sep 11 23:44:49 2021
@@ -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)
Index: pkgsrc/audio/aften/patches/patch-libaften_cpu__caps.h
diff -u /dev/null pkgsrc/audio/aften/patches/patch-libaften_cpu__caps.h:1.1
--- /dev/null   Sat Sep 11 23:44:49 2021
+++ pkgsrc/audio/aften/patches/patch-libaften_cpu__caps.h       Sat Sep 11 23:44:49 2021
@@ -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