aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/quodlibet/Makefile
blob: 74680ef06e0f26ac9c65a0446eaebfee996398bb (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
# Created by: Byung-Hee HWANG <bh@izb.knu.ac.kr>
# $FreeBSD$

PORTNAME=   quodlibet
PORTVERSION=    2.2
PORTREVISION=   7
CATEGORIES= multimedia audio python gnome
MASTER_SITES=   ${MASTER_SITE_GOOGLE_CODE}

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= yes
USE_GNOME=  pygtk2
USES=       gettext
USE_PYDISTUTILS=    yes
USE_DISPLAY=    yes
USE_GSTREAMER=  gconf good python

MAN1=       exfalso.1 quodlibet.1

OPTIONS_DEFINE= FLAC MP3 AAC MUSEPACK OGG SPC SPEEX VORBIS WAVPACK DBUS REMOTE EXTENSIONS
SPC_DESC=   SPC (SNES ROM audio) support
SPEEX_DESC= OGG/Speex audio support
REMOTE_DESC=    Enable remote playback
EXTENSIONS_DESC=    Enable extensions

OPTIONS_DEFAULT=    FLAC MP3 AAC MUSEPACK OGG SPC SPEEX VORBIS WAVPACK DBUS REMOTE

NO_STAGE=   yes
.include <bsd.port.options.mk>
.include <bsd.port.pre.mk>

.if ${PORT_OPTIONS:MOGG}
USE_GSTREAMER+= ogg
.endif

.if ${PORT_OPTIONS:MVORBIS}
USE_GSTREAMER+= vorbis
.endif

.if ${PORT_OPTIONS:MSPC}
USE_GSTREAMER+= spc
.endif

.if ${PORT_OPTIONS:MSPEEX}
USE_GSTREAMER+= speex
.endif

.if ${PORT_OPTIONS:MMP3}
USE_GSTREAMER+= mp3
.endif

.if ${PORT_OPTIONS:MFLAC}
USE_GSTREAMER+= flac
.endif

.if ${PORT_OPTIONS:MMUSEPACK}
LIB_DEPENDS+=   mpcdec.7:${PORTSDIR}/audio/musepack
USE_GSTREAMER+= musepack
.endif

.if ${PORT_OPTIONS:MWAVPACK}
LIB_DEPENDS+=   wavpack.2:${PORTSDIR}/audio/wavpack
USE_GSTREAMER+= wavpack
.endif

.if ${PORT_OPTIONS:MAAC}
LIB_DEPENDS+=   mp4v2.10:${PORTSDIR}/multimedia/mp4v2
USE_GSTREAMER+= faad
.endif

.if ${PORT_OPTIONS:MDBUS}
BUILD_DEPENDS+= ${PYTHON_SITELIBDIR}/dbus/__init__.py:${PORTSDIR}/devel/py-dbus
RUN_DEPENDS+=   ${PYTHON_SITELIBDIR}/dbus/__init__.py:${PORTSDIR}/devel/py-dbus
.endif

.if ${PORT_OPTIONS:MREMOTE}
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 ${PORT_OPTIONS:MEXTENSIONS}
USE_GNOME+= pygnomeextras
PLIST_SUB+= EXTENSIONS=""
.else
PLIST_SUB+= EXTENSIONS="@comment "
.endif

post-install:
    @${ECHO_CMD}
    @${CAT} ${PKGMESSAGE}
    @${ECHO_CMD}

.include <bsd.port.post.mk>