-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Portfile
88 lines (68 loc) · 3.03 KB
/
Portfile
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# -*- 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 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-no-features_h.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" {
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.
}
}