e2f4793d89
build failure on -CURRENT because strip cannot handle this. As it was confirmed by upstream that it's safe to disable static libs [1], do and and fix build on -CURRENT. Drop static libs from plist and bump PORTREVISION. 1: https://github.com/Alexey-Yakovenko/deadbeef/issues/1255 PR: 202573 Approved by: vg (maintainer)
193 lines
6.1 KiB
Makefile
193 lines
6.1 KiB
Makefile
# Created by: Veniamin Gvozdikov <vg@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= deadbeef
|
|
PORTVERSION= 0.6.2
|
|
PORTREVISION= 6
|
|
CATEGORIES= audio
|
|
MASTER_SITES= SF/${PORTNAME}/
|
|
|
|
MAINTAINER= vg@FreeBSD.org
|
|
COMMENT= Ultimate music player for Unix-like systems
|
|
|
|
LICENSE= GPLv2 LGPL21
|
|
LICENSE_COMB= dual
|
|
|
|
GNU_CONFIGURE= yes
|
|
USES= desktop-file-utils execinfo gettext gmake iconv libtool \
|
|
pkgconfig shebangfix tar:bzip2
|
|
USE_LDCONFIG= yes
|
|
CONFIGURE_ARGS= --disable-alsa --disable-nullout --disable-gtk3 --disable-static
|
|
CPPFLAGS+= -I../dumb/dumb-kode54/include -I../../plugins/libmp4ff \
|
|
-I../../plugins/gme/game-music-emu-0.6pre \
|
|
-I${LOCALBASE}/include
|
|
LIBS+= -L${LOCALBASE}/lib -lexecinfo -lintl
|
|
USE_GNOME= intltool
|
|
INSTALLS_ICONS= yes
|
|
SHEBANG_FILES= yasmwrapper.sh
|
|
INSTALL_TARGET= install-strip
|
|
|
|
OPTIONS_DEFINE= MAD PULSEAUDIO GUI VFS LASTFM ART SUPEREQ SID FFAP VTX \
|
|
HOTKEYS OGG FFMPEG FLAC SNDFILE WAVPACK CDDA GME DUMB NOTIFY \
|
|
MUSEPACK WILDMIDI TTA DCA AAC MMS SHN AO SHELLEXEC NLS M3U \
|
|
PSF ADPLUG DSP MONO2STEREO CONVERTER VFS_ZIP ALAC PLTBROWSER \
|
|
WMA
|
|
OPTIONS_DEFAULT= MAD GUI VFS LASTFM ART SUPEREQ SID FFAP VTX HOSTKEYS \
|
|
OGG FLAC SNDFILE WAVPACK CDDA GME DUMB NOTIFY MUSEPACK \
|
|
WILDMIDI TTA DCA AAC MMS SHN AO SHELLEXEC M3U PSF ADPLUG DSP \
|
|
MONO2STEREO CONVERTER VFS_ZIP HOTKEYS ALAC PLTBROWSER WMA
|
|
|
|
PULSEAUDIO_DESC= PulseAudio output plugin (unsupported)
|
|
GUI_DESC= Standard GTK+2 user interface plugin
|
|
VFS_DESC= HTTP streaming VFS plugin
|
|
LASTFM_DESC= Last.fm/Libre.fm scrobbler plugin
|
|
ART_DESC= Cover artwork loader plugin
|
|
SUPEREQ_DESC= SuperEQ DSP plugin (equalizer)
|
|
SID_DESC= Commodore 64 SID music player plugin
|
|
FFAP_DESC= ${APE_DESC}
|
|
VTX_DESC= VTX ZX-Spectrum music player plugin
|
|
ADPLUG_DESC= AdPlug audio format (OPL2/OPL3) support
|
|
HOTKEYS_DESC= Local and global hotkeys support
|
|
GME_DESC= Chiptune music support (based on GME)
|
|
DUMB_DESC= D.U.M.B. plugin for MOD, S3M, etc.
|
|
NOTIFY_DESC= OSD notification support in GTKUI plugin
|
|
WILDMIDI_DESC= WildMIDI synthesizer plugin
|
|
SHN_DESC= Shorten waveform encoder support
|
|
AO_DESC= Audio Overload (vintage hardware sound) plugin
|
|
SHELLEXEC_DESC= Shell commands execution plugin
|
|
M3U_DESC= M3U and PLS playlist format support
|
|
PSF_DESC= AOSDK-based PSF(,QSF,SSF,DSF) plugin
|
|
DSP_DESC= High-quality sample rate conversion support
|
|
MONO2STEREO_DESC= Mono to stereo converter DSP plugin
|
|
CONVERTER_DESC= Plugin for converting files from/to any formats
|
|
VFS_ZIP_DESC= Play files directly from ZIP archives
|
|
PLTBROWSER_DESC= Playlist browser GUI plugin
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
MAD_LIB_DEPENDS= libmad.so:${PORTSDIR}/audio/libmad
|
|
MAD_CONFIGURE_OFF= --disable-mad
|
|
|
|
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
|
|
GUI_IMPLIES= CONVERTER
|
|
|
|
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
|
|
|
|
ART_LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl \
|
|
libImlib2.so:${PORTSDIR}/graphics/imlib2
|
|
ART_USES= jpeg
|
|
ART_CONFIGURE_OFF= --disable-artwork --disable-artwork-imlib2
|
|
ART_IMPLIES= VFS
|
|
|
|
SUPEREQ_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
|
|
|
|
ADPLUG_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
|
|
|
|
WAVPACK_LIB_DEPENDS= libwavpack.so:${PORTSDIR}/audio/wavpack
|
|
WAVPACK_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
|
|
|
|
WILDMIDI_RUN_DEPENDS= ${LOCALBASE}/share/freepats/crude.cfg:${PORTSDIR}/audio/freepats
|
|
WILDMIDI_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
|
|
|
|
CONVERTER_CONFIGURE_OFF= --disable-converter
|
|
|
|
VFS_ZIP_LIB_DEPENDS= libzip.so:${PORTSDIR}/archivers/libzip
|
|
VFS_ZIP_CONFIGURE_OFF= --disable-vfs-zip
|
|
|
|
ALAC_CONFIGURE_OFF= --disable-alac
|
|
|
|
PLTBROWSER_CONFIGURE_OFF= --disable-pltbrowser
|
|
|
|
WMA_CONFIGURE_OFF= --disable-wma
|
|
|
|
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' \
|
|
-e '/HAVE_OGG" = "yes"/ {n; n; /HAVE_VORBISPLUGIN=yes/d;}' \
|
|
${WRKSRC}/configure
|
|
# Fix build with libzip-1.0
|
|
@${REINPLACE_CMD} 's,zip_file_t,zip_file_DB,g' \
|
|
${WRKSRC}/plugins/vfs_zip/vfs_zip.c
|
|
|
|
.include <bsd.port.mk>
|