blob: 9be76956b26b8a8bbad152139a40f3367f5174f8 (
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
|
# Maintainer: Chirantan Ekbote <chirantan.ekbote at gmail.com>
# Contributor: Brian Schubert <bewschubert@gmail.com>
_build_doc=ON
_build_apps=ON
pkgname=openmesh
pkgver=5.1
pkgrel=1
pkgdesc="A generic and efficient data structure for representing and manipulating polygonal meshes"
arch=('i686' 'x86_64')
url="http://www.openmesh.org"
license=('custom')
depends=('mesa')
optdepends=('qt4: for using included applications' )
install=openmesh.install
source=("${pkgname}-${pkgver}.tar.bz2::http://www.openmesh.org/media/Releases/${pkgver}/OpenMesh-${pkgver}.tar.bz2"
doc-install.patch)
md5sums=('a3b9c1908dd762a0a66fad97135fdbb4'
'4a85342dd2c50d016177efa7dfb0039c')
if [[ "${_build_doc}" == "ON" && "${_build_apps}" == "ON" ]]; then
makedepends=('cmake' 'qt4' 'graphviz' 'doxygen')
elif [[ "${_build_doc}" == "ON" ]]; then
makedepends=('cmake' 'graphviz' 'doxygen')
elif [[ "${_build_apps}" == "ON" ]]; then
makedepends=('cmake' 'qt4')
else
makedepends=('cmake')
fi
prepare() {
if [[ "${_build_doc}" == "ON" ]]; then
patch -Np0 -i doc-install.patch
fi
}
build() {
mkdir -p build
cd build
#cd "${srcdir}/OpenMesh-${pkgver}"
cmake ../OpenMesh-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_APPS=${_build_apps}
make
if [[ "${_build_doc}" == "ON" ]]; then
make doc
fi
}
package() {
cd build
make DESTDIR="${pkgdir}" install
# install licenses
mkdir -p "${pkgdir}"/usr/share/licenses/openmesh/
install -D -m644 ../OpenMesh-${pkgver}/LICENSE \
"${pkgdir}"/usr/share/licenses/openmesh/
}
|