diff options
author | nia <nia@pkgsrc.org> | 2021-08-06 13:50:24 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2021-08-06 13:50:24 +0000 |
commit | 08cab9244f969ee7636a6c32cb6866e0b726e187 (patch) | |
tree | 66a46fbbee60667ace276926a8ab85d3ac010043 | |
parent | f5b17797d68e33a397728288490871e27c31b09a (diff) | |
download | pkgsrc-08cab9244f969ee7636a6c32cb6866e0b726e187.tar.gz |
add audio/libaudec
libaudec (lib audio decoder) is a wrapper library over minimp3, sndfile and
libsamplerate for reading and resampling audio files, based on Robin Gareus'
audio_decoder code.
libaudec supports all formats supported by sndfile, in addition to MP3.
This library is meant to be linked in statically to larger projects.
Until version 1.0 is released, the API is subject to change.
libaudec is released under the GNU Affero GPLv3+.
-rw-r--r-- | audio/Makefile | 3 | ||||
-rw-r--r-- | audio/libaudec/DESCR | 11 | ||||
-rw-r--r-- | audio/libaudec/Makefile | 28 | ||||
-rw-r--r-- | audio/libaudec/PLIST | 6 | ||||
-rw-r--r-- | audio/libaudec/buildlink3.mk | 15 | ||||
-rw-r--r-- | audio/libaudec/distinfo | 6 |
6 files changed, 68 insertions, 1 deletions
diff --git a/audio/Makefile b/audio/Makefile index 6f13e08eafd..66f975f7a7c 100644 --- a/audio/Makefile +++ b/audio/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.636 2021/07/29 19:16:08 nia Exp $ +# $NetBSD: Makefile,v 1.637 2021/08/06 13:50:24 nia Exp $ # COMMENT= Audio tools, players, and libraries @@ -221,6 +221,7 @@ SUBDIR+= libao-nas SUBDIR+= libao-oss SUBDIR+= libao-pulse SUBDIR+= libao-sun +SUBDIR+= libaudec SUBDIR+= libaudiofile SUBDIR+= libcanberra SUBDIR+= libcdaudio diff --git a/audio/libaudec/DESCR b/audio/libaudec/DESCR new file mode 100644 index 00000000000..62254fb6645 --- /dev/null +++ b/audio/libaudec/DESCR @@ -0,0 +1,11 @@ +libaudec (lib audio decoder) is a wrapper library over minimp3, sndfile and +libsamplerate for reading and resampling audio files, based on Robin Gareus' +audio_decoder code. + +libaudec supports all formats supported by sndfile, in addition to MP3. + +This library is meant to be linked in statically to larger projects. + +Until version 1.0 is released, the API is subject to change. + +libaudec is released under the GNU Affero GPLv3+. diff --git a/audio/libaudec/Makefile b/audio/libaudec/Makefile new file mode 100644 index 00000000000..dc515933594 --- /dev/null +++ b/audio/libaudec/Makefile @@ -0,0 +1,28 @@ +# $NetBSD: Makefile,v 1.1 2021/08/06 13:50:24 nia Exp $ + +V= 0.3.4 +PKGNAME= libaudec-${V} +CATEGORIES= audio +DISTFILES+= libaudec-${V}.tar.gz + +SITES.libaudec-${V}.tar.gz= \ + -https://git.sr.ht/~alextee/libaudec/archive/v${V}.tar.gz + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://git.sr.ht/~alextee/libaudec +COMMENT= Audio decoding library +LICENSE= gnu-agpl-v3 + +WRKSRC= ${WRKDIR}/libaudec-v${V} + +USE_TOOLS+= pkg-config + +PYTHON_FOR_BUILD_ONLY= tool + +PKGCONFIG_OVERRIDE_STAGE= pre-install +PKGCONFIG_OVERRIDE+= output/meson-private/audec.pc + +.include "../../devel/meson/build.mk" +.include "../../audio/libsamplerate/buildlink3.mk" +.include "../../audio/libsndfile/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/audio/libaudec/PLIST b/audio/libaudec/PLIST new file mode 100644 index 00000000000..3cf3009424c --- /dev/null +++ b/audio/libaudec/PLIST @@ -0,0 +1,6 @@ +@comment $NetBSD: PLIST,v 1.1 2021/08/06 13:50:24 nia Exp $ +bin/audec +include/audec/audec.h +lib/libaudec.a +lib/libaudec.so +lib/pkgconfig/audec.pc diff --git a/audio/libaudec/buildlink3.mk b/audio/libaudec/buildlink3.mk new file mode 100644 index 00000000000..18b96b16367 --- /dev/null +++ b/audio/libaudec/buildlink3.mk @@ -0,0 +1,15 @@ +# $NetBSD: buildlink3.mk,v 1.1 2021/08/06 13:50:24 nia Exp $ + +BUILDLINK_TREE+= libaudec + +.if !defined(LIBAUDEC_BUILDLINK3_MK) +LIBAUDEC_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.libaudec+= libaudec>=0.3.4 +BUILDLINK_PKGSRCDIR.libaudec?= ../../audio/libaudec + +.include "../../audio/libsamplerate/buildlink3.mk" +.include "../../audio/libsndfile/buildlink3.mk" +.endif # LIBAUDEC_BUILDLINK3_MK + +BUILDLINK_TREE+= -libaudec diff --git a/audio/libaudec/distinfo b/audio/libaudec/distinfo new file mode 100644 index 00000000000..a62b1c1c7be --- /dev/null +++ b/audio/libaudec/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2021/08/06 13:50:24 nia Exp $ + +SHA1 (libaudec-0.3.4.tar.gz) = 91dd871f6a15782496ef05cfc315b48f75ea8069 +RMD160 (libaudec-0.3.4.tar.gz) = d871099c5fe653cb743efd4cbbeaeb5216ad7310 +SHA512 (libaudec-0.3.4.tar.gz) = 9c50b866e2f0d1897d7a55a83263e74c3a1cf77772a52bd446632c9a92f2ccbbb3e2e1ecfde8b05fc41e59e4d60a57935a656ec8f40b6680fc4bbe201ea045ef +Size (libaudec-0.3.4.tar.gz) = 627395 bytes |