# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 PortSystem 1.0 PortGroup conflicts_build 1.0 name libmovit version 1.5.3 categories multimedia platforms darwin linux license GPL-2+ maintainers {gmail.com:rjvbertin @RJVB} openmaintainer description Modern Video Toolkit - open-source library for GPU-accelerated video filters long_description Movit is the Modern Video Toolkit. It aims to be a high-quality, \ high-performance, open-source library for GPU-accelerated video filters. homepage https://movit.sesse.net master_sites ${homepage} distname movit-${version} checksums rmd160 ce29a03233672ada255400a1041381a89acd3b6a \ sha256 ead191d717dbefbe914260ed0335cf04a7dfc6fde8f23293c5ca7f88e45ace81 depends_lib-append port:eigen3 \ port:libpng platform darwin { # the current port:gtest is out-of-date, doesn't install everything required # and it will thus break our build. conflicts_build-append \ gtest depends_lib-append \ port:fftw-3 \ port:libepoxy \ port:libsdl2 \ port:libsdl2_image post-extract { file delete -force ${worksrcpath}/libtool } patchfiles-append \ patch-nolibrt.diff \ patch-notests.diff use_autoreconf yes autoreconf.args -fvi } platform linux { configure.env-append \ PKG_CONFIG=${prefix}/bin/pkg-config } post-destroot { delete ${destroot}${prefix}/lib/libmovit.a xinstall -m 644 ${worksrcpath}/vs-color.130.vert ${destroot}${prefix}/share/movit/ xinstall -m 644 ${worksrcpath}/vs-color.150.vert ${destroot}${prefix}/share/movit/ xinstall -m 644 ${worksrcpath}/color.130.frag ${destroot}${prefix}/share/movit/ xinstall -m 644 ${worksrcpath}/color.150.frag ${destroot}${prefix}/share/movit/ } livecheck.regex "movit-(\\d+(?:\\.\\d+)*)${extract.suffix}" variant installdemo description "Install Demo Application" { patchfiles-append \ patch-no-features_h.diff post-patch { reinplace "s|\"\.\"|\"${prefix}/share/movit/\"|g" ${worksrcpath}/demo.cpp reinplace "s|\"blg_wheels_woman_1.jpg\"|\"/Users/Shared/blg_wheels_woman_1.jpg\"|g" ${worksrcpath}/demo.cpp } post-destroot { xinstall -m 755 ${worksrcpath}/.libs/demo ${destroot}${prefix}/bin/movit_demo } notes { ***** To run the movit_demo applications, obtain the image ***** "http://home.samfundet.no/~sesse/blg_wheels_woman_1.jpg" ***** or "https://digitalfilms.files.wordpress.com/2010/03/blg_wheels_woman_1.jpg" ***** and place as "/Users/Shared/blg_wheels_woman_1.jpg" ***** The demo program generates a number of working files, ***** so I suggest you run it from within a folder you can delete. } }