freebsd-ports/audio/deadbeef/Makefile

214 lines
6.4 KiB
Makefile
Raw Normal View History

# Created by: Veniamin Gvozdikov <vg@FreeBSD.org>
# $FreeBSD$
PORTNAME= deadbeef
2014-07-30 19:51:18 +02:00
PORTVERSION= 0.6.2
CATEGORIES= audio
2014-07-30 19:51:18 +02:00
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}${PKGNAMESUFFIX}
2014-08-02 08:40:00 +02:00
PKGNAMESUFFIX= -rc5
2014-07-30 19:51:18 +02:00
DISTNAME= ${PORTNAME}-${PORTVERSION}${PKGNAMESUFFIX}
MAINTAINER= vg@FreeBSD.org
COMMENT= Ultimate music player for Unix-like systems
2014-07-30 19:51:18 +02:00
LICENSE= GPLv2 LGPL21
LICENSE_COMB= dual
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
2014-07-30 19:51:18 +02:00
CONFIGURE_ARGS= --disable-alsa --disable-nullout --disable-gtk3
CPPFLAGS+= -I../dumb/dumb-kode54/include -I../../plugins/libmp4ff -I../../plugins/gme/game-music-emu-0.6pre -I${LOCALBASE}/include
Support LIBS like LDFLAGS. - Add LIBS="${LIBS}" to MAKE_ENV and CONFIGURE_ENV. - Add an option helper for LIBS. - Adjust all ports that already use LIBS. Also remove references to PTHREAD_CFLAGS and PTHREAD_LIBS while here. - Some ports did not support having a LIBS environment variable and required additional patches. Somewhat simplified a linker command line looks like: ${CC} ${src_LDFLAGS} ${LDFLAGS} ${src_LIBS} ${LIBS} where src_LDFLAGS and src_LIBS are controlled by upstream and LDFLAGS and LIBS can be controlled by us. If possible -L and -l flags need to be added to LIBS to make sure they appear after any -L and -l flags set by upstream. Many ports currently add -L${LOCALBASE}/lib to LDFLAGS but this may appear too early on the command line causing installed libraries to be linked in instead of freshly built ones. Additional changes: benchmarks/netio: Replace WITH_IPV6 with an IPV6 option. comms/gnokii: Replace some patches with USES=pathfix. Also remove -fPIC. graphics/gimageview: USES=libtool and install desktop file in DESKTOPDIR. graphics/visionworkbench: Remove FreeBSD 7 support. multimedia/libmovtar: New LIB_DEPENDS syntax. multimedia/opencinematools: Use standard do-build. net/siproxd: USES=libtool:keepla (port actually needs .la files for plugins) net-mgmt/nagios: Remove -fPIC. net-mgmt/nagios4: Remove -fPIC. print/cups-base: Only add -lssp_nonshared on i386 and OSVERSION < 1000036. security/p11-kit: Replace PTHREAD_LIBS in CONFIGURE_ENV with ac_cv_func_pthread_mutexattr_init=no in CONFIGURE_ARGS. This skips a test in configure that falsely detects pthread_mutexattr_init in our libc. sysutils/dar: Fix iconv detection. x11/rxvt-unicode: Remove -lstdc++ and patch configure to remove a FreeBSD hack and use $CXX as linker as on other platforms. PR: 190592 Exp-run by: antoine Approved by: portmgr (antoine)
2014-06-11 16:49:59 +02:00
LIBS+= -L${LOCALBASE}/lib -lexecinfo -lintl
WANT_GNOME= yes
INSTALLS_ICONS= yes
2013-05-07 08:45:39 +02:00
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 \
2014-07-30 19:51:18 +02:00
MMS SHN AO SHELLEXEC NLS M3U PSF ADP DSP MONO2STEREO CONVERTER VFS_ZIP \
ALAC PLTBROWSER WMA
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 \
2014-07-30 19:51:18 +02:00
HOTKEYS ALAC PLTBROWSER WMA
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
2014-07-30 19:51:18 +02:00
ALAC_DESC= ALAC plugin
PLTBROWSER_DESC= Playlist browser gui plugin
WMA_DESC= WMA plugin
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
2014-07-30 19:51:18 +02:00
ALAC_CONFIGURE_OFF= --disable-alac
PLTBROWSER_CONFIGURE_OFF= --disable-pltbrowser
WMA_CONFIGURE_OFF= --disable-wma
.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>