2005-03-20 19:17:55 +01:00
|
|
|
# New ports collection makefile for: mpeglib_artsplug
|
|
|
|
# Date created: July 09 2004
|
|
|
|
# Whom: Michael Nottebrock <lofi@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= akode
|
2008-03-13 18:40:59 +01:00
|
|
|
PORTVERSION= 2.0.2
|
2006-01-08 20:32:36 +01:00
|
|
|
PORTEPOCH= 1
|
2005-03-20 19:17:55 +01:00
|
|
|
CATEGORIES= audio kde
|
2006-09-17 21:59:22 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GENTOO}
|
|
|
|
MASTER_SITE_SUBDIR=distfiles
|
|
|
|
DISTNAME= 30375-${PORTNAME}-${PORTVERSION}.tar.bz2
|
2006-01-08 20:32:36 +01:00
|
|
|
EXTRACT_SUFX= # none
|
2005-03-20 19:17:55 +01:00
|
|
|
|
|
|
|
MAINTAINER= kde@FreeBSD.org
|
|
|
|
COMMENT= Default KDE audio backend
|
|
|
|
|
|
|
|
CONFLICTS= kdemultimedia-3.[1-3]*
|
|
|
|
|
2008-03-13 18:40:59 +01:00
|
|
|
OPTIONS= FFMPEG "FFMPEG decoder plugin" off \
|
|
|
|
JACK "Jack output plugin" off \
|
2005-03-20 19:17:55 +01:00
|
|
|
MPC "Monkey's Audio decoder plugin" on \
|
|
|
|
MPEG "MPEG Audio (including mp3) plugin" on \
|
|
|
|
OSS "OSS output plugin" on \
|
|
|
|
RESAMPLER "Resampler processing plugin" on \
|
|
|
|
XIPH "FLAC/Speex/Vorbis decoder plugin" on
|
|
|
|
|
2006-01-08 20:32:36 +01:00
|
|
|
USE_AUTOTOOLS= libltdl
|
2006-03-30 22:30:29 +02:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2006-09-17 21:59:22 +02:00
|
|
|
USE_BZIP2= yes
|
2005-03-20 19:17:55 +01:00
|
|
|
USE_GMAKE= yes
|
2006-09-17 21:59:22 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
2007-03-13 20:13:51 +01:00
|
|
|
USE_LDCONFIG= yes
|
2006-01-08 20:32:36 +01:00
|
|
|
PLIST_SUB+= MACHINE_ARCH=${MACHINE_ARCH}
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} \
|
|
|
|
--program-transform-name= \
|
|
|
|
--with-extra-libs=${LOCALBASE}/lib \
|
|
|
|
--with-extra-includes=${LOCALBASE}/include
|
2005-03-20 19:17:55 +01:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2008-03-13 18:40:59 +01:00
|
|
|
.if defined(WITH_FFMPEG)
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/lib/libakode_ffmpeg_decoder.so:${PORTSDIR}/audio/akode-plugins-ffmpeg
|
|
|
|
.endif
|
|
|
|
|
2005-03-20 19:17:55 +01:00
|
|
|
.if defined(WITH_JACK)
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/libakode_jack_sink.so:${PORTSDIR}/audio/akode-plugins-jack
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_MPC)
|
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 !defined(WITHOUT_MPEG)
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/libakode_mpeg_decoder.so:${PORTSDIR}/audio/akode-plugins-mpeg
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_OSS)
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/libakode_oss_sink.so:${PORTSDIR}/audio/akode-plugins-oss
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_RESAMPLER)
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/libakode_src_resampler.so:${PORTSDIR}/audio/akode-plugins-resampler
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_XIPH)
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/libakode_xiph_decoder.so:${PORTSDIR}/audio/akode-plugins-xiph
|
|
|
|
.endif
|
|
|
|
|
2006-01-08 20:32:36 +01:00
|
|
|
post-patch:
|
2006-09-17 21:59:22 +02:00
|
|
|
@${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
|
|
|
|
|
2005-11-05 12:19:58 +01:00
|
|
|
do-build:
|
2006-01-08 20:32:36 +01:00
|
|
|
cd ${WRKSRC}/akode && ${GMAKE}
|
2005-11-05 12:19:58 +01:00
|
|
|
|
|
|
|
do-install:
|
2006-01-08 20:32:36 +01:00
|
|
|
cd ${WRKSRC}/akode && ${GMAKE} install
|
2005-03-20 19:17:55 +01:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|