aboutsummaryrefslogtreecommitdiffstats
path: root/audio/decibel-audio-player/Makefile
blob: bfafdac8ec3701bf87974f7a47a2c61768401535 (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
# New ports collection makefile for:    decibel-audio-player
# Date created:     2010-03-17
# Whom:         kipz <somicide@gmail.com>
#
# $FreeBSD$
#

PORTNAME=   decibel-audio-player
PORTVERSION=    1.07
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
USE_GETTEXT=    yes
USE_GMAKE=  yes
NO_BUILD=   yes
MAN1=       decibel-audio-player.1 decibel-audio-player-remote.1

#Audio gstreamer plugins
OPTIONS=    AUDIOCD "AudioCD support" on \
        FLAC "FLAC support" on \
        MP3 "MP3 support" on \
        MPEG4IP "AAC/MP4P support" on \
        OGG "OGG support" on \
        SPEEX "OGG/Speex support" off \
        VORBIS "OGG/Vorbis support" on \
        WAVPACK "Wavpack support" on

#A few extra requirements if we want to use some nifty plugins in decibel
OPTIONS+=   EXTRAS "Extra dependencies for plugins" on

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_AUDIOCD)
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 !defined(WITHOUT_EXTRAS)
RUN_DEPENDS+=   py*-imaging>=1.1.6:${PORTSDIR}/graphics/py-imaging \
        py*-notify>=0.1.1:${PORTSDIR}/devel/py-notify
.endif

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

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

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

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

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

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

.if !defined(WITHOUT_WAVPACK)
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.post.mk>