summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorRene Ladan <rene@FreeBSD.org>2019-09-14 16:47:24 +0000
committerRene Ladan <rene@FreeBSD.org>2019-09-14 16:47:24 +0000
commit4e58d654dc560c774000847e3bfa148a5a0d6550 (patch)
treee54bedfa99484d6709d0ba5580afa56ea34ef72f /multimedia
parentFix execution interupted by signal detection (diff)
multimedia/lives: make ALSA, Jack, PulseAudio and ProjectM optional.
PR: 237320 Submitted by: vvd
Notes
Notes: svn path=/head/; revision=512036
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/lives/Makefile17
-rw-r--r--multimedia/lives/files/patch-configure.ac41
-rw-r--r--multimedia/lives/pkg-plist2
3 files changed, 48 insertions, 12 deletions
diff --git a/multimedia/lives/Makefile b/multimedia/lives/Makefile
index 881031dcfae7..bd69482d7c65 100644
--- a/multimedia/lives/Makefile
+++ b/multimedia/lives/Makefile
@@ -16,12 +16,8 @@ LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${LOCALBASE}/include/linux/input.h:devel/evdev-proto \
${LOCALBASE}/bin/analyseplugin:audio/ladspa
-LIB_DEPENDS= libasound.so:audio/alsa-lib \
- libjack.so:audio/jack \
- libogg.so:audio/libogg \
- libpulse.so:audio/pulseaudio \
+LIB_DEPENDS= libogg.so:audio/libogg \
liboil-0.3.so:devel/liboil \
- libprojectM.so:graphics/libprojectm \
libvisual-0.4.so:graphics/libvisual04 \
libopencv_calib3d.so:graphics/opencv \
libopencv_core.so:graphics/opencv-core \
@@ -73,19 +69,28 @@ DOC_FILES= AUTHORS BUGS ChangeLog FEATURES GETTING.STARTED README \
lives-plugins/marcos-encoders/README.multi_encoder \
weed-docs/weedspec.txt weed-docs/weedevents.txt
-OPTIONS_DEFINE= DOCS DOXYGEN FREI0R MATROSKA V4L NLS
+OPTIONS_DEFINE= ALSA DOCS DOXYGEN FREI0R JACK MATROSKA V4L NLS PROJECTM PULSEAUDIO
OPTIONS_SUB= yes
+ALSA_VARS_OFF= --disable-alsa
+ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib
DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen
DOXYGEN_CONFIGURE_OFF= --disable-doxygen
FREI0R_BUILD_DEPENDS= frei0r>0:graphics/frei0r
FREI0R_RUN_DEPENDS= frei0r>0:graphics/frei0r
FREI0R_CONFIGURE_ENV_OFF= ac_cv_header_frei0r_h=no
+JACK_VARS_OFF= --disable-jack
+JACK_LIB_DEPENDS= libjack.so:audio/jack
MATROSKA_RUN_DEPENDS= mkvmerge:multimedia/mkvtoolnix
V4L_BUILD_DEPENDS= ${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat
V4L_LIB_DEPENDS= libv4l2.so:multimedia/libv4l
NLS_USES= gettext-tools
NLS_CONFIGURE_OFF= --disable-nls
+PROJECTM_DESC= projectM support
+PROJECTM_VARS_OFF= --disable-projectM
+PROJECTM_LIB_DEPENDS= libprojectM.so:graphics/libprojectm
+PULSEAUDIO_VARS_OFF= --disable-pulse
+PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio
post-patch:
@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} \
diff --git a/multimedia/lives/files/patch-configure.ac b/multimedia/lives/files/patch-configure.ac
index d6e315d21925..a5d325da1604 100644
--- a/multimedia/lives/files/patch-configure.ac
+++ b/multimedia/lives/files/patch-configure.ac
@@ -1,11 +1,8 @@
--- configure.ac.orig 2019-01-08 13:49:30 UTC
+++ configure.ac
-@@ -520,14 +520,16 @@ HAVE_OPENCV=false
+@@ -522,12 +522,14 @@
- dnl check for opencv
-
--PKG_CHECK_MODULES(OPENCV, opencv >= 2.3.1, HAVE_OPENCV=true, HAVE_OPENCV=false)
-+PKG_CHECK_MODULES(OPENCV, opencv >= 2.3.1, HAVE_OPENCV=true, HAVE_OPENCV=false)
+ PKG_CHECK_MODULES(OPENCV, opencv >= 2.3.1, HAVE_OPENCV=true, HAVE_OPENCV=false)
-if test "HAVE_OPENCV" = "true" ; then
-OPENCV_LIBS_ONLY_L = `pkg-config opencv --libs-only-L`
@@ -20,3 +17,37 @@
AM_CONDITIONAL(HAVE_OPENCV,$HAVE_OPENCV)
+@@ -734,16 +736,23 @@
+
+
+ HAVE_ALSA=false
++AC_ARG_ENABLE(alsa, [ --disable-alsa Disable alsa support.] , disable_alsa=yes)
++if test "x$disable_alsa" != "xyes" ; then
+ dnl check for libasound
+ PKG_CHECK_MODULES(ALSA,alsa,HAVE_ALSA=true,HAVE_ALSA=false)
+ AC_SUBST(ALSA_CFLAGS)
+ AC_SUBST(ALSA_LIBS)
++else
++echo not checking for alsa
++fi
+
+ AM_CONDITIONAL(HAVE_ALSA,$HAVE_ALSA)
+
+
+ HAVE_PULSE_AUDIO=false
+ HAVE_PA_STREAM_BEGIN_WRITE=false
++AC_ARG_ENABLE(pulse, [ --disable-pulse Disable pulseaudio support.] , disable_pulse=yes)
++if test "x$disable_pulse" != "xyes" ; then
+ dnl check for pulse-audio
+ PKG_CHECK_MODULES(PULSE,libpulse >= 0.9.14,HAVE_PULSE_AUDIO=true,HAVE_PULSE_AUDIO=false)
+ if test "$HAVE_PULSE_AUDIO" = "true" ; then
+@@ -752,6 +761,9 @@
+
+ AC_SUBST(PULSE_CFLAGS)
+ AC_SUBST(PULSE_LIBS)
++else
++echo not checking for pulse
++fi
+
+ AM_CONDITIONAL(HAVE_PULSE_AUDIO,$HAVE_PULSE_AUDIO)
+ AM_CONDITIONAL(HAVE_PA_STREAM_BEGIN_WRITE,$HAVE_PA_STREAM_BEGIN_WRITE)
diff --git a/multimedia/lives/pkg-plist b/multimedia/lives/pkg-plist
index 0279b634115c..ea29d12ff0e9 100644
--- a/multimedia/lives/pkg-plist
+++ b/multimedia/lives/pkg-plist
@@ -111,7 +111,7 @@ lib/lives/plugins/effects/realtime/weed/onedTV.so
lib/lives/plugins/effects/realtime/weed/palette_test.so
lib/lives/plugins/effects/realtime/weed/plasma.so
lib/lives/plugins/effects/realtime/weed/posterise.so
-lib/lives/plugins/effects/realtime/weed/projectM.so
+%%PROJECTM%%lib/lives/plugins/effects/realtime/weed/projectM.so
lib/lives/plugins/effects/realtime/weed/puretext.so
lib/lives/plugins/effects/realtime/weed/randomiser.so
lib/lives/plugins/effects/realtime/weed/revTV.so