Makefile 2.76 KB
Newer Older
miwi's avatar
miwi committed
1
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
2
# $FreeBSD$
3

4
PORTNAME=	rhythmbox
5
PORTVERSION=	3.2.1
6
PORTREVISION=	2
7
CATEGORIES=	audio gnome
8
MASTER_SITES=	GNOME
9
DIST_SUBDIR=	gnome3
10

marcus's avatar
marcus committed
11
MAINTAINER=	marcus@FreeBSD.org
sat's avatar
sat committed
12
COMMENT=	Audio player for GNOME
13

14
15
16
17
18
19
20
21
22
23
24
25
26
BUILD_DEPENDS=	${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat \
		valac:lang/vala \
		gtkdoc-check:textproc/gtk-doc \
		itstool:textproc/itstool
LIB_DEPENDS=	libmusicbrainz5.so:audio/libmusicbrainz5 \
		libtotem-plparser.so:multimedia/totem-pl-parser \
		libdbus-glib-1.so:devel/dbus-glib \
		libcheck.so:devel/libcheck \
		libpeas-1.0.so:devel/libpeas \
		libjson-glib-1.0.so:devel/json-glib \
		libsoup-gnome-2.4.so:devel/libsoup-gnome \
		libsecret-1.so:security/libsecret \
		libtdb.so:databases/tdb
27

28
29
USES=		desktop-file-utils gettext gmake gnome libtool localbase \
		pathfix pkgconfig tar:xz
30
31
USE_GNOME=	intlhack gnomeprefix gtk30 introspection:build \
		py3gobject3
32
USE_XORG=	ice xproto
bapt's avatar
bapt committed
33
GNU_CONFIGURE=	yes
34
35
USE_GSTREAMER1=	flac lame jpeg cdparanoia vorbis
CONFIGURE_ARGS=	--enable-vala \
36
		--without-gudev \
kwm's avatar
kwm committed
37
		--without-webkit \
38
39
40
		--enable-visualizer=no \
		--disable-browser-plugin \
		--with-libsecret=yes
marcus's avatar
marcus committed
41
INSTALLS_ICONS=	yes
marcus's avatar
marcus committed
42
USE_LDCONFIG=	yes
43
INSTALL_TARGET=	install-strip
marcus's avatar
marcus committed
44

45
46
47
GLIB_SCHEMAS=	org.gnome.rhythmbox.gschema.xml

OPTIONS_SUB=	yes
kwm's avatar
kwm committed
48
49
OPTIONS_DEFINE=	BRASERO DAAP GRILO IPOD NOTIFY PYTHON LIRC MTP
OPTIONS_DEFAULT=BRASERO NOTIFY PYTHON
50
BRASERO_DESC=	Brasero disc burning support
51
BRASERO_CONFIGURE_WITH=brasero
52
BRASERO_LIB_DEPENDS=	libbrasero-media3.so:sysutils/brasero
53
54
DAAP_DESC=	DAAP support
DAAP_CONFIGURE_ENABLE=	daap
55
DAAP_LIB_DEPENDS=	libdmapsharing-3.0.so:net/libdmapsharing
56
57
IPOD_DESC=	iPod support
IPOD_CONFIGURE_WITH=	ipod
58
IPOD_LIB_DEPENDS=	libgpod.so:audio/libgpod
59
60
GRILO_DESC=		Media discovery with Grilo
GRILO_CONFIGURE_ENABLE=	grilo
61
62
GRILO_BUILD_DEPENDS=	grilo-plugins>=0:net/grilo-plugins
GRILO_RUN_DEPENDS=	grilo-plugins>=0:net/grilo-plugins
63
LIRC_CONFIGURE_ENABLE=	lirc
64
LIRC_LIB_DEPENDS=	liblirc_client.so:comms/lirc
65
NOTIFY_CONFIGURE_ENABLE=	libnotify
66
NOTIFY_LIB_DEPENDS=	libnotify.so:devel/libnotify
67
MTP_CONFIGURE_WITH=	mtp
68
69
MTP_LIB_DEPENDS=	libmtp.so:multimedia/libmtp \
			libhal.so:sysutils/hal
70
PYTHON_CONFIGURE_ENABLE=	python
71
PYTHON_USES=		python:3.3+
72
PYTHON_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}libpeas>=0:devel/py3-libpeas
kwm's avatar
kwm committed
73
74
75
76
77
# context plugin
# webkit is for the context plugin, which is broken because
# it needs textproc/py3-mako
#WEBKIT_DESC=	HTML view support
#WEBKIT_CONFIGURE_WITH=	webkit
78
#WEBKIT_LIB_DEPENDS=	libwebkitgtk-3.0.so:www/webkit-gtk3
79

80
81
.include <bsd.port.pre.mk>

82
83
84
post-patch:
	@${REINPLACE_CMD} -e 's|{MOZILLA_PLUGINDIR|{MOZILLA_PLUGINDIR}|g' \
		${WRKSRC}/configure
marcus's avatar
marcus committed
85

kwm's avatar
kwm committed
86
87
# rbzeitgeist plugin needs py3-zeitgeist
post-install:
mat's avatar
mat committed
88
	@${RM} -r ${STAGEDIR}${PREFIX}/lib/rhythmbox/plugins/rbzeitgeist
kwm's avatar
kwm committed
89

90
.include <bsd.port.post.mk>