summaryrefslogtreecommitdiffstats
path: root/freebsd/dependencies/akode/Makefile
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2015-07-02 17:25:15 +0200
committerSlávek Banko <[email protected]>2015-07-02 17:25:15 +0200
commit595d2593963dfc33e52fb3bf82fc2595dc2c0e37 (patch)
treea284a943099fabc9782c2959c6da43e2b09078ae /freebsd/dependencies/akode/Makefile
parentbb6e8f18c1d80974cd4f7a810267bd9753121f45 (diff)
downloadtde-packaging-595d2593963dfc33e52fb3bf82fc2595dc2c0e37.tar.gz
tde-packaging-595d2593963dfc33e52fb3bf82fc2595dc2c0e37.zip
FreeBSD: Initial import
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'freebsd/dependencies/akode/Makefile')
-rw-r--r--freebsd/dependencies/akode/Makefile114
1 files changed, 114 insertions, 0 deletions
diff --git a/freebsd/dependencies/akode/Makefile b/freebsd/dependencies/akode/Makefile
new file mode 100644
index 000000000..ab16278e4
--- /dev/null
+++ b/freebsd/dependencies/akode/Makefile
@@ -0,0 +1,114 @@
+# -*-mode: makefile-*-
+# Created by: [email protected]
+# $FreeBSD$
+#
+
+.include <../../trinity.port.mk>
+
+PORTNAME= akode
+COMMENT= akode plugin for aRts
+MASTER_SITE_SUBDIR= a/${PORTNAME}
+PORTVERSION= 2.0.2
+PORTREVISION= 6
+PORTEPOCH= 1
+CATEGORIES= audio
+MASTER_SITES= ${MASTER_SITE_TDE_DEPS}
+DISTNAME= ${PORTNAME}_${PORTVERSION}
+DISTSRC= ${PORTNAME}-${PORTVERSION}
+DIST_SUBDIR= TDE/dependencies
+PREFIX= ${LOCALBASE}
+
+
+OPTIONS_DEFINE= ALSA_SINK \
+ JACK_SINK \
+ OSS_SINK \
+ \
+ FFMPEG_DECODER \
+ MPC_DECODER \
+ MPEG_DECODER \
+ XIPH_DECODER \
+ \
+ SRC_RESAMPLER \
+
+OPTIONS_DEFAULT=ALSA_SINK \
+ JACK_SINK \
+ OSS_SINK \
+ \
+ 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
+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 <bsd.port.pre.mk>
+
+
+.if ${PORT_OPTIONS:MALSA_SINK}
+LIB_DEPENDS+= libasound.so:${PORTSDIR}/audio/alsa-lib
+CONFIGURE_ARGS+= -DWITH_ALSA_SINK="ON"
+.endif
+
+.if ${PORT_OPTIONS:MJACK_SINK}
+LIB_DEPENDS+= libjack.so:${PORTSDIR}/audio/jack
+CONFIGURE_ARGS+= -DWITH_JACK_SINK="ON"
+.endif
+
+.if ${PORT_OPTIONS:MOSS_SINK}
+CONFIGURE_ARGS+= -DWITH_OSS_SINK="ON"
+.endif
+
+.if ${PORT_OPTIONS:MFFMPEG_DECODER}
+LIB_DEPENDS+= libavformat.so:${PORTSDIR}//multimedia/ffmpeg \
+ libafcodec.so:${PORTSDIR}//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:${PORTSDIR}/audio/libmad
+CONFIGURE_ARGS+= -DWITH_MPEG_DECODER="ON"
+.endif
+
+.if ${PORT_OPTIONS:MSRC_RESAMPLER}
+LIB_DEPENDS+= libsamplerate.so:${PORTSDIR}/audio/libsamplerate
+CONFIGURE_ARGS+= -DWITH_SRC_RESAMPLER="ON"
+.endif
+
+.if ${PORT_OPTIONS:MXIPH_DECODER}
+LIB_DEPENDS+= libFLAC.so:${PORTSDIR}/audio/flac \
+ libspeex.so:${PORTSDIR}/audio/speex \
+ libvorbis.so:${PORTSDIR}/audio/libvorbis \
+ libvorbisfile.so:${PORTSDIR}/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_LIBLTDL="OFF" \
+ ${CONFIGURE_ARGS}
+
+do-build: tde-cmake-build
+
+do-install: tde-cmake-install
+
+.include <bsd.port.mk>