blob: 28a25e9ed451012a70eb3e306b68721ea8d5a440 (
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
# Contributor: Sven Schneider <archlinux.sandmann@googlemail.com>
# Contributor: bugix
# Contributor: Lubosz Sarnecki <lubosz at gmail>
pkgname=(
openni
openni-core
openni-core-samples
openni-mono
openni-mono-samples
openni-java
openni-java-samples)
pkgver=20111116
pkgrel=1
arch=('i686' 'x86_64')
url="http://www.openni.org/"
license=('GPL')
# The README says it works with python3 works--it doesn't
makedepends=('git' 'doxygen' 'graphviz' 'python2')
source=()
md5sums=()
_gitroot="git://github.com/OpenNI/OpenNI.git"
_gitname="openni"
_gitbranch="unstable"
#_gitbranch="master"
case "${CARCH}" in
'x86_64') _platform=x64;;
'i686') _platform=x86;;
*) _platform=UNSUPPORTED_ARCH;;
esac
build() {
cd "${srcdir}"
msg "Connecting to GIT server...."
if [ -d ${_gitname} ] ; then
cd ${_gitname} && git pull origin
msg "The local files are updated."
else
git clone -b ${_gitbranch} ${_gitroot} ${_gitname}
fi
msg "GIT checkout done or server timeout"
msg "Starting make..."
rm -rf "${srcdir}/${_gitname}-build"
git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
cd "${srcdir}/${_gitname}-build"
# BUILD
chmod 755 "Platform/Linux/CreateRedist/RedistMaker"
sed -i 's/python /python2 /' "Platform/Linux/CreateRedist/RedistMaker"
cd "Platform/Linux/Build"
# Ammend the Makefile to have ...cleaner... definitions
echo >> Makefile
echo 'abs_core: $(ALL_MODULES) $(ALL_UTILS)' >> Makefile
echo 'abs_core_samples: $(CORE_SAMPLES)' >> Makefile
echo 'abs_java: $(ALL_JAVA_PROJS)' >> Makefile
echo 'abs_java_samples: $(JAVA_SAMPLES)' >> Makefile
echo 'abs_mono: $(ALL_MONO_PROJS)' >> Makefile
echo 'abs_mono_samples: $(MONO_SAMPLES) $(MONO_FORMS_SAMPLES)' >> Makefile
make -j1 \
abs_core abs_core_samples \
abs_java abs_java_samples \
abs_mono abs_mono_samples || return 1
}
package_openni() {
pkgdesc="Open Natural Interface framework"
depends=('openni-core')
}
package_openni-core() {
pkgdesc="OpenNI core libraries"
depends=('libusb' 'freeglut')
install="openni.install"
}
package_openni-core-samples() {
pkgdesc="OpenNI sample programs"
depends=('openni')
}
package_openni-java() {
pkgdesc="OpenNI java wrapper"
depends=('openni')
}
package_openni-java-samples() {
pkgdesc="OpenNI java wrapper sample programs"
depends=('openni-java')
}
package_openni-mono() {
pkgdesc="OpenNI mono wrapper"
depends=('openni')
}
package_openni-mono-samples() {
pkgdesc="OpenNI java wrapper sample programs"
depends=('openni-mono')
}
package_old() {
install -d "${pkgdir}/var/lib/ni"
cd "${srcdir}/${_gitname}-build/Include"
install -d "${pkgdir}/usr/include/ni/Linux-${_platform}"
install -m644 *.h "${pkgdir}/usr/include/ni"
install -m644 Linux-${_platform}/* "${pkgdir}/usr/include/ni/Linux-${_platform}"
cd "${srcdir}/${_gitname}-build/Platform/Linux/Bin/${_platform}-Release"
install -d "${pkgdir}/usr/bin"
install -m755 niLicense niReg "${pkgdir}/usr/bin"
libfiles='libnimCodecs.so libnimMockNodes.so libnimRecorder.so libOpenNI.so'
install -d "${pkgdir}/usr/lib"
install -m755 $libfiles "${pkgdir}/usr/lib"
}
|