updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / vrpn / PKGBUILD
blobaffbe0f11e295c43e0efce36ea914466f715c7a6
1 # Maintainer: Kniyl <mathias(dot)ettinger(at)gmail(dot)com>
3 pkgname=vrpn
4 pkgver=07.29
5 pkgrel=1
6 pkgdesc='the Virtual Reality Peripheral Network lib and tools'
7 arch=('i686' 'x86_64')
8 url="http://www.cs.unc.edu/Research/vrpn"
9 license=('GPL')
10 makedepends=('cmake')
11 source=('ftp://ftp.cs.unc.edu/pub/packages/GRIP/${pkgname}/${pkgname}_${pkgver//./_}.zip')
12 md5sums=('422f13fc9cbb62d36c96f3cc3b06cec9')
14 build() {
15   cd "$srcdir"
17   [[ "${pkgname}-build" ]] && rm -rf "${pkgname}-build"
18   mkdir "${pkgname}-build"
19   cd "${pkgname}-build"
21   msg "Fixing vrpn.cfg path finding"
22   sed -i 's|"vrpn.cfg"|"/etc/vrpn.cfg"|' \
23     ../$pkgname/server_src/aureal_sound_server/vrpn_Sound_A3D.cpp \
24     ../$pkgname/server_src/ausim_sound_server/vrpn_Sound_ASM.cpp \
25     ../$pkgname/server_src/directx_sound_server/vrpn_Sound_DX9.cpp \
26     ../$pkgname/server_src/miles_sound_server/v5.0/sound_server.cpp \
27     ../$pkgname/server_src/miles_sound_server/v6.0/sound_server.cpp \
28     ../$pkgname/server_src/vrpn.C \
29     ../$pkgname/server_src/vrpn_Generic_server_object.C \
30     ../$pkgname/server_src/vrpn_Generic_server_object.h
32   cmake \
33     -DCMAKE_INSTALL_PREFIX=/usr/ \
34     -DCMAKE_BUILD_TYPE=Release \
35     -DBUILD_TESTING=OFF \
36     -DVRPN_BUILD_JAVA=OFF \
37     -DVRPN_BUILD_EXTRA_COMPILER_WARNINGS=ON \
38     "${srcdir}/${pkgname}"
39   make
42 package() {
43   cd "${srcdir}/${pkgname}-build"
45   make DESTDIR=$pkgdir install
47   mv "${pkgdir}/usr/etc" "$pkgdir"