freebsd-ports/audio/rhythmbox/Makefile

140 lines
3.7 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: rhythmbox
# Date created: 17 August 2003
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
2009-03-21 19:36:50 +01:00
# $MCom$
#
PORTNAME= rhythmbox
2009-03-21 19:36:50 +01:00
PORTVERSION= 0.12.0
CATEGORIES= audio gnome
MASTER_SITES= GNOME
DIST_SUBDIR= gnome2
MAINTAINER= marcus@FreeBSD.org
COMMENT= Audio player for GNOME
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 \
totem-plparser.12:${PORTSDIR}/multimedia/totem-pl-parser \
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 \
gnome-media-profiles.0:${PORTSDIR}/audio/gnome-media
USE_BZIP2= yes
USE_GETTEXT= yes
INSTALLS_OMF= yes
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
USE_GSTREAMER= flac mp3 gnomevfs gconf jpeg
USE_AUTOTOOLS= libtool:15
2009-03-21 19:36:50 +01:00
CONFIGURE_ARGS= --disable-vala
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" \
LDFLAGS="-L${LOCALBASE}/lib" \
CPPFLAGS="-I${LOCALBASE}/include"
GCONF_SCHEMAS= rhythmbox.schemas
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 \
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
.include <bsd.port.pre.mk>
2006-04-19 08:17:15 +02:00
.if !defined(WITHOUT_VORBIS)
USE_GSTREAMER+= vorbis
.else
CONFIGURE_ARGS+= --disable-vorbis --disable-vorbistest
.endif
2005-11-05 06:29:26 +01:00
.if defined(WITH_FAAD)
USE_GSTREAMER+= faad
.endif
2006-12-15 05:29:40 +01:00
.if defined(WITH_LIRC)
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)
CONFIGURE_ARGS+= --enable-daap --with-mdns=avahi
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
.if exists(${LOCALBASE}/lib/libavahi-client.a)
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
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 "
.endif
.if !defined(WITHOUT_IPOD)
2008-01-06 23:47:04 +01:00
LIB_DEPENDS+= gpod.3:${PORTSDIR}/audio/libgpod
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
.include <bsd.port.post.mk>