aboutsummaryrefslogtreecommitdiffstats
path: root/audio/deadbeef/Makefile
blob: 5a4806ff863482463a751606207845789aa6c782 (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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
# New ports collection makefile for:    deadbeef
# Date created:     2010-01-17
# Whom:         Gvozdikov Veniamin <g.veniamin@googlemail.com>
#
# $FreeBSD$
#

PORTNAME=   deadbeef
PORTVERSION=    0.4.1
CATEGORIES= audio
MASTER_SITES=   SF/${PORTNAME}/

MAINTAINER= g.veniamin@googlemail.com
COMMENT=    DeaDBeeF is an audio player

LIB_DEPENDS=    samplerate.1:${PORTSDIR}/audio/libsamplerate \
        mad.2:${PORTSDIR}/audio/libmad \
        execinfo.1:${PORTSDIR}/devel/libexecinfo

GNU_CONFIGURE=  yes
USE_BZIP2=  yes
USE_ICONV=  yes
CONFIGURE_ENV=  CPPFLAGS="-I../dumb/dumb-kode54/include -I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib" LIBS="-lexecinfo"
CONFIGURE_ARGS= --disable-alsa --disable-nullout
WANT_GNOME= yes
INSTALLS_ICONS= yes
MAKE_JOBS_SAFE= yes

OPTIONS=    PULSE "PulseAudio output plugin (unsupported)" off\
        GUI "standard GTK2 user interface plugin" on\
        VFS "HTTP streaming vfs plugin" on\
        LASTFM "last.fm/libre.fm scrobbler plugin" on\
        ART "album art loader plugin" on\
        EQ "SuperEQ DSP plugin" on\
        SID "commodore64 SID music player plugin" on\
        FFAP "Monkey's Audio plugin" on\
        VTX "libayemy VTX ZX-Spectrum music player plugin" on\
        ADP "adplug plugin" on\
        HOTKEYS "global hotkeys plugin" on\
        OGG "Ogg Vorbis player plugin" on\
        FFMPEG "FFMPEG plugin for WMA, MPC, TTA, etc" on\
        FLAC "FLAC player plugin" on\
        SNDFILE "libsndfile plugin for PCM wave files" on\
        WAV "wavpack plugin" on\
        CDDA "CD-Audio plugin" on\
        GME "Game Music Emu plugin for NSF, AY, etc" on\
        DUMB "D.U.M.B. plugin for MOD, S3M and other" on\
        NOTIFY "support for OSD notifications into GTKUI plugin" on

.include <bsd.port.options.mk>

.if defined(WITHOUT_PULSE)
CONFIGURE_ARGS+=    --disable-pulse
PLIST_SUB+= PULSE="@comment "
.else
PLIST_SUB+= PULSE=""
LIB_DEPENDS+=   pulse.0:${PORTSDIR}/audio/pulseaudio
.endif

.if defined(WITHOUT_GUI)
CONFIGURE_ARGS+=    --disable-gtkui
PLIST_SUB+= GUI="@comment "
.else
PLIST_SUB+= GUI=""
USE_GNOME=  gtk20 glib20
.endif

.if defined(WITHOUT_VFS)
CONFIGURE_ARGS+=    --disable-vfs-curl
PLIST_SUB+= VFS="@comment "
.else
PLIST_SUB+= VFS=""
LIB_DEPENDS+=   curl.6:${PORTSDIR}/ftp/curl
.endif

.if defined(WITHOUT_LASTFM)
CONFIGURE_ARGS+=    --disable-lfm
PLIST_SUB+= LASTFM="@comment "
.else
PLIST_SUB+= LASTFM=""
LIB_DEPENDS+=   curl.6:${PORTSDIR}/ftp/curl
.endif

.if defined(WITHOUT_ART)
CONFIGURE_ARGS+=    --disable-artwork
PLIST_SUB+= ART="@comment "
.else
.if !defined(WITHOUT_VFS)
PLIST_SUB+= ART=""
LIB_DEPENDS+=   curl.6:${PORTSDIR}/ftp/curl
.else
BROKEN=     VFS plugin required for album art loader, please rerun 'make config' and either disable ART or enable VFS
.endif
.endif

.if defined(WITHOUT_EQ)
CONFIGURE_ARGS+=    --disable-supereq
PLIST_SUB+= EQ="@comment "
.else
PLIST_SUB+= EQ=""
.endif

.if defined(WITHOUT_SID)
CONFIGURE_ARGS+=    --disable-sid
PLIST_SUB+= SID="@comment "
.else
PLIST_SUB+= SID=""
.endif

.if defined(WITHOUT_FFAP)
CONFIGURE_ARGS+=    --disable-ffap
PLIST_SUB+= FFAP="@comment "
.else
PLIST_SUB+= FFAP=""
.endif

.if defined(WITHOUT_VTX)
CONFIGURE_ARGS+=    --disable-vtx
PLIST_SUB+= VTX="@comment "
.else
PLIST_SUB+= VTX=""
.endif

.if defined(WITHOUT_ADP)
CONFIGURE_ARGS+=    --disable-adplug
PLIST_SUB+= ADP="@comment "
.else
PLIST_SUB+= ADP=""
.endif

.if defined(WITHOUT_HOTKEYS)
CONFIGURE_ARGS+=    --disable-hotkeys
PLIST_SUB+= HOTKEYS="@comment "
.else
PLIST_SUB+= HOTKEYS=""
.endif

.if defined(WITHOUT_OGG)
CONFIGURE_ARGS+=    --disable-vorbis
PLIST_SUB+= OGG="@comment "
.else
LIB_DEPENDS+=   vorbis.4:${PORTSDIR}/audio/libvorbis
PLIST_SUB+= OGG=""
.endif

.if defined(WITHOUT_FFMPEG)
CONFIGURE_ARGS+=    --disable-ffmpeg
PLIST_SUB+= FFMPEG="@comment "
.else
PLIST_SUB+= FFMPEG=""
LIB_DEPENDS+=   avcodec.1:${PORTSDIR}/multimedia/ffmpeg \
        avformat.1:${PORTSDIR}/multimedia/ffmpeg \
        avutil.1:${PORTSDIR}/multimedia/ffmpeg
.endif

.if defined(WITHOUT_FLAC)
CONFIGURE_ARGS+=    --disable-flac
PLIST_SUB+= FLAC="@comment "
.else
LIB_DEPENDS+=   FLAC.10:${PORTSDIR}/audio/flac
PLIST_SUB+= FLAC=""
.endif

.if defined(WITHOUT_SNDFILE)
CONFIGURE_ARGS+=    --disable-sndfile
PLIST_SUB+= SNDFILE="@comment "
.else
LIB_DEPENDS+=   sndfile.1:${PORTSDIR}/audio/libsndfile
PLIST_SUB+= SNDFILE=""
.endif

.if defined(WITHOUT_WAV)
CONFIGURE_ARGS+=    --disable-wavpack
PLIST_SUB+= WAV="@comment "
.else
LIB_DEPENDS+=   wavpack.2:${PORTSDIR}/audio/wavpack
PLIST_SUB+= WAV=""
.endif

.if defined(WITHOUT_CDDA)
CONFIGURE_ARGS+=    --disable-cdda
PLIST_SUB+= CDDA="@comment "
.else
PLIST_SUB+= CDDA=""
LIB_DEPENDS+=   cdio.12:${PORTSDIR}/sysutils/libcdio \
        cddb.4:${PORTSDIR}/audio/libcddb
.endif

.if defined(WITHOUT_GME)
CONFIGURE_ARGS+=    --disable-gme
PLIST_SUB+= GME="@comment "
.else
PLIST_SUB+= GME=""
.endif

.if defined(WITHOUT_DUMB)
CONFIGURE_ARGS+=    --disable-dumb
PLIST_SUB+= DUMB="@comment "
.else
PLIST_SUB+= DUMB=""
.endif

.if defined(WITHOUT_NOTIFY)
CONFIGURE_ARGS+=    --disable-notify
PLIST_SUB+= NOTIFY="@comment "
.else
PLIST_SUB+= NOTIFY=""
LIB_DEPENDS+=   dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib
.endif

.include <bsd.port.mk>