freebsd-ports/audio/akode/Makefile

79 lines
2.1 KiB
Makefile
Raw Normal View History

# Created by: Michael Nottebrock <lofi@FreeBSD.org>
2005-03-20 19:17:55 +01:00
# $FreeBSD$
PORTNAME= akode
2008-03-13 18:40:59 +01:00
PORTVERSION= 2.0.2
2012-06-01 07:26:28 +02:00
PORTREVISION= 2
2006-01-08 20:32:36 +01:00
PORTEPOCH= 1
2005-03-20 19:17:55 +01:00
CATEGORIES= audio kde
MASTER_SITES= http://www.kde-apps.org/CONTENT/content-files/ \
${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= laszlof
DISTNAME= 30375-${PORTNAME}-${PORTVERSION}
2005-03-20 19:17:55 +01:00
MAINTAINER= swhetzel@gmail.com
2005-03-20 19:17:55 +01:00
COMMENT= Default KDE audio backend
LICENSE= LGPL20
LICENSE_FILE= ${WRKSRC}/COPYING
2005-03-20 19:17:55 +01:00
CONFLICTS= kdemultimedia-3.[1-3]*
OPTIONS_DEFINE= FFMPEG JACK MPC MPEG OSS RESAMPLER XIPH
OPTIONS_DEFAULT= MPC MPEG OSS RESAMPLER XIP
MPC_DESC= Monkey's Audio decoder plugin
RESAMPLER_DESC= Resampler processing plugin
XIPH_DESC= FLAC/Speex/Vorbis decoder plugin
2005-03-20 19:17:55 +01:00
NO_STAGE= yes
USES= gmake
2010-12-04 08:34:27 +01:00
USE_AUTOTOOLS= libltdl libtool
USE_BZIP2= yes
USE_GCC= any
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
2007-03-13 20:13:51 +01:00
USE_LDCONFIG= yes
2006-01-08 20:32:36 +01:00
CONFIGURE_ARGS+=--program-transform-name= \
2006-01-08 20:32:36 +01:00
--with-extra-libs=${LOCALBASE}/lib \
--with-extra-includes=${LOCALBASE}/include
2005-03-20 19:17:55 +01:00
.include <bsd.port.options.mk>
2005-03-20 19:17:55 +01:00
.if ${PORT_OPTIONS:MFFMPEG}
RUN_DEPENDS+= ${LOCALBASE}/lib/libakode_ffmpeg_decoder.so:${PORTSDIR}/audio/akode-plugins-ffmpeg
2008-03-13 18:40:59 +01:00
.endif
.if ${PORT_OPTIONS:MJACK}
2005-03-20 19:17:55 +01:00
RUN_DEPENDS+= ${LOCALBASE}/lib/libakode_jack_sink.so:${PORTSDIR}/audio/akode-plugins-jack
.endif
.if ${PORT_OPTIONS:MMPC}
2006-01-08 20:32:36 +01:00
RUN_DEPENDS+= ${LOCALBASE}/lib/libakode_mpc_decoder.so:${PORTSDIR}/audio/akode-plugins-mpc
2005-03-20 19:17:55 +01:00
.endif
.if ${PORT_OPTIONS:MMPEG}
2005-03-20 19:17:55 +01:00
RUN_DEPENDS+= ${LOCALBASE}/lib/libakode_mpeg_decoder.so:${PORTSDIR}/audio/akode-plugins-mpeg
.endif
.if ${PORT_OPTIONS:MOSS}
2005-03-20 19:17:55 +01:00
RUN_DEPENDS+= ${LOCALBASE}/lib/libakode_oss_sink.so:${PORTSDIR}/audio/akode-plugins-oss
.endif
.if ${PORT_OPTIONS:MRESAMPLER}
2005-03-20 19:17:55 +01:00
RUN_DEPENDS+= ${LOCALBASE}/lib/libakode_src_resampler.so:${PORTSDIR}/audio/akode-plugins-resampler
.endif
.if ${PORT_OPTIONS:MXIPH}
2005-03-20 19:17:55 +01:00
RUN_DEPENDS+= ${LOCALBASE}/lib/libakode_xiph_decoder.so:${PORTSDIR}/audio/akode-plugins-xiph
.endif
2006-01-08 20:32:36 +01:00
post-patch:
@${SETENV} TZ=UTC \
${TOUCH} -t 200607222217.01 ${WRKSRC}/akode/lib/akode_export.h.in
2006-01-08 20:32:36 +01:00
${REINPLACE_CMD} -e 's|akodeplay_LDFLAGS =.*|akodeplay_LDFLAGS = \
$$(all_libraries) ${PTHREAD_LIBS}|g' \
${WRKSRC}/akode/akodeplay/Makefile.in
.include <bsd.port.mk>