1 | # -*- 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 |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup conflicts_build 1.0 |
---|
5 | |
---|
6 | name libmovit |
---|
7 | version 1.5.0 |
---|
8 | |
---|
9 | checksums rmd160 970459c810f9053842bdf91b219884a500a90ee6 \ |
---|
10 | sha256 4d595a20b7d836aca10b362bb2003ed958b337d643bb93f4973bc07e8bbf90e7 |
---|
11 | |
---|
12 | categories multimedia |
---|
13 | platforms darwin linux |
---|
14 | license GPL-2+ |
---|
15 | maintainers gmail.com:rjvbertin openmaintainer |
---|
16 | |
---|
17 | description Modern Video Toolkit |
---|
18 | long_description Movit is the Modern Video Toolkit. It aims to be a high-quality, \ |
---|
19 | high-performance, open-source library for GPU-accelerated video filters. |
---|
20 | homepage https://movit.sesse.net/ |
---|
21 | master_sites https://movit.sesse.net |
---|
22 | distname movit-${version} |
---|
23 | |
---|
24 | installs_libs yes |
---|
25 | |
---|
26 | depends_lib-append port:eigen3 \ |
---|
27 | port:libpng |
---|
28 | |
---|
29 | platform darwin { |
---|
30 | # the current port:gtest is out-of-date, doesn't install everything required |
---|
31 | # and it will thus break our build. |
---|
32 | conflicts_build-append \ |
---|
33 | gtest |
---|
34 | depends_lib-append \ |
---|
35 | port:fftw-3 \ |
---|
36 | port:libepoxy \ |
---|
37 | port:libsdl2 \ |
---|
38 | port:libsdl2_image |
---|
39 | post-extract { |
---|
40 | file delete -force ${worksrcpath}/libtool |
---|
41 | } |
---|
42 | |
---|
43 | patchfiles-append \ |
---|
44 | patch-nolibrt.diff \ |
---|
45 | patch-no-features_h.diff \ |
---|
46 | patch-notests.diff |
---|
47 | |
---|
48 | use_autoreconf yes |
---|
49 | autoreconf.args -fvi |
---|
50 | } |
---|
51 | platform linux { |
---|
52 | configure.env-append \ |
---|
53 | PKG_CONFIG=${prefix}/bin/pkg-config |
---|
54 | } |
---|
55 | |
---|
56 | |
---|
57 | post-patch { |
---|
58 | reinplace "s|\"\.\"|\"${prefix}/share/movit\"|g" ${worksrcpath}/demo.cpp |
---|
59 | } |
---|
60 | |
---|
61 | |
---|
62 | post-destroot { |
---|
63 | xinstall -m 755 ${worksrcpath}/vs-color.130.vert ${destroot}${prefix}/share/movit/ |
---|
64 | xinstall -m 755 ${worksrcpath}/vs-color.150.vert ${destroot}${prefix}/share/movit/ |
---|
65 | xinstall -m 755 ${worksrcpath}/color.130.frag ${destroot}${prefix}/share/movit/ |
---|
66 | xinstall -m 755 ${worksrcpath}/color.150.frag ${destroot}${prefix}/share/movit/ |
---|
67 | xinstall -m 755 ${worksrcpath}/.libs/demo ${destroot}${prefix}/bin/movit_demo |
---|
68 | } |
---|
69 | |
---|
70 | livecheck.regex "movit-(\\d+(?:\\.\\d+)*)${extract.suffix}" |
---|