/
Portfile
94 lines (72 loc) · 2.98 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
89
90
91
92
93
94
# -*- 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 github 1.0
PortGroup cxx11 1.1
github.setup OpenLightingProject ola 0.10.7
revision 1
categories net comms
platforms darwin
license GPL-2+ LGPL-2.1+
maintainers {pjnewman.co.uk:bugs @peternewman} \
openmaintainer
description An open framework for DMX512 lighting control
long_description The Open Lighting Architecture (OLA) provides a plugin \
framework for distributing DMX512 control signals on \
Mac and Linux. It provides C++ and Python libraries \
which abstract away the underlying DMX over IP protocol \
or DMX interface.
homepage http://www.openlighting.org/ola/
checksums rmd160 1312a43f8db8f211f68cd1ab390eb9c8bf476144 \
sha256 8a65242d95e0622a3553df498e0db323a13e99eeb1accc63a8a2ca8913ab31a0 \
size 2512577
github.tarball_from releases
patch.pre_args -p1
patchfiles patch-protobuf3.diff
depends_build port:pkgconfig
# Required while we're patching ola.m4
use_autoreconf yes
depends_test port:cppunit
# temporary workaround (else configure fails)
depends_build-append \
port:cppunit
depends_lib port:protobuf3-cpp
configure.args --disable-fatal-warnings \
--disable-libftdi \
--disable-http \
--disable-libusb \
--disable-osc
variant python27 description {Enable the Python 2.7 API} {
depends_lib-append port:python27 port:py27-protobuf3
configure.args-append --enable-python-libs
configure.python ${prefix}/bin/python2.7
}
variant rdm_tests requires python27 description {Enable the RDM Tests} {
depends_lib-append port:py27-numpy
configure.args-append --enable-rdm-tests
}
variant http description {Build with embedded web server} {
depends_lib-append port:libmicrohttpd
configure.args-delete --disable-http
}
variant libftdi0 conflicts libftdi1 description {Build with libftdi0 support} {
depends_lib-append port:libftdi0
configure.args-delete --disable-libftdi
}
variant libftdi1 conflicts libftdi0 description {Build with libftdi1 support} {
depends_lib-append port:libftdi1
configure.args-delete --disable-libftdi
}
variant libusb description {Build with libusb support} {
depends_lib-append port:libusb
configure.args-delete --disable-libusb
}
variant osc description {Build with OSC support} {
depends_lib-append port:liblo
configure.args-delete --disable-osc
}
default_variants +http +libusb +osc +python27
if {![variant_isset libftdi1]} {
default_variants-append +libftdi0
}
test.run yes
test.target check