summaryrefslogtreecommitdiffstats
path: root/multimedia/audacious-plugins/Makefile
blob: 444f81530dbe1ab4876ffd5665d63e3c58a1ebbc (plain)
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
# Created by: Zastupov Stepan [RedChrom] <redchrom@mail.ru>
# $FreeBSD$

PORTNAME=	audacious-plugins
PORTVERSION=	3.8.2
PORTREVISION=	5
CATEGORIES=	multimedia audio
MASTER_SITES=	http://distfiles.audacious-media-player.org/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Plugins needed for audacious

LICENSE=	GPLv3

BUILD_DEPENDS=	audacious:multimedia/audacious
LIB_DEPENDS=	libdbus-glib-1.so:devel/dbus-glib \
	libdbus-1.so:devel/dbus \
	libfontconfig.so:x11-fonts/fontconfig \
	libfreetype.so:print/freetype2
RUN_DEPENDS=	audacious:multimedia/audacious

CONFLICTS_INSTALL=	audacious-plugins-gtk3-3.*

GNU_CONFIGURE=	yes
USES=		compiler:c++11-lib execinfo gettext-tools gmake iconv \
	localbase pkgconfig tar:bzip2
USE_LDCONFIG=	yes
USE_GNOME=	gtk20 glib20 libxml2 cairo gdkpixbuf2
USE_XORG=	x11

CONFIGURE_ARGS+=--disable-console --disable-sndio --disable-soxr \
	--enable-gnomeshortcuts \
	--enable-gtk --enable-filewriter --enable-hotkey

OPTIONS_DEFINE=	AAC ALSA AMIDI AOSD BS2B CDDA CUE FFMPEG \
		FLAC JACK LAME LIRC MP3 MMS MODPLUG MPRIS NEON NLS NOTIFY \
		OPENGL OSS PULSEAUDIO SAMPLERATE SCROBBLER SDL SID SNDFILE \
		SPEEDPITCH VORBIS WAVPACK
OPTIONS_DEFAULT=	AAC AOSD CDDA CUE FFMPEG FLAC MP3 \
		MMS NEON NLS NOTIFY OSS SCROBBLER VORBIS WAVPACK

AAC_LIB_DEPENDS=	libfaad.so:audio/faad
AAC_CONFIGURE_OFF=	--disable-aac
ALSA_LIB_DEPENDS=	libasound.so:audio/alsa-lib
ALSA_CONFIGURE_OFF=	--disable-alsa
AMIDI_LIB_DEPENDS=	libfluidsynth.so:audio/fluidsynth
AMIDI_CONFIGURE_OFF=	--disable-amidiplug
AOSD_USE=	gnome=pango
AOSD_USE=	xorg=xrender
AOSD_LIB_DEPENDS=	libXcomposite.so:x11/libXcomposite
AOSD_CONFIGURE_ENABLE=	aosd
BS2B_LIB_DEPENDS=	libbs2b.so:audio/libbs2b
BS2B_CONFIGURE_OFF=	--disable-bs2b
CDDA_LIB_DEPENDS=	libcdio_cdda.so:sysutils/libcdio-paranoia \
	libcddb.so:audio/libcddb \
	libcdio.so:sysutils/libcdio
CDDA_CONFIGURE_OFF=	--disable-cdaudio
CUE_LIB_DEPENDS=	libcue.so:textproc/libcue
CUE_CONFIGURE_OFF=	--disable-cue
FFMPEG_LIB_DEPENDS=	libavcodec.so:multimedia/ffmpeg
FFMPEG_CONFIGURE_WITH=	ffmpeg=ffmpeg
FLAC_LIB_DEPENDS=	libFLAC.so:audio/flac
FLAC_CONFIGURE_ON=	--enable-flac --enable-filewriter
FLAC_CONFIGURE_OFF=	--disable-flac --disable-filewriter
JACK_LIB_DEPENDS=	libjack.so:audio/jack \
	libsamplerate.so:audio/libsamplerate
JACK_CONFIGURE_OFF=	--disable-jack
LAME_LIB_DEPENDS=	libmp3lame.so:audio/lame
LAME_CONFIGURE_OFF=	--disable-filewriter_mp3
LIRC_LIB_DEPENDS=	liblirc_client.so:comms/lirc
LIRC_CONFIGURE_OFF=	--disable-lirc
MP3_LIB_DEPENDS=	libmpg123.so:audio/mpg123
MP3_CONFIGURE_OFF=	--disable-mp3
MMS_LIB_DEPENDS=	libmms.so:net/libmms
MMS_CONFIGURE_OFF=	--disable-mms
MODPLUG_LIB_DEPENDS=	libmodplug.so:audio/libmodplug
MODPLUG_CONFIGURE_OFF=	--disable-modplug
MPRIS_CONFIGURE_ENABLE=	mpris2
NEON_LIB_DEPENDS=	libneon.so:www/neon
NEON_CONFIGURE_OFF=	--disable-neon
NLS_USES=	gettext-runtime
NLS_CONFIGURE_OFF=	--disable-nls
NLS_EXTRA_PATCHES_OFF=	${FILESDIR}/extra-patch-Makefile
NOTIFY_LIB_DEPENDS=	libnotify.so:devel/libnotify
NOTIFY_CONFIGURE_ENABLE=	notify
OPENGL_USE=	xorg=x11 gl=gl
OPENGL_CONFIGURE_ENABLE=	glspectrum
OSS_CONFIGURE_ENABLE=	oss4
PULSEAUDIO_LIB_DEPENDS=	libpulse-mainloop-glib.so:audio/pulseaudio
PULSEAUDIO_CONFIGURE_OFF=	--disable-pulse
SAMPLERATE_LIB_DEPENDS=	libsamplerate.so:audio/libsamplerate
SAMPLERATE_CONFIGURE_OFF=	--disable-resample
SCROBBLER_LIB_DEPENDS=	libcurl.so:ftp/curl
SCROBBLER_CONFIGURE_OFF=	--disable-scrobbler2
SDL_LIB_DEPENDS=	libSDL2.so:devel/sdl20
SDL_CONFIGURE_ON=	--enable-sdlout --with-libsdl=2
SDL_CONFIGURE_OFF=	--disable-sdlout
SID_LIB_DEPENDS=	libsidplayfp.so:audio/libsidplayfp
SID_CONFIGURE_OFF=	--disable-sid
SNDFILE_LIB_DEPENDS=	libsndfile.so:audio/libsndfile
SNDFILE_CONFIGURE_OFF=	--disable-sndfile
SPEEDPITCH_CONFIGURE_OFF=	--disable-speedpitch
SPEEDPITCH_IMPLIES=	SAMPLERATE
VORBIS_LIB_DEPENDS=	libvorbis.so:audio/libvorbis \
	libogg.so:audio/libogg
VORBIS_CONFIGURE_ENABLE=	vorbis
WAVPACK_LIB_DEPENDS=	libwavpack.so:audio/wavpack
WAVPACK_CONFIGURE_OFF=	--disable-wavpack
OPTIONS_SUB=	yes

AMIDI_DESC=	Amidi decoder
AOSD_DESC=	Audacious OSD
BS2B_DESC=	BS2B effect
SCROBBLER_DESC=	Scrobbler decoder
SID_DESC=	Sound chip emulator of Commodore
NEON_DESC=	Neon plugin
SPEEDPITCH_DESC=Speed and Pitch plugin
MPRIS_DESC=	NPRIS plugin

post-patch:
	${REINPLACE_CMD} -e 's| $${MFLAGS}||g' \
		${WRKSRC}/buildsys.mk.in

post-install:
	@${FIND} ${STAGEDIR}${PREFIX}/lib/audacious/ -name "*.so" \
		-exec ${STRIP_CMD} {} \;

.include <bsd.port.mk>
OpenPOWER on IntegriCloud