blob: 6474d74521967862876c93db4a469e8c9f3c82ca (
plain) (
blame)
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
|
# 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= 0
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)
|