Changeset View
Changeset View
Standalone View
Standalone View
multimedia/webcamoid/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= webcamoid | PORTNAME= webcamoid | ||||
DISTVERSION= 8.1.0 | DISTVERSION= 8.1.0 | ||||
PORTREVISION= 1 | |||||
CATEGORIES= multimedia | CATEGORIES= multimedia | ||||
MAINTAINER= yuri@FreeBSD.org | MAINTAINER= yuri@FreeBSD.org | ||||
COMMENT= Full featured webcam suite | COMMENT= Full featured webcam suite | ||||
LICENSE= GPLv3 | LICENSE= GPLv3 | ||||
LICENSE_FILE= ${WRKSRC}/COPYING | LICENSE_FILE= ${WRKSRC}/COPYING | ||||
LIB_DEPENDS= libasound.so:audio/alsa-lib \ | LIB_DEPENDS= libasound.so:audio/alsa-lib \ | ||||
libavcodec.so:multimedia/ffmpeg \ | libavcodec.so:multimedia/ffmpeg \ | ||||
libjack.so:audio/jack \ | libjack.so:audio/jack \ | ||||
libpulse.so:audio/pulseaudio \ | libpulse.so:audio/pulseaudio \ | ||||
libv4l2.so:multimedia/libv4l | libv4l2.so:multimedia/libv4l | ||||
USES= pkgconfig qmake | USES= pkgconfig qmake | ||||
USE_GITHUB= yes | USE_GITHUB= yes | ||||
USE_GNOME= glib20 | USE_GNOME= glib20 | ||||
USE_GSTREAMER1= yes | USE_GSTREAMER1= yes | ||||
USE_GL= gl | USE_GL= gl | ||||
USE_QT5= concurrent core gui multimedia network opengl qml quick svg widgets buildtools_build | USE_QT5= concurrent core gui multimedia network opengl qml quick svg widgets buildtools_build | ||||
MAKE_ENV= NOOSS=1 # NOOSS is because the OSS module attempts to use kevent on OSS devices, which is broken in the base | MAKE_ENV= NOOSS=1 # NOOSS is because the OSS module attempts to use kevent on OSS devices, which is broken in the base | ||||
QMAKE_ARGS= INSTALLQMLDIR=${QT_QMLDIR} \ | QMAKE_ARGS= INSTALLQMLDIR=${QT_QMLDIR} \ | ||||
MANDIR=${PREFIX}/man | MANDIR=${PREFIX}/man | ||||
# Workaround for the crash when built with clang that the upstream author says is a bug in clang | |||||
USE_GCC= 6.0+ | |||||
# Workaround for Bug#224137: devel/qt5-qmake: Doesn't use the right compiler in case USE_GCC is selected | |||||
BINARY_ALIAS= g++=${CXX} | |||||
adamw: This will break if `${CXX}` has a space in it. Can this be accomplished with a `REINPLACE_CMD`… | |||||
yuriAuthorUnsubmitted Done Inline ActionsThis, unfortunately, can't be accomplished with REINPLACE_CMD because the problem is in the qmake5 port. Bare g++ occurs there a lot, and one or some of such occurrences get into the command lines, and here we need g++6 in this case. On the other hand, ${CXX} isn't supposed to have spaces in it on UNIX. A lot of other things will break too in such case. yuri: This, unfortunately, can't be accomplished with `REINPLACE_CMD` because the problem is in the… | |||||
adamwUnsubmitted Not Done Inline ActionsFair enough! adamw: Fair enough! | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> | ||||
Done Inline ActionsBINARY_ALIAS= g++=${CXX} mat: BINARY_ALIAS= g++=${CXX} | |||||
Done Inline ActionsThanks for this suggestion! yuri: Thanks for this suggestion! |
This will break if ${CXX} has a space in it. Can this be accomplished with a REINPLACE_CMD instead, or does it need to be a BINARY_ALIAS?