git: 68f86896b58e - main - audio/gstreamer1-plugins-fdkaac: New port: Fraunhofer FDK AAC plugin

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Sun, 04 May 2025 21:14:52 UTC
The branch main has been updated by diizzy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=68f86896b58ecf1fd4157fb5e97a58d80d62eb3d

commit 68f86896b58ecf1fd4157fb5e97a58d80d62eb3d
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2025-05-04 21:09:59 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2025-05-04 21:14:17 +0000

    audio/gstreamer1-plugins-fdkaac: New port: Fraunhofer FDK AAC plugin
    
    Plugin for Fraunhofer FDK AAC codec which supports both decoding and
    encoding
    
    PR:             286577
    Reviewed by:    makc
---
 Mk/Uses/gstreamer.mk                      |  5 ++++-
 audio/Makefile                            |  1 +
 audio/gstreamer1-plugins-fdkaac/Makefile  | 15 +++++++++++++++
 audio/gstreamer1-plugins-fdkaac/pkg-plist |  1 +
 4 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/Mk/Uses/gstreamer.mk b/Mk/Uses/gstreamer.mk
index abea43bc9db1..72d831eefb4e 100644
--- a/Mk/Uses/gstreamer.mk
+++ b/Mk/Uses/gstreamer.mk
@@ -55,7 +55,7 @@ _GST1_SOVERSION=	0.${_GST1_VERSION:R:E}${${_GST1_VERSION:E} > 9:?:0}${_GST1_VERS
 _GST1_CATEGORIES=	audio comms devel ftp graphics multimedia net security \
 			sysutils textproc www x11 x11-toolkits
 _GST1_PLUGINS_audio= 	a52dec alsa amrnb amrwbdec bs2b cdparanoia chromaprint faac \
-			faad flac flite gme gsm jack ladspa lame lv2 modplug \
+			faad fdkaac flac flite gme gsm jack ladspa lame lv2 modplug \
 			mpg123 ogg openmpt opus pulse shout2 sidplay \
 			sndfile sndio soundtouch speex taglib twolame vorbis \
 			wavpack webrtcdsp
@@ -145,6 +145,9 @@ gst-faac_IMPL=		bad
 gst-faad_PORT=		audio/gstreamer${_GST_VER}-plugins-faad
 gst-faad_IMPL=		bad
 
+gst-fdkaac_PORT=	audio/gstreamer${_GST_VER}-plugins-fdkaac
+gst-faad_IMPL=		bad
+
 gst-flac_PORT=		audio/gstreamer${_GST_VER}-plugins-flac
 gst-flac_IMPL=		good
 
diff --git a/audio/Makefile b/audio/Makefile
index fe62fe7168c0..619fa0de3b37 100644
--- a/audio/Makefile
+++ b/audio/Makefile
@@ -233,6 +233,7 @@
     SUBDIR += gstreamer1-plugins-chromaprint
     SUBDIR += gstreamer1-plugins-faac
     SUBDIR += gstreamer1-plugins-faad
+    SUBDIR += gstreamer1-plugins-fdkaac
     SUBDIR += gstreamer1-plugins-flac
     SUBDIR += gstreamer1-plugins-flite
     SUBDIR += gstreamer1-plugins-gme
diff --git a/audio/gstreamer1-plugins-fdkaac/Makefile b/audio/gstreamer1-plugins-fdkaac/Makefile
new file mode 100644
index 000000000000..32e0ed584779
--- /dev/null
+++ b/audio/gstreamer1-plugins-fdkaac/Makefile
@@ -0,0 +1,15 @@
+PORTREVISION=	0
+CATEGORIES=	audio
+
+COMMENT=	GStreamer FDK-AAC codec plugin
+
+LIB_DEPENDS=	libfdk-aac.so:audio/fdk-aac
+
+MASTERDIR=	${.CURDIR:H:H}/multimedia/gstreamer1-plugins
+
+PLIST=		${.CURDIR}/pkg-plist
+
+DIST=		bad
+GST_PLUGIN=	fdkaac
+
+.include "${MASTERDIR}/Makefile"
diff --git a/audio/gstreamer1-plugins-fdkaac/pkg-plist b/audio/gstreamer1-plugins-fdkaac/pkg-plist
new file mode 100644
index 000000000000..ab86d9b94448
--- /dev/null
+++ b/audio/gstreamer1-plugins-fdkaac/pkg-plist
@@ -0,0 +1 @@
+lib/gstreamer-%%VERSION%%/libgstfdkaac.so