git: 5ee7d6a649a1 - main - audio/atracdenc: New port: ATRAC1 decoder/encoder, ATRAC3 encoder

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Fri, 24 Nov 2023 17:38:33 UTC
The branch main has been updated by diizzy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5ee7d6a649a175c22e5321e9b0587ee2c0744a12

commit 5ee7d6a649a175c22e5321e9b0587ee2c0744a12
Author:     Daniil Cherednik <dan.cherednik@gmail.com>
AuthorDate: 2023-11-24 17:36:43 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2023-11-24 17:36:51 +0000

    audio/atracdenc: New port: ATRAC1 decoder/encoder, ATRAC3 encoder
    
    Audio encoder that supports ATRAC1 and ATRAC3 formats, can decode ATRAC1
    and supports following containers: AEA, OMA, RIFF, RealMedia.
    
    WWW: https://github.com/dcherednik/atracdenc/
    
    PR:             275143
---
 audio/Makefile            |  1 +
 audio/atracdenc/Makefile  | 29 +++++++++++++++++++++++++++++
 audio/atracdenc/distinfo  |  3 +++
 audio/atracdenc/pkg-descr |  2 ++
 4 files changed, 35 insertions(+)

diff --git a/audio/Makefile b/audio/Makefile
index 97c5c9dcdf38..8f0856a33b2a 100644
--- a/audio/Makefile
+++ b/audio/Makefile
@@ -36,6 +36,7 @@
     SUBDIR += asterisk-espeak
     SUBDIR += asterisk-flite
     SUBDIR += asunder
+    SUBDIR += atracdenc
     SUBDIR += atunes
     SUBDIR += aubio
     SUBDIR += audacity
diff --git a/audio/atracdenc/Makefile b/audio/atracdenc/Makefile
new file mode 100644
index 000000000000..48bcf0feca04
--- /dev/null
+++ b/audio/atracdenc/Makefile
@@ -0,0 +1,29 @@
+PORTNAME=	atracdenc
+DISTVERSION=	0.1.1
+CATEGORIES=	audio
+MASTER_SITES=	https://github.com/dcherednik/${PORTNAME}/releases/download/${DISTVERSION}/ \
+		https://code.mastervirt.ru/st/${PORTNAME}/
+
+MAINTAINER=	pkgsup@mastervirt.ru
+COMMENT=	ATRAC1 decoder/encoder, ATRAC3 encoder
+WWW=		https://github.com/dcherednik/atracdenc/
+
+LICENSE=	LGPL21+
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+LIB_DEPENDS=	libsndfile.so:audio/libsndfile
+TEST_DEPENDS=	googletest>0:devel/googletest
+
+USES=		cmake:testing
+
+PLIST_FILES=	bin/atracdenc \
+		share/man/man1/atracdenc.1.gz
+
+CMAKE_TESTING_OFF=	CMAKE_DISABLE_FIND_PACKAGE_GTest
+
+CMAKE_ON=	CMAKE_DISABLE_FIND_PACKAGE_GTest
+
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/atracdenc
+
+.include <bsd.port.mk>
diff --git a/audio/atracdenc/distinfo b/audio/atracdenc/distinfo
new file mode 100644
index 000000000000..bfcee72c9322
--- /dev/null
+++ b/audio/atracdenc/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1700518590
+SHA256 (atracdenc-0.1.1.tar.gz) = 60e5677afac4a20776516f7a5e63bac4dcb4bfde9f8e642ebf82ad3b9a8d8ef2
+SIZE (atracdenc-0.1.1.tar.gz) = 89277
diff --git a/audio/atracdenc/pkg-descr b/audio/atracdenc/pkg-descr
new file mode 100644
index 000000000000..a89e4f2beaa4
--- /dev/null
+++ b/audio/atracdenc/pkg-descr
@@ -0,0 +1,2 @@
+Audio encoder that supports ATRAC1 and ATRAC3 formats, can decode ATRAC1 and
+following containers: AEA, OMA, RIFF, RealMedia.