aboutsummaryrefslogtreecommitdiffstats
path: root/audio/decibel-audio-player/Makefile
blob: a53e5a1caf96e36c4415a1231fe9e5a90082d021 (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
# Created by: kipz <somicide@gmail.com>
# $FreeBSD$

PORTNAME=   decibel-audio-player
PORTVERSION=    1.08
CATEGORIES= audio multimedia gnome python
MASTER_SITES=   http://decibel.silent-blade.org/uploads/Main/

MAINTAINER= somicide@gmail.com
COMMENT=    A fast GTK+ audio player with an clean and user friendly interface

RUN_DEPENDS=    py*-dbus>=0.80:${PORTSDIR}/devel/py-dbus \
        py*-mutagen>=1.11:${PORTSDIR}/audio/py-mutagen

LICENSE=    GPLv2

USE_PYTHON= 2.5+
USE_GNOME=  pygnome2 pygtk2
USE_GSTREAMER=  python good bad
USES=       gettext
USE_GMAKE=  yes
NO_BUILD=   yes
MAN1=       decibel-audio-player.1 decibel-audio-player-remote.1

#Audio gstreamer plugins
OPTIONS_DEFINE= AUDIOCD FLAC MP3 MPEG4IP OGG VORBIS SPEEX WAVPACK EXTRAS
OPTIONS_DEFAULT=    AUDIOCD FLAC MP3 MPEG4IP OGG VORBIS WAVPACK EXTRAS
AUDIOCD_DESC=   AudioCD support
MPEG4IP_DESC=   AAC/MP4P support
#
##A few extra requirements if we want to use some nifty plugins in decibel
EXTRAS_DESC=    Extra dependencies for plugins

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MAUDIOCD}
RUN_DEPENDS+=   cd-discid>=0.9:${PORTSDIR}/audio/cd-discid \
        py*-cddb>=1.4:${PORTSDIR}/audio/py-cddb \
        gstreamer-plugins-cdio>=0.10.16:${PORTSDIR}/sysutils/gstreamer-plugins-cdio
.endif

.if ${PORT_OPTIONS:MEXTRAS}
RUN_DEPENDS+=   py*-imaging>=1.1.6:${PORTSDIR}/graphics/py-imaging \
        py*-notify>=0.1.1:${PORTSDIR}/devel/py-notify
.endif

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

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

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

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

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

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

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

post-patch:
    @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
        ${WRKSRC}/Makefile

.include <bsd.port.mk>