blob: 2d25dfcc106455ffbf114bdaf95bbb2655a2ab4d (
plain)
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
|
# Maintainer: Hartmut Seichter <hartmut@technotecture.com>
# based on vrpn-git: David Runge <dave@sleepmap.de>
pkgname=vrpn
pkgver=7.35
pkgrel=1
_pkg=${pkgname}
pkgdesc='Virtual Reality Peripheral Network library and tools'
arch=('x86_64')
url="https://vrpn.github.io/"
license=('Boost')
depends=('gpm' 'hidapi' 'libusb')
provides=("vrpn")
conflicts=("vrpn-git")
makedepends=('cmake')
source=("https://github.com/vrpn/vrpn/releases/download/version_0${pkgver}/vrpn_0${pkgver}.zip")
sha512sums=('3a91f82ccfb3f990fbcdbb24471d96d74435bdbfa917d9be469481709279e2b7acbf5eca389adab376cdc92bf8fc48d17fc746c7a3ede8ff408b26c362868f39')
build(){
cd ${_pkg}
# vrpn requires an out-of-source build
cd "${srcdir}/vrpn"
mkdir -p build && cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr/ \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTING=OFF \
-DVRPN_BUILD_CLIENTS=ON \
-DVRPN_BUILD_CLIENT_LIBRARY=ON \
-DVRPN_BUILD_EXTRA_COMPILER_WARNINGS=ON \
-DVRPN_BUILD_HID_GUI=OFF \
-DVRPN_BUILD_JAVA=OFF \
-DVRPN_BUILD_PROFILING_SUPPORT=OFF \
-DVRPN_BUILD_PYTHON=OFF \
-DVRPN_BUILD_PYTHON_HANDCODED_2X=OFF \
-DVRPN_BUILD_PYTHON_HANDCODED_3X=OFF \
-DVRPN_BUILD_SERVERS=ON \
-DVRPN_BUILD_SERVER_LIBRARY=ON \
-DVRPN_BUILD_TEST_RPC_GENERATION=OFF \
-DVRPN_GPL_SERVER=ON \
-DVRPN_HIDAPI_USE_LIBUSB=ON \
-DVRPN_HID_DEBUGGING=OFF \
-DVRPN_INCLUDE_INTERSENSE=OFF \
-DVRPN_INCLUDE_PHASESPACE=OFF \
-DVRPN_USE_DEV_INPUT=ON \
-DVRPN_USE_FREESPACE=OFF \
-DVRPN_USE_GHOST=OFF \
-DVRPN_USE_GPM_MOUSE=ON \
-DVRPN_USE_HDAPI=OFF \
-DVRPN_USE_HID=ON \
-DVRPN_USE_JOYLIN=ON \
-DVRPN_USE_JSONNET=OFF \
-DVRPN_USE_LIBNIFALCON=OFF \
-DVRPN_USE_LIBUSB_1_0=ON \
-DVRPN_USE_LOCAL_HIDAPI=OFF \
-DVRPN_USE_LOCAL_JSONCPP=OFF \
-DVRPN_USE_MICROSCRIBE=OFF \
-DVRPN_USE_MOTIONNODE=OFF \
-DVRPN_USE_MPI=OFF \
-DVRPN_USE_NATIONAL_INSTRUMENTS=OFF \
-DVRPN_USE_NATIONAL_INSTRUMENTS_MX=OFF \
-DVRPN_USE_NIDAQ=OFF \
-DVRPN_USE_PHANTOM_SERVER=OFF \
-DVRPN_USE_TRIVISIOCOLIBRI=OFF \
-DVRPN_USE_USDIGITAL=OFF \
-DVRPN_USE_VIEWPOINT=OFF \
-DVRPN_USE_WIIUSE=OFF
# -DOVR_ROOT_DIR=/usr/include/ovr-$(pkg-config --modversion libovr)/ \
# -DVRPN_USE_OVR=OFF \
make
}
package() {
cd "${srcdir}/vrpn/build"
make DESTDIR="${pkgdir}" install
# configuration
mv "${pkgdir}/usr/etc" "${pkgdir}"
# configuration example
install -Dm0644 "${pkgdir}/usr/share/${_pkg}-0${pkgver}/${_pkg}.cfg.sample" \
"${pkgdir}/usr/share/doc/${pkgname}/${_pkg}.cfg.sample"
}
|