c3570df406
Split cairo-dependent plugins out into graphics/frei0r-plugins-cairo. Shift pkg-plist and several variables out into the slave ports for easier maintainence, including PORTREVISION to facilitate usage of PORTREVISION bump scripts. Convert "extra" patches into regular patches for easier future maintainence. Ensure optional plugins are the same version as the frei0r base. https://github.com/dyne/frei0r/releases/tag/v2.3.0 PR: 272045 [1] Reported by: Olivier Duchateau <duchateau.olivier@gmail.com> [1]
57 lines
1.3 KiB
Makefile
57 lines
1.3 KiB
Makefile
PORTNAME= frei0r
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= ${FREI0R_VERSION}
|
|
PORTREVISION?= 0
|
|
CATEGORIES= graphics
|
|
|
|
MAINTAINER= jhale@FreeBSD.org
|
|
COMMENT?= Minimalistic plugin API for video effects
|
|
WWW= https://frei0r.dyne.org/
|
|
|
|
LICENSE= GPLv2+
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
USES= cmake compiler:c++11-lang pkgconfig
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= dyne
|
|
|
|
.if defined(SLAVE_PORT)
|
|
RUN_DEPENDS= frei0r>=${FREI0R_VERSION}:graphics/frei0r
|
|
. if ${SLAVE_PORT:tl} == "cairo"
|
|
USES+= gnome
|
|
USE_GNOME+= cairo
|
|
|
|
CMAKE_ON= WITHOUT_GAVL \
|
|
WITHOUT_OPENCV
|
|
CMAKE_OFF= WITHOUT_CAIRO
|
|
. elif ${SLAVE_PORT:tl} == "gavl"
|
|
LIB_DEPENDS+= libgavl.so:multimedia/gavl
|
|
|
|
CMAKE_ON= WITHOUT_CAIRO \
|
|
WITHOUT_OPENCV
|
|
CMAKE_OFF= WITHOUT_GAVL
|
|
. elif ${SLAVE_PORT:tl} == "opencv"
|
|
LIB_DEPENDS+= libopencv_core.so:graphics/opencv
|
|
|
|
CMAKE_ON= WITHOUT_CAIRO \
|
|
WITHOUT_GAVL
|
|
CMAKE_OFF= WITHOUT_OPENCV
|
|
. endif
|
|
.else
|
|
CMAKE_ON= WITHOUT_CAIRO \
|
|
WITHOUT_GAVL \
|
|
WITHOUT_OPENCV
|
|
CMAKE_OFF= BUILD_EXTRA_PLUGINS
|
|
.endif
|
|
|
|
.include "version.mk"
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${CHOSEN_COMPILER_TYPE} == gcc
|
|
# work around regression seen in GCC 10 but not in GCC 9:
|
|
# src/filter/elastic_scale/elastic_scale.cpp:152: error: ISO C++ forbids initialization of member 'm_transformationCalculations'
|
|
CFLAGS+= -Wno-error
|
|
CXXFLAGS+= -Wno-error
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|