freebsd-ports/audio/amarok/Makefile

125 lines
3 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: amarok
# Date created: Tue Feb 24 02:21:14 CET 2004
# Whom: Markus Brueffer <markus@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= amarok
PORTVERSION= 1.4.10
2012-06-01 07:26:28 +02:00
PORTREVISION= 20
CATEGORIES= audio kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${PORTNAME}/${PORTVERSION}/src
MAINTAINER= ports@FreeBSD.org
COMMENT= Media player for KDE
LIB_DEPENDS= tag.1:${PORTSDIR}/audio/taglib \
mp4v2.10:${PORTSDIR}/multimedia/mp4v2 \
- Update multimedia/libxine to 1.2.1 with a commit merged from hg to fix DVB support. (which still is broken for tuners using hardware pid filtering, like when running webcamd with "-m dvb-usb-init.force_pid_filter_usage=1".) - Add patches to fix build of ports depending on libxine to: audio/amarok, graphics/gimageview [1], graphics/pornview [1], graphics/osg [2], graphics/osg-devel [2], multimedia/emotion, x11/kdelibs4 [3], multimedia/kmplayer, multimedia/konverter, multimedia/qdvdauthor [4], multimedia/vdr-plugin-xineliboutput, multimedia/xfce4-media [5], multimedia/xine_artsplugin, multimedia/k9copy-kde4 [6] - Fix RUN_DEPENDS= xine... which should be LIB_DEPENDS for audio/atunes . [7] - Mark multimedia/phonon-xine BROKEN which refuses to build with libxine 1.2.x and is deprecated upstream. [3] - Disable XINE knob for x11/eaglemode for which I don't have a fix. [2] - Note: multimedia/kaffeine runs after rakuco's x11/kdelibs4 fix, but it only shows a green window at least with mp4 or ts files. (avi files and audio still work.) It seems the kaffeine developers have found this too and are now switching away from libxine in their git repo - so I guess we'll have a broken kaffeine at least until they release a new version. - Bump PORTREVISIONs for ports depending on libxine by default. - Add optional libbluray support to multimedia/libxine and multimedia/vdr-plugin-xineliboutput. PR: ports/165057 [6] Submitted by: nox (self) [6], rakuco [3] Approved by: dinoex (maintainer, via irc) [1], amdmi3 (maintainer, via private email) [2], kde@ (rakuco, via irc) [3], Phil Oleson <oz@nixil.net> (maintainer, via private email) [4], xfce@ (rene, via irc) [5], Eduardo Gielamo Oliveira <egoliveira@gmail.com> (maintainer) [6], lme (maintainer, via irc) [7] Thanx to: Darren Salt (upstream libxine maintainer) for a few hints on irc to help with patching ports depending on deprecated libxine features
2012-02-26 16:22:37 +01:00
xine.2:${PORTSDIR}/multimedia/libxine
MIN_OPTIONS_VER= ${PORTNAME}-1.4.1
USE_BZIP2= yes
2005-04-22 04:14:05 +02:00
USE_KDEBASE_VER=3
USE_GMAKE= yes
2010-12-04 08:34:27 +01:00
USE_AUTOTOOLS= libtool
USE_GETTEXT= yes
2005-02-06 19:27:52 +01:00
USE_SDL= sdl
USE_RUBY= yes
USE_LDCONFIG= yes
2012-06-01 11:38:09 +02:00
OPTIONS_DEFINE= GPOD NJB MTP LIBVISUAL OPENGL AMAZON MYSQL PGSQL HIDEMENUBAR
OPTIONS_DEFAULT= GPOD NJB MTP OPENGL AMAZON
GPOD_DESC= Enable Ipod support
NJB_DESC= Enable Creative Nomad and Dell support
LIBVISUAL_DESC= Enable libvisual support
AMAZON_DESC= Enable Amazon cover fetching support
HIDEMENUBAR_DESC= Revert the 'Hide Menubar' feature
.include <bsd.port.options.mk>
CONFIGURE_ARGS+=--without-exscalibar \
--without-musicbrainz \
--with-mp4v2 \
--with-mp4v2-dir=${PREFIX}
2011-08-27 22:07:34 +02:00
CFLAGS+= -I${LOCALBASE}/include/ruby-${RUBY_VER} -I${LOCALBASE}/include/ruby-${RUBY_VER}/${RUBY_ARCH}
2012-06-01 11:38:09 +02:00
.if ${PORT_OPTIONS:MGPOD}
2011-03-15 16:05:40 +01:00
LIB_DEPENDS+= gpod.7:${PORTSDIR}/audio/libgpod
CONFIGURE_ARGS+=--with-libgpod
PLIST_SUB+= GPOD=""
2012-06-01 11:38:09 +02:00
.else
PLIST_SUB+= GPOD="@comment "
CONFIGURE_ARGS+=--without-libgpod
.endif
2012-06-01 11:38:09 +02:00
.if ${PORT_OPTIONS:MNJB}
LIB_DEPENDS+= njb.6:${PORTSDIR}/audio/libnjb
CONFIGURE_ARGS+=--with-libnjb
PLIST_SUB+= NJB=""
2012-06-01 11:38:09 +02:00
.else
PLIST_SUB+= NJB="@comment "
.endif
2012-06-01 11:38:09 +02:00
.if ${PORT_OPTIONS:MMTP}
2012-05-25 17:14:39 +02:00
LIB_DEPENDS+= mtp.9:${PORTSDIR}/audio/libmtp
CONFIGURE_ARGS+=--with-libmtp
PLIST_SUB+= MTP=""
2012-06-01 11:38:09 +02:00
.else
PLIST_SUB+= MTP="@comment "
.endif
2012-06-01 11:38:09 +02:00
.if ${PORT_OPTIONS:MLIBVISUAL}
LIB_DEPENDS+= visual-0.4:${PORTSDIR}/graphics/libvisual04
2012-06-01 11:38:09 +02:00
.else
CONFIGURE_ARGS+=--without-libvisual
.endif
2012-06-01 11:38:09 +02:00
.if empty(PORT_OPTIONS:MOPENGL)
CONFIGURE_ARGS+=--without-opengl
.endif
2012-06-01 11:38:09 +02:00
.if empty(PORT_OPTIONS:MAMAZON)
CONFIGURE_ARGS+=--disable-amazon
2004-10-14 00:58:29 +02:00
.endif
2012-06-01 11:38:09 +02:00
.if ${PORT_OPTIONS:MMYSQL}
USE_MYSQL= yes
CONFIGURE_ARGS+=--enable-mysql
.endif
2012-06-01 11:38:09 +02:00
.if ${PORT_OPTIONS:MPOSTGRESQL}
USE_PGSQL= yes
CONFIGURE_ARGS+=--enable-postgresql
.endif
2012-06-01 11:38:09 +02:00
.if ${PORT_OPTIONS:MHIDEMENUBAR}
EXTRA_PATCHES= ${PATCHDIR}/hide-main-menu-bar-feature.patch
.endif
2012-06-01 11:38:09 +02:00
.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+=--enable-debug=full
STRIP= # none
.endif
post-patch:
@${REINPLACE_CMD} -e 's|-O2||g; \
s|LIBS="-ltunepimp $$LIBS"|LIBS="-ltunepimp -liconv $$LIBS"|g; \
s|mp4\.h|mp4v2/mp4v2.h|g' \
${WRKSRC}/${CONFIGURE_SCRIPT}
2004-10-14 00:58:29 +02:00
@${REINPLACE_CMD} -e 's|xx||g' ${WRKSRC}/po/Makefile.in
@${REINPLACE_CMD} -e 's|<mp4\.h>|<mp4v2/mp4v2.h>|g' \
${WRKSRC}/amarok/src/metadata/mp4/mp4properties.h \
${WRKSRC}/amarok/src/metadata/mp4/mp4tag.h
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${TOUCH}
post-install:
2012-06-01 11:38:09 +02:00
.if !empty(PORT_OPTIONS:MMTP) || !empty${PORT_OPTIONS:MNJB} || !empty(PORT_OPTIONS:MGPOD)
@${CAT} ${PKGMESSAGE}
.endif
2012-06-01 11:38:09 +02:00
.include <bsd.port.mk>