Ticket #54093: Portfile

File Portfile, 2.3 KB (added by RJVB (René Bertin), 7 years ago)
Line 
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
3PortSystem          1.0
4PortGroup           conflicts_build 1.0
5
6name                libmovit
7version             1.5.0
8
9checksums           rmd160  970459c810f9053842bdf91b219884a500a90ee6 \
10                    sha256  4d595a20b7d836aca10b362bb2003ed958b337d643bb93f4973bc07e8bbf90e7
11
12categories          multimedia
13platforms           darwin linux
14license             GPL-2+
15maintainers         gmail.com:rjvbertin openmaintainer
16
17description         Modern Video Toolkit
18long_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.
20homepage            https://movit.sesse.net/
21master_sites        https://movit.sesse.net
22distname            movit-${version}
23
24installs_libs       yes
25
26depends_lib-append  port:eigen3 \
27                    port:libpng
28
29platform 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}
51platform linux {
52    configure.env-append \
53                    PKG_CONFIG=${prefix}/bin/pkg-config
54}
55
56
57post-patch {
58    reinplace "s|\"\.\"|\"${prefix}/share/movit\"|g" ${worksrcpath}/demo.cpp
59}
60
61
62post-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
70livecheck.regex     "movit-(\\d+(?:\\.\\d+)*)${extract.suffix}"