freebsd-ports/multimedia/audacious-plugins/Makefile

392 lines
10 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: audacious
# Date created: 2006-01-01
# Whom: Zastupov Stepan [RedChrom] <redchrom@mail.ru>
#
# $FreeBSD$
#
PORTNAME= audacious-plugins
2010-10-17 12:08:54 +02:00
PORTVERSION= 2.4.0
CATEGORIES= multimedia audio
2008-02-28 06:41:17 +01:00
MASTER_SITES= http://distfiles.atheme.org/
2007-03-03 17:40:18 +01:00
EXTRACT_SUFX= .tgz
MAINTAINER= oliver@FreeBSD.org
COMMENT= Plugins needed for audacious
BUILD_DEPENDS= audacious2:${PORTSDIR}/multimedia/audacious
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_LDCONFIG= yes
2007-06-11 21:40:37 +02:00
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib" \
CFLAGS="-I${LOCALBASE}/include" \
CPP=${CPP}
2010-10-17 12:08:54 +02:00
CONFIGURE_ARGS= --disable-evdevplug --disable-alsa \
2008-02-28 06:41:17 +01:00
--disable-pulse --disable-projectm --disable-projectm-1.0
2007-03-03 17:40:18 +01:00
WANT_GNOME= yes
2008-02-28 06:41:17 +01:00
WANT_EFL= yes
2007-03-03 17:40:18 +01:00
WANT_SDL= yes
PORTDOCS= AUTHORS
2007-03-03 17:40:18 +01:00
# no ports for:
# PULSE "Enable PulseAudio output plugin" on \
# COREAUDIO "Enable CoreAudio output plugin" on \
# PROJECTM "Enable projectM vis plugin" on \
2007-03-03 17:40:18 +01:00
OPTIONS= DBUS "Enable dbus support" on \
2010-10-17 12:08:54 +02:00
CUE "Enable CUE support" on \
2008-02-28 06:41:17 +01:00
ESOUND "Enable Esound output output" off \
2007-03-03 17:40:18 +01:00
MP3 "Enable mp3 plugin" on \
ROCKLIGHT "Enable Rocklight vis plugin" on \
LIRC "Enable LIRC plugin" off \
STATUSICON "Enable X11 Status Icon plugin" on \
AOSD "Enable X11 Audacious OSD plugin" on \
2008-02-28 06:41:17 +01:00
AOSDXCOMP "Enable X11 Audacious OSD X Composite Support" on \
2007-03-03 17:40:18 +01:00
ADPLUG "Enable AdPlug plugin" off \
VORBIS "Enable Ogg Vorbis input plugin" off \
FLAC "Enable FLAC input plugin" off \
2010-10-17 12:08:54 +02:00
FFAUDIO "Enable FFAUDIO input plugin" off \
2007-03-03 17:40:18 +01:00
WAVPACK "Enable WavPack input plugin" off \
AAC "Enable aac plugin" on \
SNDFILE "Enable sndfile extensions" off \
MODPLUG "Enable ModPlug plugin" off \
JACK "Enable jack output plugin" off \
SID "Enable sid input plugin" off \
OSS "Enable OSS output plugin" on \
OSS4 "Enable OSS4 output plugin" off \
2008-02-28 06:41:17 +01:00
CDAUDIO "Enable cdaudio-ng input plugin" on \
NEON "Enable neon (HTTP) support" on \
2007-03-03 17:40:18 +01:00
MMS "Enable mms support" off \
2008-02-28 06:41:17 +01:00
MTP "Enable MTP upload support" off \
PARANORMAL "Enable paranormal vis plugin" on \
2007-03-03 17:40:18 +01:00
GNOME "Build with gnomevfs/gconf support" off \
NLS "Native Language Support" on \
SSE2 "Enable SSE2 support" on \
RESAMPLE "Enable resample support" off \
AMIDI "Enable amidi support" off
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_DBUS)
LIB_DEPENDS+= dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib
CONFIGURE_ARGS+=--enable-dbus --enable-gnomeshortcuts
PLIST_SUB+= DBUS=""
.else
CONFIGURE_ARGS+=--disable-dbus --disable-gnomeshortcuts
PLIST_SUB+= DBUS="@comment "
.endif
2010-10-17 12:08:54 +02:00
.if !defined(WITHOUT_CUE)
LIB_DEPENDS+= cue.1:${PORTSDIR}/textproc/libcue
CONFIGURE_ARGS+=--enable-cue
PLIST_SUB+= CUEPLUGIN=""
.else
CONFIGURE_ARGS+=--disable-cue
PLIST_SUB+= CUEPLUGIN="@comment "
.endif
2007-03-03 17:40:18 +01:00
.if defined(WITH_ESOUND)
USE_GNOME+= esound
CONFIGURE_ARGS+=--enable-esd
PLIST_SUB+= ESDPLUGIN=""
.if defined(PKGNAMESUFFIX)
PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-esound
.else
PKGNAMESUFFIX= -esound
.endif
.else
CONFIGURE_ARGS+=--disable-esd
PLIST_SUB+= ESDPLUGIN="@comment "
.endif
.if !defined(WITHOUT_MP3)
LIB_DEPENDS+= mad.2:${PORTSDIR}/audio/libmad
CONFIGURE_ARGS+=--enable-mp3
2007-03-03 17:40:18 +01:00
PLIST_SUB+= MP3PLUGIN=""
.else
CONFIGURE_ARGS+=--disable-mp3
2007-03-03 17:40:18 +01:00
PLIST_SUB+= MP3PLUGIN="@comment "
.endif
.if !defined(WITHOUT_ROCKLIGHT)
PLIST_SUB+= ROCKLIGHTPLUGIN=""
CONFIGURE_ARGS+=--enable-rocklight
.else
CONFIGURE_ARGS+=--disable-rocklight
PLIST_SUB+= ROCKLIGHTPLUGIN="@comment "
.endif
.if defined(WITH_LIRC)
2007-03-03 17:40:18 +01:00
LIB_DEPENDS+= lirc_client.1:${PORTSDIR}/comms/lirc
CONFIGURE_ARGS+=--enable-lirc
PLIST_SUB+= LIRCPLUGIN=""
.else
CONFIGURE_ARGS+=--disable-lirc
PLIST_SUB+= LIRCPLUGIN="@comment "
.endif
.if !defined(WITHOUT_STATUSICON)
USE_GNOME+= gtk20
CONFIGURE_ARGS+=--enable-statusicon
PLIST_SUB+= STATUSICONPLUGIN=""
.else
CONFIGURE_ARGS+=--disable-statusicon
PLIST_SUB+= STATUSICONPLUGIN="@comment "
.endif
.if !defined(WITHOUT_AOSD)
USE_GNOME+= pango
CONFIGURE_ARGS+=--enable-aosd
PLIST_SUB+= AOSDPLUGIN=""
.else
CONFIGURE_ARGS+=--disable-aosd
PLIST_SUB+= AOSDPLUGIN="@comment "
.endif
2008-02-28 06:41:17 +01:00
.if !defined(WITHOUT_AOSDXCOMP)
LIB_DEPENDS+= Xcomposite.1:${PORTSDIR}/x11/libXcomposite
CONFIGURE_ARGS+=--enable-aosd-xcomp
PLIST_SUB+= AOSDXCOMPPLUGIN=""
.else
CONFIGURE_ARGS+=--disable-aosd-xcomp
PLIST_SUB+= AOSDXCOMPPLUGIN="@comment "
.endif
.if defined(WITH_ADPLUG)
2007-03-03 17:40:18 +01:00
LIB_DEPENDS+= binio.1:${PORTSDIR}/devel/libbinio
CONFIGURE_ARGS+=--enable-adplug
PLIST_SUB+= ADPLUGPLUGIN=""
.else
CONFIGURE_ARGS+=--disable-adplug
PLIST_SUB+= ADPLUGPLUGIN="@comment "
.endif
.if defined(WITH_VORBIS)
LIB_DEPENDS+= vorbis.4:${PORTSDIR}/audio/libvorbis
2008-02-28 06:41:17 +01:00
CONFIGURE_ARGS+=--enable-vorbis
PLIST_SUB+= VORBISPLUGIN=""
.else
2008-02-28 06:41:17 +01:00
CONFIGURE_ARGS+=--disable-vorbis
PLIST_SUB+= VORBISPLUGIN="@comment "
2007-03-03 17:40:18 +01:00
.endif
2008-02-28 06:41:17 +01:00
.if defined(WITH_FLAC)
LIB_DEPENDS+= FLAC.10:${PORTSDIR}/audio/flac
2008-02-28 06:41:17 +01:00
CONFIGURE_ARGS+=--enable-flacng --enable-filewriter_flac
PLIST_SUB+= FLACPLUGIN=""
.else
CONFIGURE_ARGS+=--disable-flacng --disable-filewriter_flac
PLIST_SUB+= FLACPLUGIN="@comment "
.endif
2010-10-17 12:08:54 +02:00
.if defined(WITH_FFAUDIO)
LIB_DEPENDS+= avutil.1:${PORTSDIR}/multimedia/ffmpeg
CONFIGURE_ARGS+=--enable-ffaudio
PLIST_SUB+= FFAUDIOPLUGIN=""
.else
CONFIGURE_ARGS+=--disable-ffaudio
PLIST_SUB+= FFAUDIOPLUGIN="@comment "
.endif
.if defined(WITH_WAVPACK)
LIB_DEPENDS+= wavpack.2:${PORTSDIR}/audio/wavpack
2007-03-03 17:40:18 +01:00
CONFIGURE_ARGS+=--enable-wavpack
PLIST_SUB+= WAVPACKPLUGIN=""
.else
CONFIGURE_ARGS+=--disable-wavpack
PLIST_SUB+= WAVPACKPLUGIN="@comment "
.endif
.if !defined(WITHOUT_AAC)
CONFIGURE_ARGS+=--enable-aac
PLIST_SUB+= AACPLUGIN=""
LIB_DEPENDS+= faad.2:${PORTSDIR}/audio/faad
2007-03-03 17:40:18 +01:00
.else
CONFIGURE_ARGS+=--disable-aac
PLIST_SUB+= AACPLUGIN="@comment "
.endif
.if defined(WITH_SNDFILE)
2007-03-03 17:40:18 +01:00
LIB_DEPENDS+= sndfile.1:${PORTSDIR}/audio/libsndfile
CONFIGURE_ARGS+=--enable-sndfile
PLIST_SUB+= SNDFILEPLUGIN=""
.else
CONFIGURE_ARGS+=--disable-sndfile
PLIST_SUB+= SNDFILEPLUGIN="@comment "
.endif
.if defined(WITH_MODPLUG)
2010-05-28 08:56:46 +02:00
LIB_DEPENDS+= modplug.1:${PORTSDIR}/audio/libmodplug
2007-03-03 17:40:18 +01:00
PLIST_SUB+= MODPLUG=""
CONFIGURE_ARGS+=--enable-modplug
.else
PLIST_SUB+= MODPLUG="@comment "
2007-03-03 17:40:18 +01:00
CONFIGURE_ARGS+=--disable-modplug
.endif
.if defined(WITH_JACK)
2008-02-28 06:41:17 +01:00
LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack \
samplerate.1:${PORTSDIR}/audio/libsamplerate
2007-03-03 17:40:18 +01:00
CONFIGURE_ARGS+=--enable-jack
PLIST_SUB+= JACKPLUGIN=""
.else
2007-03-03 17:40:18 +01:00
CONFIGURE_ARGS+=--disable-jack
PLIST_SUB+= JACKPLUGIN="@comment "
.endif
.if !defined(WITHOUT_OSS)
PLIST_SUB+= OSSPLUGIN=""
CONFIGURE_ARGS+=--enable-oss
.else
PLIST_SUB+= OSSPLUGIN="@comment "
CONFIGURE_ARGS+=--disable-oss
.endif
.if !defined(WITHOUT_OSS4)
BUILD_DEPENDS+= ${LOCALBASE}/lib/oss/include/sys/soundcard.h:${PORTSDIR}/audio/oss
PLIST_SUB+= OSS4PLUGIN=""
CONFIGURE_ARGS+=--enable-oss4
.else
PLIST_SUB+= OSS4PLUGIN="@comment "
CONFIGURE_ARGS+=--disable-oss4
.endif
.if defined(WITH_SID)
LIB_DEPENDS+= sidplay.1:${PORTSDIR}/audio/libsidplay
2007-03-03 17:40:18 +01:00
PLIST_SUB+= SIDPLUGIN=""
CONFIGURE_ARGS+=--enable-sid
.else
PLIST_SUB+= SIDPLUGIN="@comment "
2007-03-03 17:40:18 +01:00
CONFIGURE_ARGS+=--disable-sid
.endif
2008-02-28 06:41:17 +01:00
.if defined(WITH_CDAUDIO)
LIB_DEPENDS+= cdio.12:${PORTSDIR}/sysutils/libcdio \
2008-02-28 06:41:17 +01:00
cddb.4:${PORTSDIR}/audio/libcddb
CONFIGURE_ARGS+=--enable-cdaudio
PLIST_SUB+= CDAUDIOPLUGIN=""
.else
CONFIGURE_ARGS+=--disable-cdaudio
PLIST_SUB+= CDAUDIOPLUGIN="@comment "
.endif
.if defined(WITH_PARANORMAL)
CONFIGURE_ARGS+=--enable-paranormal
PLIST_SUB+= PARANORMALPLUGIN=""
USE_SDL+= sdl
.else
2007-03-03 17:40:18 +01:00
CONFIGURE_ARGS+=--disable-paranormal
PLIST_SUB+= PARANORMALPLUGIN="@comment "
2008-02-28 06:41:17 +01:00
.endif
.if !defined(WITHOUT_NEON)
LIB_DEPENDS+= neon.27:${PORTSDIR}/www/neon29
2008-02-28 06:41:17 +01:00
CONFIGURE_ARGS+=--enable-neon
PLIST_SUB+= NEONPLUGIN=""
.else
CONFIGURE_ARGS+=--disable-neon
PLIST_SUB+= NEONPLUGIN="@comment "
.endif
.if defined(WITH_MMS)
2007-03-03 17:40:18 +01:00
LIB_DEPENDS+= mms.0:${PORTSDIR}/net/libmms
CONFIGURE_ARGS+=--enable-mms
PLIST_SUB+= MMSPLUGIN=""
.else
CONFIGURE_ARGS+=--disable-mms
PLIST_SUB+= MMSPLUGIN="@comment "
.endif
2008-02-28 06:41:17 +01:00
.if defined(WITH_MTP)
2010-05-10 15:07:52 +02:00
LIB_DEPENDS+= mtp.11:${PORTSDIR}/audio/libmtp
2008-02-28 06:41:17 +01:00
CONFIGURE_ARGS+=--enable-mtp_up
PLIST_SUB+= MTPPLUGIN=""
.else
CONFIGURE_ARGS+=--disable-mtp_up
PLIST_SUB+= MTPPLUGIN="@comment "
.endif
2007-03-03 17:40:18 +01:00
.if defined(WITH_GNOME)
USE_GNOME+= gnomevfs2 gconf2
2007-03-03 17:40:18 +01:00
CONFIGURE_ARGS+=--enable-gnome-vfs --enable-gconf
.endif
.if !defined(WITHOUT_SSE2)
CONFIGURE_ARGS+=--disable-sse2
.else
CONFIGURE_ARGS+=--enable-sse2
.endif
.if !defined(WITHOUT_RESAMPLE)
LIB_DEPENDS+= samplerate.1:${PORTSDIR}/audio/libsamplerate
CONFIGURE_ARGS+=--enable-resample
PLIST_SUB+= RESAMPLEPLUGIN=""
.else
CONFIGURE_ARGS+=--disable-resample
PLIST_SUB+= RESAMPLEPLUGIN="@comment "
.endif
2007-03-03 17:40:18 +01:00
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
CONFIGURE_ARGS+=--enable-nls
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
.if defined(WITH_AMIDI)
LIB_DEPENDS+= fluidsynth.4:${PORTSDIR}/audio/fluidsynth
CONFIGURE_ARGS+=--enable-amidiplug --enable-amidiplug-flsyn
PLIST_SUB+= AMIDIPLUGIN=""
.else
CONFIGURE_ARGS+=--disable-amidiplug
PLIST_SUB+= AMIDIPLUGIN="@comment "
.endif
2008-02-28 06:41:17 +01:00
pre-everything::
.if defined(WITH_AUDIOCD) && !exists(${LOCALBASE}/lib/libcdio_cdda.so)
@${ECHO_CMD} ""
@${ECHO_CMD} "Make sure you select the PARANOIA option when installing libcdio!"
@${ECHO_CMD} ""
.endif
2007-06-11 21:40:37 +02:00
post-patch:
2008-02-28 06:41:17 +01:00
@${REINPLACE_CMD} -e 's|$$EGREP|egrep|g; \
s| -ldl||g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|malloc\.h|stdlib\.h|g' \
${WRKSRC}/src/neon/cert_verification.c \
${WRKSRC}/src/usf/memory.c
2010-10-17 12:08:54 +02:00
@${REINPLACE_CMD} -e 's|-ldl||g' \
${WRKSRC}/src/ladspa/Makefile
@${REINPLACE_CMD} -e 's|/usr/lib/|${LOCALBASE}/lib/|g' \
${WRKSRC}/src/oss4/Makefile
2008-02-28 06:41:17 +01:00
pre-configure:
.if defined(WITH_AUDIOCD) && !exists(${LOCALBASE}/lib/libcdio_cdda.so)
@${ECHO_CMD} ""
@${ECHO_CMD} "sysutils/libcdio got not installed with PARANOIA enabled!"
@${ECHO_CMD} "To use the audiocd option you have to install libcdio with"
@${ECHO_CMD} "PARANOIA support! So please reinstall it properly."
@${ECHO_CMD} ""
@exit 1
.endif
2007-06-11 21:40:37 +02:00
post-install:
.if defined(WITH_GNOME)
@${ECHO_MSG} ""
@${ECHO_MSG} "You have installed audacious with gconf support."
@${ECHO_MSG} "ALL PRESETS will be stored in the gconf database."
@${ECHO_MSG} ""
.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>