2013-02-18 09:30:25 +01:00
|
|
|
# Created by: Zastupov Stepan [RedChrom] <redchrom@mail.ru>
|
2006-01-04 23:40:12 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2006-12-04 16:51:58 +01:00
|
|
|
PORTNAME= audacious-plugins
|
2020-07-11 14:57:18 +02:00
|
|
|
PORTVERSION= 4.0.5
|
2020-12-16 11:10:26 +01:00
|
|
|
PORTREVISION= 3
|
2006-01-04 23:40:12 +01:00
|
|
|
CATEGORIES= multimedia audio
|
2012-05-06 20:12:11 +02:00
|
|
|
MASTER_SITES= http://distfiles.audacious-media-player.org/
|
2006-01-04 23:40:12 +01:00
|
|
|
|
2020-07-08 22:05:07 +02:00
|
|
|
MAINTAINER= madpilot@FreeBSD.org
|
2006-12-04 16:51:58 +01:00
|
|
|
COMMENT= Plugins needed for audacious
|
2006-01-04 23:40:12 +01:00
|
|
|
|
2018-05-21 11:34:11 +02:00
|
|
|
LICENSE= BSD2CLAUSE
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2014-03-25 17:28:09 +01:00
|
|
|
|
2016-09-22 14:46:36 +02:00
|
|
|
LIB_DEPENDS= libdbus-glib-1.so:devel/dbus-glib \
|
2018-05-21 11:34:11 +02:00
|
|
|
libdbus-1.so:devel/dbus \
|
|
|
|
libfontconfig.so:x11-fonts/fontconfig \
|
2018-09-18 16:50:27 +02:00
|
|
|
libfreetype.so:print/freetype2 \
|
|
|
|
libmpg123.so:audio/mpg123
|
2020-07-08 22:05:07 +02:00
|
|
|
|
|
|
|
FLAVORS= qt5 gtk2
|
|
|
|
FLAVOR?= ${FLAVORS:[1]}
|
2016-09-22 14:46:36 +02:00
|
|
|
|
2018-09-18 16:50:27 +02:00
|
|
|
USES= compiler:c++11-lib gettext-tools gmake gnome iconv \
|
2019-11-06 19:07:22 +01:00
|
|
|
localbase pkgconfig tar:bzip2 xorg
|
2020-07-08 22:05:07 +02:00
|
|
|
USE_GNOME= glib20 libxml2 gdkpixbuf2
|
2016-09-22 14:46:36 +02:00
|
|
|
USE_XORG= x11
|
2015-11-16 18:19:35 +01:00
|
|
|
|
2020-07-08 22:05:07 +02:00
|
|
|
qt5_CONFLICTS_INSTALL= audacious-plugins-gtk2
|
|
|
|
qt5_RUN_DEPENDS= audacious:multimedia/audacious@qt5
|
|
|
|
qt5_BUILD_DEPENDS= audacious:multimedia/audacious@qt5
|
|
|
|
|
|
|
|
gtk2_PKGNAMESUFFIX= -gtk2
|
|
|
|
gtk2_CONFLICTS_INSTALL= audacious-plugins
|
|
|
|
gtk2_RUN_DEPENDS= audacious:multimedia/audacious@gtk2
|
|
|
|
gtk2_BUILD_DEPENDS= audacious:multimedia/audacious@gtk2
|
2018-09-18 16:50:27 +02:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2018-09-18 08:40:32 +02:00
|
|
|
CONFIGURE_ARGS= --disable-console --disable-soxr \
|
2020-07-08 22:05:07 +02:00
|
|
|
--enable-gnomeshortcuts
|
2015-11-16 18:19:35 +01:00
|
|
|
|
2020-07-08 22:05:07 +02:00
|
|
|
.if ${FLAVOR} == qt5
|
|
|
|
CONFIGURE_ARGS+= --enable-qt --disable-gtk
|
|
|
|
USES+= qt:5
|
|
|
|
USE_QT= core gui widgets
|
|
|
|
PLIST_SUB= QT5="" GTK2="@comment "
|
|
|
|
.elif ${FLAVOR} == gtk2
|
|
|
|
CONFIGURE_ARGS+= --disable-qt --enable-gtk --enable-hotkey
|
|
|
|
USE_GNOME+= gtk20 cairo
|
|
|
|
PLIST_SUB= QT5="@comment " GTK2=""
|
|
|
|
.endif
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= AAC AMIDI BS2B CDDA CUE FFMPEG FLAC LAME LIRC \
|
|
|
|
MMS MODPLUG MPRIS NEON NLS NOTIFY SAMPLERATE \
|
2018-09-18 16:50:27 +02:00
|
|
|
SCROBBLER SID SNDFILE SPEEDPITCH VORBIS WAVPACK
|
|
|
|
OPTIONS_MULTI= OUTPUT
|
|
|
|
OPTIONS_MULTI_OUTPUT= ALSA FILEWRITER JACK OSS PULSEAUDIO SDL SNDIO
|
2020-12-16 11:10:26 +01:00
|
|
|
OPTIONS_DEFAULT= AAC CDDA CUE FILEWRITER FFMPEG FLAC MMS MPRIS \
|
|
|
|
NEON NLS NOTIFY OSS PULSEAUDIO SCROBBLER \
|
|
|
|
VORBIS WAVPACK
|
2018-09-18 16:50:27 +02:00
|
|
|
OPTIONS_SUB= yes
|
|
|
|
|
2020-07-08 22:05:07 +02:00
|
|
|
.if ${FLAVOR} == gtk2
|
|
|
|
OPTIONS_DEFINE+= AOSD OPENGL
|
|
|
|
OPTIONS_DEFAULT+= AOSD
|
|
|
|
.endif
|
|
|
|
|
2018-09-18 16:50:27 +02:00
|
|
|
AMIDI_DESC= Amidi decoder
|
|
|
|
AOSD_DESC= Audacious OSD
|
|
|
|
BS2B_DESC= BS2B effect
|
|
|
|
FILEWRITER_DESC=File writer
|
|
|
|
MPRIS_DESC= NPRIS plugin
|
|
|
|
NEON_DESC= Neon plugin
|
|
|
|
SCROBBLER_DESC= Scrobbler decoder
|
|
|
|
SID_DESC= Sound chip emulator of Commodore
|
|
|
|
SPEEDPITCH_DESC=Speed and Pitch plugin
|
2015-11-16 18:19:35 +01:00
|
|
|
|
2016-04-01 16:16:16 +02:00
|
|
|
AAC_LIB_DEPENDS= libfaad.so:audio/faad
|
2018-09-18 16:50:27 +02:00
|
|
|
AAC_CONFIGURE_ENABLE= aac
|
2016-04-01 16:16:16 +02:00
|
|
|
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib
|
2018-09-18 16:50:27 +02:00
|
|
|
ALSA_CONFIGURE_ENABLE= alsa
|
2016-04-01 16:16:16 +02:00
|
|
|
AMIDI_LIB_DEPENDS= libfluidsynth.so:audio/fluidsynth
|
2018-09-18 16:50:27 +02:00
|
|
|
AMIDI_CONFIGURE_ENABLE= amidiplug
|
2019-11-06 19:09:44 +01:00
|
|
|
AOSD_USES= xorg
|
2018-09-18 16:50:27 +02:00
|
|
|
AOSD_USE= gnome=pango xorg=xrender
|
2016-09-22 14:46:36 +02:00
|
|
|
AOSD_LIB_DEPENDS= libXcomposite.so:x11/libXcomposite
|
2015-11-16 18:19:35 +01:00
|
|
|
AOSD_CONFIGURE_ENABLE= aosd
|
2016-04-01 16:16:16 +02:00
|
|
|
BS2B_LIB_DEPENDS= libbs2b.so:audio/libbs2b
|
2018-09-18 16:50:27 +02:00
|
|
|
BS2B_CONFIGURE_ENABLE= bs2b
|
2016-04-01 16:16:16 +02:00
|
|
|
CDDA_LIB_DEPENDS= libcdio_cdda.so:sysutils/libcdio-paranoia \
|
2018-05-21 11:34:11 +02:00
|
|
|
libcddb.so:audio/libcddb \
|
|
|
|
libcdio.so:sysutils/libcdio
|
2018-09-18 16:50:27 +02:00
|
|
|
CDDA_CONFIGURE_ENABLE= cdaudio
|
2016-04-01 16:16:16 +02:00
|
|
|
CUE_LIB_DEPENDS= libcue.so:textproc/libcue
|
2018-09-18 16:50:27 +02:00
|
|
|
CUE_CONFIGURE_ENABLE= cue
|
|
|
|
FILEWRITER_CONFIGURE_ENABLE= filewriter
|
2016-04-01 16:16:16 +02:00
|
|
|
FFMPEG_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg
|
2015-11-16 18:19:35 +01:00
|
|
|
FFMPEG_CONFIGURE_WITH= ffmpeg=ffmpeg
|
2016-04-01 16:16:16 +02:00
|
|
|
FLAC_LIB_DEPENDS= libFLAC.so:audio/flac
|
2018-09-18 16:50:27 +02:00
|
|
|
FLAC_CONFIGURE_ENABLE= flac
|
2016-04-01 16:16:16 +02:00
|
|
|
JACK_LIB_DEPENDS= libjack.so:audio/jack \
|
2018-05-21 11:34:11 +02:00
|
|
|
libsamplerate.so:audio/libsamplerate
|
2018-09-18 16:50:27 +02:00
|
|
|
JACK_CONFIGURE_ENABLE= jack
|
2016-04-01 16:16:16 +02:00
|
|
|
LAME_LIB_DEPENDS= libmp3lame.so:audio/lame
|
2018-09-18 16:50:27 +02:00
|
|
|
LAME_CONFIGURE_ENABLE= filewriter_mp3
|
2016-04-01 16:16:16 +02:00
|
|
|
LIRC_LIB_DEPENDS= liblirc_client.so:comms/lirc
|
2018-09-18 16:50:27 +02:00
|
|
|
LIRC_CONFIGURE_ENABLE= lirc
|
2016-04-01 16:16:16 +02:00
|
|
|
MMS_LIB_DEPENDS= libmms.so:net/libmms
|
2018-09-18 16:50:27 +02:00
|
|
|
MMS_CONFIGURE_ENABLE= mms
|
2016-04-01 16:16:16 +02:00
|
|
|
MODPLUG_LIB_DEPENDS= libmodplug.so:audio/libmodplug
|
2018-09-18 16:50:27 +02:00
|
|
|
MODPLUG_CONFIGURE_ENABLE= modplug
|
2015-11-16 18:19:35 +01:00
|
|
|
MPRIS_CONFIGURE_ENABLE= mpris2
|
2016-04-01 16:16:16 +02:00
|
|
|
NEON_LIB_DEPENDS= libneon.so:www/neon
|
2018-09-18 16:50:27 +02:00
|
|
|
NEON_CONFIGURE_ENABLE= neon
|
2018-05-21 11:34:11 +02:00
|
|
|
NLS_USES= gettext-runtime
|
2018-09-18 16:50:27 +02:00
|
|
|
NLS_CONFIGURE_ENABLE= nls
|
2016-04-01 16:16:16 +02:00
|
|
|
NOTIFY_LIB_DEPENDS= libnotify.so:devel/libnotify
|
2018-09-18 16:50:27 +02:00
|
|
|
NOTIFY_CONFIGURE_ENABLE=notify
|
2019-11-06 19:09:44 +01:00
|
|
|
OPENGL_USES= gl xorg
|
2018-05-21 11:34:11 +02:00
|
|
|
OPENGL_USE= xorg=x11 gl=gl
|
2018-09-18 16:50:27 +02:00
|
|
|
OPENGL_CONFIGURE_ENABLE=glspectrum
|
2015-11-16 18:19:35 +01:00
|
|
|
OSS_CONFIGURE_ENABLE= oss4
|
2016-04-01 16:16:16 +02:00
|
|
|
PULSEAUDIO_LIB_DEPENDS= libpulse-mainloop-glib.so:audio/pulseaudio
|
2018-09-18 16:50:27 +02:00
|
|
|
PULSEAUDIO_CONFIGURE_ENABLE= pulse
|
2016-04-01 16:16:16 +02:00
|
|
|
SAMPLERATE_LIB_DEPENDS= libsamplerate.so:audio/libsamplerate
|
2018-09-18 16:50:27 +02:00
|
|
|
SAMPLERATE_CONFIGURE_ENABLE= resample
|
2016-04-01 16:16:16 +02:00
|
|
|
SCROBBLER_LIB_DEPENDS= libcurl.so:ftp/curl
|
2018-09-18 16:50:27 +02:00
|
|
|
SCROBBLER_CONFIGURE_ENABLE= scrobbler2
|
2015-11-16 18:19:35 +01:00
|
|
|
SDL_CONFIGURE_ON= --enable-sdlout --with-libsdl=2
|
|
|
|
SDL_CONFIGURE_OFF= --disable-sdlout
|
2019-11-14 13:39:42 +01:00
|
|
|
SDL_USES= sdl
|
2019-01-13 17:08:40 +01:00
|
|
|
SDL_USE= SDL=sdl2
|
2016-04-01 16:16:16 +02:00
|
|
|
SID_LIB_DEPENDS= libsidplayfp.so:audio/libsidplayfp
|
2018-09-18 16:50:27 +02:00
|
|
|
SID_CONFIGURE_ENABLE= sid
|
2016-04-01 16:16:16 +02:00
|
|
|
SNDFILE_LIB_DEPENDS= libsndfile.so:audio/libsndfile
|
2018-09-18 16:50:27 +02:00
|
|
|
SNDFILE_CONFIGURE_ENABLE= sndfile
|
2018-09-18 08:40:32 +02:00
|
|
|
SNDIO_LIB_DEPENDS= libsndio.so:audio/sndio
|
|
|
|
SNDIO_CONFIGURE_ENABLE= sndio
|
2018-09-18 16:50:27 +02:00
|
|
|
SPEEDPITCH_CONFIGURE_ENABLE= speedpitch
|
2015-11-16 18:19:35 +01:00
|
|
|
SPEEDPITCH_IMPLIES= SAMPLERATE
|
2016-09-22 14:46:36 +02:00
|
|
|
VORBIS_LIB_DEPENDS= libvorbis.so:audio/libvorbis \
|
2018-05-21 11:34:11 +02:00
|
|
|
libogg.so:audio/libogg
|
2018-09-18 16:50:27 +02:00
|
|
|
VORBIS_CONFIGURE_ENABLE=vorbis
|
2016-04-01 16:16:16 +02:00
|
|
|
WAVPACK_LIB_DEPENDS= libwavpack.so:audio/wavpack
|
2018-09-18 16:50:27 +02:00
|
|
|
WAVPACK_CONFIGURE_ENABLE= wavpack
|
2006-01-07 00:47:05 +01:00
|
|
|
|
2016-09-22 14:46:36 +02:00
|
|
|
post-patch:
|
2018-05-21 11:34:11 +02:00
|
|
|
@${REINPLACE_CMD} -e 's| $${MFLAGS}||g' \
|
2016-09-22 14:46:36 +02:00
|
|
|
${WRKSRC}/buildsys.mk.in
|
2018-05-21 11:34:11 +02:00
|
|
|
@${FIND} ${WRKSRC} -type f -name 'Makefile' \
|
2017-09-30 15:20:55 +02:00
|
|
|
| ${XARGS} ${REINPLACE_CMD} -e 's| -Wno-bool-operation||'
|
2016-09-22 14:46:36 +02:00
|
|
|
|
2018-09-18 16:50:27 +02:00
|
|
|
post-patch-NLS-off:
|
|
|
|
${REINPLACE_CMD} -e 's,po,,' ${WRKSRC}/Makefile
|
|
|
|
|
2006-01-04 23:40:12 +01:00
|
|
|
post-install:
|
2014-03-25 17:28:09 +01:00
|
|
|
@${FIND} ${STAGEDIR}${PREFIX}/lib/audacious/ -name "*.so" \
|
|
|
|
-exec ${STRIP_CMD} {} \;
|
2006-01-04 23:40:12 +01:00
|
|
|
|
2012-12-18 16:55:50 +01:00
|
|
|
.include <bsd.port.mk>
|