From 4975402d7f239a520dfcbd48e03dbab43e491d68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 22 Apr 2023 00:00:02 +0200 Subject: FreeBSD: Add ports updated for final release R14.1.0. Add a script to synchronize ports to the FreeBSD ports structure. Add meta-port 'tde-meta' to install all TDE ports. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- freebsd/dependencies/akode/Makefile | 127 ++++++++++++++++++++++++++++++++++++ 1 file changed, 127 insertions(+) create mode 100644 freebsd/dependencies/akode/Makefile (limited to 'freebsd/dependencies/akode/Makefile') diff --git a/freebsd/dependencies/akode/Makefile b/freebsd/dependencies/akode/Makefile new file mode 100644 index 000000000..f142a8e2a --- /dev/null +++ b/freebsd/dependencies/akode/Makefile @@ -0,0 +1,127 @@ +# -*-mode: makefile-*- +# Created by: slavek.banko@axis.cz +# $FreeBSD$ +# +# TDE port map: dependencies/akode + +PORTSDIR?=/usr/ports +.include <${PORTSDIR}/Mk/bsd.trinity.mk> + +PORTNAME= akode +COMMENT= akode plugin for aRts +TDE_PREVERSION= +MASTER_SITE_SUBDIR= a/${PORTNAME} +PORTREVISION= 0 +CATEGORIES= audio +DISTSRC= ${PORTNAME}-trinity-${TDE_VERSION}${TDE_PREVERSION} +DIST_SUBDIR= TDE/dependencies +PREFIX= ${LOCALBASE} + + +OPTIONS_DEFINE= ALSA_SINK \ + JACK_SINK \ + OSS_SINK \ + PULSE_SINK \ + \ + FFMPEG_DECODER \ + MPC_DECODER \ + MPEG_DECODER \ + XIPH_DECODER \ + \ + SRC_RESAMPLER \ + +OPTIONS_DEFAULT=ALSA_SINK \ + JACK_SINK \ + OSS_SINK \ + PULSE_SINK \ + \ + FFMPEG_DECODER \ + MPC_DECODER \ + MPEG_DECODER \ + XIPH_DECODER \ + \ + SRC_RESAMPLER \ + +ALSA_SINK_DESC= Alsa output plugin +JACK_SINK_DESC= Jack output plugin +OSS_SINK_DESC= OSS output plugin +PULSE_SINK_DESC= PulseAudio output plugin +FFMPEG_DECODER_DESC= FFMPEG decoder plugin (broken) +MPC_DECODER_DESC= Monkey's Audio decoder plugin +MPEG_DECODER_DESC= MPEG audio decoder plugin (including mp3) +XIPH_DECODER_DESC= FLAC/Speex/Vorbis decoder plugin +SRC_RESAMPLER_DESC= Resampler processing plugin + +OPTIONS_SUB= yes + +.include + +BUILD_DEPENDS += \ + ${LOCALBASE}/share/cmake/Modules/TDEMacros.cmake:devel/tde-cmake \ + + +.if ${PORT_OPTIONS:MALSA_SINK} +LIB_DEPENDS+= libasound.so:audio/alsa-lib +CONFIGURE_ARGS+= -DWITH_ALSA_SINK="ON" +.endif + +.if ${PORT_OPTIONS:MJACK_SINK} +LIB_DEPENDS+= libjack.so:audio/jack +CONFIGURE_ARGS+= -DWITH_JACK_SINK="ON" +.endif + +.if ${PORT_OPTIONS:MOSS_SINK} +CONFIGURE_ARGS+= -DWITH_OSS_SINK="ON" +.endif + +.if ${PORT_OPTIONS:MPULSE_SINK} +LIB_DEPENDS+= libpulse-simple.so:audio/pulseaudio +CONFIGURE_ARGS+= -DWITH_PULSE_SINK="ON" +.endif + +.if ${PORT_OPTIONS:MFFMPEG_DECODER} +LIB_DEPENDS+= libavformat.so:multimedia/ffmpeg \ + libavcodec.so:multimedia/ffmpeg +CONFIGURE_ARGS+= -DWITH_FFMPEG_DECODER="ON" +.endif + +.if ${PORT_OPTIONS:MMPC_DECODER} +CONFIGURE_ARGS+= -DWITH_MPC_DECODER="ON" +.endif + +.if ${PORT_OPTIONS:MMPEG_DECODER} +LIB_DEPENDS+= libmad.so:audio/libmad +CONFIGURE_ARGS+= -DWITH_MPEG_DECODER="ON" +.endif + +.if ${PORT_OPTIONS:MSRC_RESAMPLER} +LIB_DEPENDS+= libsamplerate.so:audio/libsamplerate +CONFIGURE_ARGS+= -DWITH_SRC_RESAMPLER="ON" +.endif + +.if ${PORT_OPTIONS:MXIPH_DECODER} +LIB_DEPENDS+= libFLAC.so:audio/flac \ + libspeex.so:audio/speex \ + libvorbis.so:audio/libvorbis \ + libvorbisfile.so:audio/libvorbis +CONFIGURE_ARGS+= -DWITH_XIPH_DECODER="ON" +.endif + + +# Build +post-patch: tde-pathfix + +do-configure: tde-cmake-prepare + ${TDE_CMAKE_CONFIGURE} \ + -DCMAKE_INSTALL_PREFIX="${PREFIX}" \ + -DPKGCONFIG_INSTALL_DIR="${PREFIX}/libdata/pkgconfig" \ + \ + -DWITH_GCC_VISIBILITY="ON" \ + -DWITH_LIBLTDL="OFF" \ + ${CONFIGURE_ARGS} + +do-build: tde-cmake-build + +do-install: tde-cmake-install + +.include -- cgit v1.2.1