freebsd-ports/graphics/frei0r/Makefile
Jan Beich d764059958 graphics/opencv: back out r423216 and r423063 (replaying r423316)
Renaming didn't help to unblock 3.x progress as co-existence with 2.x
was no less complex than simply fixing consumers. This commit also
restores directory-level history accidentally lost via git-svn.

PR:		210505
Pointy hat to:	jbeich (should've discussed first)
2017-04-14 05:30:25 +00:00

67 lines
1.6 KiB
Makefile

# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$
PORTNAME= frei0r
PORTVERSION= 1.5.0
DISTVERSIONPREFIX= plugins-
CATEGORIES= graphics
MASTER_SITES?= https://files.dyne.org/frei0r/releases/
MAINTAINER= jhale@FreeBSD.org
COMMENT?= Minimalistic plugin API for video effects
.if !defined(BUILDING_FREI0R_METAPORT)
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USES= cmake:outsource pkgconfig
.if defined(BUILDING_FREI0R_OPENCV) && defined(BUILDING_FREI0R_GAVL)
IGNORE= cannot build OpenCV and gavl plugins simultaneously
.endif
.if defined(BUILDING_FREI0R_OPENCV) || defined(BUILDING_FREI0R_GAVL)
EXTRA_PATCHES= ${PATCHDIR}/extra-patch-frei0r-plugins
USES+= localbase
.endif
.if defined(BUILDING_FREI0R_OPENCV)
PORTREVISION= 2
COMMENT= Frei0r OpenCV plugins
PKGNAMESUFFIX= -plugins-opencv
LIB_DEPENDS+= libopencv_legacy.so:graphics/opencv
FREI0R_PLUGINS= facebl0r facedetect
CMAKE_ARGS+= -DWITHOUT_OPENCV:BOOL=OFF \
-DWITHOUT_GAVL:BOOL=ON
.elif defined(BUILDING_FREI0R_GAVL)
PORTREVISION= 0
COMMENT= Frei0r gavl plugins
PKGNAMESUFFIX= -plugins-gavl
LIB_DEPENDS+= libgavl.so:multimedia/gavl
FREI0R_PLUGINS= rgbparade scale0tilt vectorscope
CMAKE_ARGS+= -DWITHOUT_OPENCV:BOOL=ON \
-DWITHOUT_GAVL:BOOL=OFF
.else
EXTRA_PATCHES= ${PATCHDIR}/extra-patch-CMakeLists.txt
USE_GNOME= cairo
CMAKE_ARGS+= -DWITHOUT_OPENCV:BOOL=ON \
-DWITHOUT_GAVL:BOOL=ON
.endif # !defined(BUILDING_FREI0R_OPENCV) && !defined(BUILDING_FREI0R_GAVL)
.if defined(FREI0R_PLUGINS)
PLIST= ${WRKSRC}/PLIST
. for FILE in ${FREI0R_PLUGINS}
PLIST_FILES+= lib/frei0r-1/${FILE}.so
. endfor
.endif
.include <bsd.port.mk>
.endif # !defined(BUILDING_FREI0R_METAPORT)