aboutsummaryrefslogtreecommitdiff
path: root/multimedia/quodlibet/Makefile
blob: d39f08492163220f5f7ae505367e7e63119d1fd7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# New ports collection makefile for:	quodlibet
# Date created:			19 December 2005
# Whom:				Byung-Hee HWANG <bh@izb.knu.ac.kr>
#
# $FreeBSD$
#

PORTNAME=	quodlibet
PORTVERSION=	1.0
PORTREVISION=	5
CATEGORIES=	multimedia audio python gnome
MASTER_SITES=	http://www.sacredchao.net/~piman/software/ \
		http://www.tortall.net/mirrors/piman-software/

MAINTAINER=	johnson.peter@gmail.com
COMMENT=	A GTK+-based audio player written in Python

BUILD_DEPENDS=	${PYTHON_SITELIBDIR}/mutagen/__init__.py:${PORTSDIR}/audio/py-mutagen
RUN_DEPENDS=	${PYTHON_SITELIBDIR}/mutagen/__init__.py:${PORTSDIR}/audio/py-mutagen

USE_PYTHON=	2.4+
USE_GNOME=	pygtk2
USE_GETTEXT=	yes
USE_GMAKE=	yes
USE_DISPLAY=	yes
USE_GSTREAMER=	gconf good python

MAN1=		exfalso.1 quodlibet.1

OPTIONS=	FLAC "Flac audio support" on
OPTIONS+=	MP3 "MP3 audio support" on
OPTIONS+=	MPEG4IP "AAC/mp4 support with MPEG4IP" on
OPTIONS+=	MUSEPACK "Musepack (MPC, musicpd, libmpcdec) support" on
OPTIONS+=	OGG "OGG multimedia container support" on
OPTIONS+=	SPC "SPC (SNES ROM audio) support" on
OPTIONS+=	SPEEX "OGG/Speex audio support" on
OPTIONS+=	VORBIS "OGG/Vorbis audio support" on
OPTIONS+=	WAVPACK "Wavpack support" on
OPTIONS+=	DBUS "Enable dbus (iPod, storage) support" on
OPTIONS+=	REMOTE "Enable remote playback" on
OPTIONS+=	EXTENSIONS "Enable extensions" off

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_OGG)
USE_GSTREAMER+=	ogg
.endif

.if !defined(WITHOUT_VORBIS)
USE_GSTREAMER+=	vorbis
.endif

.if !defined(WITHOUT_SPC)
USE_GSTREAMER+=	spc
.endif

.if !defined(WITHOUT_SPEEX)
USE_GSTREAMER+=	speex
.endif

.if !defined(WITHOUT_MP3)
USE_GSTREAMER+=	mp3
.endif

.if !defined(WITHOUT_FLAC)
USE_GSTREAMER+=	flac
.endif

.if !defined(WITHOUT_MUSEPACK) || !defined(WITHOUT_WAVPACK) \
		|| !defined(WITHOUT_MPEG4IP)
BUILD_DEPENDS+=	${PYCTYPES}
RUN_DEPENDS+=	${PYCTYPES}
.endif

.if !defined(WITHOUT_MUSEPACK)
LIB_DEPENDS+=	mpcdec.5:${PORTSDIR}/audio/libmpcdec
USE_GSTREAMER+=	musepack
.endif

.if !defined(WITHOUT_WAVPACK)
LIB_DEPENDS+=	wavpack.1:${PORTSDIR}/audio/wavpack
USE_GSTREAMER+=	wavpack
.endif

.if !defined(WITHOUT_MPEG4IP)
LIB_DEPENDS+=	mp4v2.0:${PORTSDIR}/multimedia/mpeg4ip-libmp4v2
USE_GSTREAMER+=	faad
.endif

.if !defined(WITHOUT_DBUS)
BUILD_DEPENDS+=	${PYTHON_SITELIBDIR}/dbus/__init__.py:${PORTSDIR}/devel/py-dbus
RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/dbus/__init__.py:${PORTSDIR}/devel/py-dbus
.endif

.if !defined(WITHOUT_REMOTE)
BUILD_DEPENDS+=	${PYTHON_SITELIBDIR}/feedparser.py:${PORTSDIR}/textproc/py-feedparser
RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/feedparser.py:${PORTSDIR}/textproc/py-feedparser
USE_GSTREAMER+=	gnomevfs
.endif

.if defined(WITH_EXTENSIONS)
USE_GNOME+=	pygnomeextras
PLIST_SUB+=	EXTENSIONS=""
.else
PLIST_SUB+=	EXTENSIONS="@comment "
.endif

do-configure:
	@${PYTHON_CMD} ${WRKSRC}/check.py

do-build:
	@cd ${WRKSRC}/po && ${GMAKE} po
.if defined(WITH_EXTENSIONS)
	@cd ${WRKSRC} && ${GMAKE} extensions
.endif

pre-install:
	@${MKDIR} ${PREFIX}/lib/${PORTNAME}
	@${MKDIR} ${PREFIX}/share/applications

post-install:
	@${MKDIR} ${DATADIR}/plugins
	@${MKDIR} ${DATADIR}/plugins/events
	@${INSTALL_DATA} ${FILESDIR}/qlscrobbler.py ${DATADIR}/plugins/events

.include <bsd.port.post.mk>