2003-08-19 03:33:00 +02:00
|
|
|
# New ports collection makefile for: rhythmbox
|
|
|
|
# Date created: 17 August 2003
|
|
|
|
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
|
2003-05-18 19:20:19 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
2009-03-21 19:36:50 +01:00
|
|
|
# $MCom$
|
2003-05-18 19:20:19 +02:00
|
|
|
#
|
|
|
|
|
2003-08-19 03:33:00 +02:00
|
|
|
PORTNAME= rhythmbox
|
2009-03-21 19:36:50 +01:00
|
|
|
PORTVERSION= 0.12.0
|
2003-05-18 19:20:19 +02:00
|
|
|
CATEGORIES= audio gnome
|
2009-02-02 02:36:16 +01:00
|
|
|
MASTER_SITES= GNOME
|
2003-08-19 03:33:00 +02:00
|
|
|
DIST_SUBDIR= gnome2
|
2003-05-18 19:20:19 +02:00
|
|
|
|
2005-07-20 19:19:48 +02:00
|
|
|
MAINTAINER= marcus@FreeBSD.org
|
2006-12-06 09:00:22 +01:00
|
|
|
COMMENT= Audio player for GNOME
|
2003-05-18 19:20:19 +02:00
|
|
|
|
2004-03-17 06:21:35 +01:00
|
|
|
LIB_DEPENDS= musicbrainz.4:${PORTSDIR}/audio/libmusicbrainz \
|
2009-03-21 19:36:50 +01:00
|
|
|
musicbrainz3.6:${PORTSDIR}/audio/libmusicbrainz3 \
|
2005-11-05 06:29:26 +01:00
|
|
|
id3tag.0:${PORTSDIR}/audio/libid3tag \
|
2009-01-10 06:22:13 +01:00
|
|
|
totem-plparser.12:${PORTSDIR}/multimedia/totem-pl-parser \
|
2006-10-14 10:54:54 +02:00
|
|
|
dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib \
|
2006-05-25 21:57:44 +02:00
|
|
|
sexy.2:${PORTSDIR}/x11-toolkits/libsexy \
|
2009-03-21 19:36:50 +01:00
|
|
|
soup-2.4.1:${PORTSDIR}/devel/libsoup \
|
2006-05-28 04:41:15 +02:00
|
|
|
gnome-media-profiles.0:${PORTSDIR}/audio/gnome-media
|
2003-05-18 19:20:19 +02:00
|
|
|
|
2004-04-16 22:53:40 +02:00
|
|
|
USE_BZIP2= yes
|
2006-05-01 20:18:23 +02:00
|
|
|
USE_GETTEXT= yes
|
2004-11-23 03:23:08 +01:00
|
|
|
INSTALLS_OMF= yes
|
2003-05-18 19:20:19 +02:00
|
|
|
USE_GMAKE= yes
|
2005-11-05 06:29:26 +01:00
|
|
|
USE_GNOME= gnomehack intlhack gnomeprefix libgnomeui nautiluscdburner
|
2006-04-19 08:17:15 +02:00
|
|
|
WANT_GNOME= yes
|
2007-06-07 16:04:25 +02:00
|
|
|
USE_GSTREAMER= flac mp3 gnomevfs gconf jpeg
|
2006-04-21 20:27:49 +02:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2009-03-21 19:36:50 +01:00
|
|
|
CONFIGURE_ARGS= --disable-vala
|
2006-06-19 07:47:15 +02:00
|
|
|
INSTALLS_ICONS= yes
|
2007-02-22 06:57:56 +01:00
|
|
|
USE_LDCONFIG= yes
|
2005-11-05 06:29:26 +01:00
|
|
|
CONFIGURE_ENV= LIBS="-lm" \
|
2007-10-25 01:37:25 +02:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
CPPFLAGS="-I${LOCALBASE}/include"
|
2003-05-18 19:20:19 +02:00
|
|
|
|
2004-11-24 01:14:56 +01:00
|
|
|
GCONF_SCHEMAS= rhythmbox.schemas
|
|
|
|
|
2006-10-14 10:54:54 +02:00
|
|
|
OPTIONS= DAAP "Enable iTunes music sharing" off \
|
|
|
|
IPOD "Enable iPod support" on \
|
2006-02-02 08:58:16 +01:00
|
|
|
FAAD "Enable FAAD decoder support" off \
|
2006-04-19 08:17:15 +02:00
|
|
|
NOTIFY "Enable libnotify support" on \
|
2006-10-14 10:54:54 +02:00
|
|
|
VORBIS "Enable Ogg/Vorbis support" on \
|
2009-03-21 19:36:50 +01:00
|
|
|
LIRC "Enable Infrared syncing support" off \
|
|
|
|
MTP "Enable MS Media Transfer Protocol support" off \
|
|
|
|
GECKO_PLUGIN "Enable iTunes browser plugin" on
|
2008-07-13 19:44:06 +02:00
|
|
|
|
2004-04-16 22:53:40 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-04-19 08:17:15 +02:00
|
|
|
.if !defined(WITHOUT_VORBIS)
|
2005-02-28 23:16:10 +01:00
|
|
|
USE_GSTREAMER+= vorbis
|
|
|
|
.else
|
2003-09-09 07:51:05 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-vorbis --disable-vorbistest
|
2003-05-18 19:20:19 +02:00
|
|
|
.endif
|
|
|
|
|
2005-11-05 06:29:26 +01:00
|
|
|
.if defined(WITH_FAAD)
|
2005-02-28 23:16:10 +01:00
|
|
|
USE_GSTREAMER+= faad
|
|
|
|
.endif
|
|
|
|
|
2006-12-15 05:29:40 +01:00
|
|
|
.if defined(WITH_LIRC)
|
2007-04-20 22:32:56 +02:00
|
|
|
LIB_DEPENDS+= lirc_client.1:${PORTSDIR}/comms/lirc
|
2006-12-15 05:29:40 +01:00
|
|
|
PLIST_SUB+= LIRC=""
|
|
|
|
CONFIGURE_ARGS+=--enable-lirc
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-lirc
|
|
|
|
PLIST_SUB+= LIRC="@comment "
|
|
|
|
.endif
|
|
|
|
|
2009-03-21 19:36:50 +01:00
|
|
|
.if defined(WITH_MTP)
|
|
|
|
LIB_DEPENDS+= mtp.8:${PORTSDIR}/audio/libmtp
|
|
|
|
PLIST_SUB+= MTP=""
|
|
|
|
CONFIGURE_ARGS+= --with-mtp
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-mtp
|
|
|
|
PLIST_SUB+= MTP="@comment "
|
|
|
|
.endif
|
|
|
|
|
2005-11-05 06:29:26 +01:00
|
|
|
.if defined(WITH_DAAP)
|
2006-04-30 01:03:03 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-daap --with-mdns=avahi
|
2007-12-27 05:56:53 +01:00
|
|
|
LIB_DEPENDS+= avahi-client:${PORTSDIR}/net/avahi-app \
|
2007-02-22 06:57:56 +01:00
|
|
|
gnome-keyring:${PORTSDIR}/security/gnome-keyring
|
2006-12-15 05:29:40 +01:00
|
|
|
PLIST_SUB+= DAAP=""
|
2005-11-05 06:29:26 +01:00
|
|
|
.else
|
2006-04-30 01:03:03 +02:00
|
|
|
.if exists(${LOCALBASE}/lib/libavahi-client.a)
|
2007-12-27 05:56:53 +01:00
|
|
|
LIB_DEPENDS+= avahi-client:${PORTSDIR}/net/avahi-app
|
2005-11-05 06:29:26 +01:00
|
|
|
.endif
|
|
|
|
CONFIGURE_ARGS+= --disable-daap
|
2006-12-15 05:29:40 +01:00
|
|
|
PLIST_SUB+= DAAP="@comment "
|
2005-11-05 06:29:26 +01:00
|
|
|
.endif
|
|
|
|
|
2006-02-02 08:58:16 +01:00
|
|
|
.if !defined(WITHOUT_NOTIFY)
|
2006-11-14 13:54:41 +01:00
|
|
|
LIB_DEPENDS+= notify.1:${PORTSDIR}/devel/libnotify
|
2007-07-05 03:56:48 +02:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/libexec/notification-daemon:${PORTSDIR}/deskutils/notification-daemon
|
2006-02-02 08:58:16 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-libnotify
|
|
|
|
.endif
|
|
|
|
|
2009-03-21 19:36:50 +01:00
|
|
|
.if exists(${LOCALBASE}/libdata/pkgconfig/gst-python-0.10.pc)
|
2006-04-19 08:17:15 +02:00
|
|
|
USE_PYTHON= yes
|
|
|
|
.include "${PORTSDIR}/Mk/bsd.python.mk"
|
2009-03-21 19:36:50 +01:00
|
|
|
USE_GSTREAMER+= python
|
2006-04-19 08:17:15 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-python
|
|
|
|
PLIST_SUB+= PYTHON=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-python
|
|
|
|
PLIST_SUB+= PYTHON="@comment "
|
2003-09-21 19:07:18 +02:00
|
|
|
.endif
|
2003-05-18 19:20:19 +02:00
|
|
|
|
2006-10-14 10:54:54 +02:00
|
|
|
.if !defined(WITHOUT_IPOD)
|
2008-01-06 23:47:04 +01:00
|
|
|
LIB_DEPENDS+= gpod.3:${PORTSDIR}/audio/libgpod
|
2006-10-14 10:54:54 +02:00
|
|
|
CONFIGURE_ARGS+=--with-ipod
|
|
|
|
PLIST_SUB+= IPOD=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-ipod
|
|
|
|
PLIST_SUB+= IPOD="@comment "
|
|
|
|
.endif
|
|
|
|
|
2009-03-21 19:36:50 +01:00
|
|
|
.if !defined(WITHOUT_GECKO_PLUGIN)
|
|
|
|
USE_GECKO= firefox mozilla seamonkey xulrunner<->firefox firefox-devel<->firefox
|
|
|
|
.include "${PORTSDIR}/www/mozilla/bsd.gecko.mk"
|
|
|
|
|
|
|
|
USE_WEBPLUGINS= gecko18
|
|
|
|
WEBPLUGINS_FILES=librhythmbox-itms-detection-plugin.so
|
|
|
|
.include "${PORTSDIR}/www/firefox/Makefile.webplugins"
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+=--enable-browser-plugin
|
|
|
|
CONFIGURE_ENV+= MOZILLA_PLUGINDIR=${WEBPLUGINS_DIR}
|
|
|
|
PLIST_SUB+= GECKO_PLUGIN=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-browser-plugin
|
|
|
|
PLIST_SUB+= GECKO_PLUGIN="@comment "
|
|
|
|
.endif
|
|
|
|
|
2003-05-18 19:20:19 +02:00
|
|
|
.include <bsd.port.post.mk>
|