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
|
# Created by: Veniamin Gvozdikov <vg@FreeBSD.org>
# $FreeBSD$
PORTNAME= deadbeef
PORTVERSION= 0.5.5
PORTREVISION= 8
CATEGORIES= audio
MASTER_SITES= SF/${PORTNAME}
MAINTAINER= vg@FreeBSD.org
COMMENT= Ultimate music player for Unix-like systems
LICENSE= GPLv2
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash
LIB_DEPENDS= libsamplerate.so:${PORTSDIR}/audio/libsamplerate \
libmad.so:${PORTSDIR}/audio/libmad \
libexecinfo.so:${PORTSDIR}/devel/libexecinfo
GNU_CONFIGURE= yes
USES= gmake pkgconfig gettext iconv shebangfix tar:bzip2 desktop-file-utils \
libtool
USE_LDCONFIG= yes
CONFIGURE_ARGS= --disable-alsa --disable-nullout
CPPFLAGS+= -I../dumb/dumb-kode54/include -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib -lexecinfo -lintl
WANT_GNOME= yes
INSTALLS_ICONS= yes
CONFIGURE_ENV+= CONFIG_SHELL="${LOCALBASE}/bin/bash"
SHEBANG_FILES= yasmwrapper.sh
INSTALL_TARGET= install-strip
OPTIONS_DEFINE= PULSEAUDIO GUI VFS LASTFM ART EQ SID FFAP VTX HOTKEYS OGG FFMPEG \
FLAC SNDFILE WAV CDDA GME DUMB NOTIFY MUSEPACK WILD TTA DCA AAC \
MMS SHN AO SHELLEXEC NLS M3U PSF ADP DSP MONO2STEREO CONVERTER VFS_ZIP
OPTIONS_DEFAULT= GUI VFS LASTFM ART EQ SID FFAP VTX HOSTKEYS OGG FFMPEG \
FLAC SNDFILE WAV CDDA GME DUMB NOTIFY MUSEPACK WILD TTA DCA \
AAC MMS SHN AO SHELLEXEC M3U PSF ADP DSP MONO2STEREO CONVERTER VFS_ZIP \
HOtKEYS
PULSEAUDIO_DESC= PulseAudio output plugin (unsupported)
GUI_DESC= standard GTK2 user interface plugin
VFS_DESC= HTTP streaming vfs plugin
LASTFM_DESC= last.fm/libre.fm scrobbler plugin
ART_DESC= album art loader plugin
EQ_DESC= SuperEQ DSP plugin
SID_DESC= SID music player plugin
FFAP_DESC= Monkey's Audio plugin
VTX_DESC= libayemy VTX ZX-Spectrum music player plugin
ADP_DESC= adplug plugin
HOTKEYS_DESC= global hotkeys plugin
CDDA_DESC= CD-Audio plugin
GME_DESC= Game Music Emu plugin
DUMB_DESC= D.U.M.B. plugin for MOD, S3M and other
NOTIFY_DESC= support for OSD notifications into GTKUI plugin
WILD_DESC= wildmidi plugin
TTA_DESC= tta plugin
SHN_DESC= shorten plugin
AO_DESC= audio overload plugin
SHELLEXEC_DESC= shell commands plugin
M3U_DESC= m3u plugin
PSF_DESC= AOSDK-based PSF(,QSF,SSF,DSF) plugin
DSP_DESC= libsamplerate (SRC) plugin
MONO2STEREO_DESC= mono2stereo DSP plugin
CONVERTER_DESC= Build converter
VFS_ZIP_DESC= ZIP support
OPTIONS_SUB= yes
PULSEAUDIO_LIB_DEPENDS= libpulse.so:${PORTSDIR}/audio/pulseaudio
PULSEAUDIO_CONFIGURE_OFF= --disable-pulse
GUI_USE= GNOME="gtk20,glib20"
GUI_CONFIGURE_OFF= --disable-gtkui --disable-gtk3
VFS_LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
VFS_CONFIGURE_OFF= --disable-vfs-curl
LASTFM_LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
LASTFM_CONFIGURE_OFF= --disable-lfm
EQ_CONFIGURE_OFF= --disable-supereq
SID_CONFIGURE_OFF= --disable-sid
FFAP_BUILD_DEPENDS= yasm:${PORTSDIR}/devel/yasm
FFAP_CONFIGURE_OFF= --disable-ffap
VTX_CONFIGURE_OFF= --disable-vtx
ADP_CONFIGURE_OFF= --disable-adplug
HOTKEYS_CONFIGURE_OFF= --disable-hotkeys
OGG_LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis
OGG_CONFIGURE_OFF= --disable-vorbis
FFMPEG_LIB_DEPENDS= libavcodec0.so:${PORTSDIR}/multimedia/ffmpeg0 \
libavformat0.so:${PORTSDIR}/multimedia/ffmpeg0 \
libavutil0.so:${PORTSDIR}/multimedia/ffmpeg0
FFMPEG_CONFIGURE_ENABLE= ffmpeg
FLAC_LIB_DEPENDS= libFLAC.so:${PORTSDIR}/audio/flac
FLAC_CONFIGURE_OFF= --disable-flac
SNDFILE_LIB_DEPENDS= libsndfile.so:${PORTSDIR}/audio/libsndfile
SNDFILE_CONFIGURE_OFF= --disable-sndfile
WAV_LIB_DEPENDS= libwavpack.so:${PORTSDIR}/audio/wavpack
WAV_CONFIGURE_OFF= --disable-wavpack
CDDA_LIB_DEPENDS= libcdio.so:${PORTSDIR}/sysutils/libcdio \
libcddb.so:${PORTSDIR}/audio/libcddb
CDDA_CONFIGURE_OFF= --disable-cdda
GME_CONFIGURE_OFF= --disable-gme
DUMB_CONFIGURE_OFF= --disable-dumb
NOTIFY_LIB_DEPENDS= libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib
NOTIFY_CONFIGURE_OFF= --disable-notify
MUSEPACK_CONFIGURE_OFF= --disable-musepack
WILD_RUN_DEPENDS= ${LOCALBASE}/share/freepats/crude.cfg:${PORTSDIR}/audio/freepats
WILD_CONFIGURE_OFF= --disable-wildmidi
TTA_CONFIGURE_OFF= --disable-tta
DCA_CONFIGURE_OFF= --disable-dca
AAC_LIB_DEPENDS= libfaad.so:${PORTSDIR}/audio/faad
AAC_CONFIGURE_OFF= --disable-aac
MMS_CONFIGURE_OFF= --disable-mms
SHN_CONFIGURE_OFF= --disable-shn
AO_CONFIGURE_OFF= --disable-ao
SHELLEXEC_CONFIGURE_ARGS+= --disable-shellexec
NLS_CONFIGURE_OFF= --disable-nls
M3U_CONFIGURE_OFF= --disable-m3u
SPF_CONFIGURE_OFF= --disable-psf
DSP_LIB_DEPENDS= libsamplerate.so:${PORTSDIR}/audio/libsamplerate
DSP_CONFIGURE_OFF= --disable-src
MONO2STEREO_CONFIGURE_OFF= --disable-mono2stereo
VFS_ZIP_LIB_DEPENDS= libzip.so:${PORTSDIR}/archivers/libzip
VFS_ZIP_CONFIGURE_OFF= --disable-vfs-zip
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MART}
.if ${PORT_OPTIONS:MVFS}
CONFIGURE_ARTS+= --disable-artwork-imlib2
PLIST_SUB+= ART=""
LIB_DEPENDS+= libcurl.so:${PORTSDIR}/ftp/curl \
libjpeg.so:${PORTSDIR}/graphics/jpeg
.else
BROKEN= VFS plugin required for album art loader, please rerun 'make config' and either disable ART or enable VFS
.endif
.else
CONFIGURE_ARGS+= --disable-artwork
PLIST_SUB+= ART="@comment "
.endif
.if ${PORT_OPTIONS:MCONVERTER}
.if ${PORT_OPTIONS:MGUI}
PLIST_SUB+= CONVERTER=""
USE_GNOME= gtk20 glib20
.else
BROKEN= CONVERTER plugin required for gui, please rerun 'make config' and either disable CONVERTER or enable GUI
.endif
.else
CONFIGURE_ARGS+= --disable-converter
PLIST_SUB+= CONVERTER="@comment "
.endif
post-patch:
# Do not link to libsupc++ which may be PIC-unsafe (breaks 64-bit arches)
@${REINPLACE_CMD} -e 's, -lsupc++,,' \
${WRKSRC}/plugins/adplug/Makefile.in \
${WRKSRC}/plugins/gme/Makefile.in \
${WRKSRC}/plugins/sid/Makefile.in \
${WRKSRC}/plugins/supereq/Makefile.in
@${REINPLACE_CMD} -e 's,/etc/timidity++/timidity-freepats.cfg:/etc/timidity/freepats.cfg:/etc/timidity/,${LOCALBASE}/share/,' \
${WRKSRC}/plugins/wildmidi/wildmidiplug.c
@${REINPLACE_CMD} \
-e 's,libavcodec ,libavcodec0 ,g' \
-e 's,libavutil ,libavutil0 ,g' \
-e 's,libavformat ,libavformat0 ,g' \
${WRKSRC}/configure
.if ${ARCH} == "powerpc" && ${OSVERSION} > 900000
BROKEN= Does not build on powerpc-9: fails to compile
.endif
.include <bsd.port.mk>
|