blob: 6d8de5f5afb6c9363ac644298b91ccfcf1d65e7b (
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
|
# Maintainer: Thomas Ascher <thomas.ascher@gmx.at>
# Contributor: Thomas Ascher <thomas.ascher@gmx.at>
pkgname=k3d
pkgver=0.8.0.6
pkgrel=2
pkgdesc="A free 3D modelling and animation software"
arch=('x86_64' 'i686')
url="http://www.k-3d.org"
license=('GPL')
depends=('cgal'
'collada-dom'
'ftgl'
'glew'
'gnome-vfs'
'gtkglext'
'gtkmm'
'gtksourceview2'
'gts'
'imagemagick'
'lib3ds'
'libjpeg-turbo'
'ode'
'openexr')
optdepends=('aqsis')
makedepends=('asciidoc'
'boost'
'cmake'
'doxygen'
'git'
'graphviz'
'libxslt')
source=("https://github.com/K-3D/k3d/archive/${pkgname}-${pkgver}.tar.gz"
"gtkmm_inclues.patch")
sha256sums=('c884667715c13543354d1e3e8edca9557a20d5ad3aa6bc35762394916655e817'
'701865e74d57c93688a463d19df98afbe2f7b9030ce4201515abd7fdbd98da85')
prepare() {
cd "${pkgname}-${pkgname}-${pkgver}"
patch -Np1 -i "${srcdir}/gtkmm_inclues.patch"
}
build() {
mkdir -p "${srcdir}/build"
cd "${srcdir}/build"
# for profiling add -DK3D_ENABLE_PROFILING=ON to cmake configuration and gperftools to dependencies
cmake "${srcdir}/${pkgname}-${pkgname}-${pkgver}" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DK3D_BUILD_CARVE_MODULE=OFF \
-DBOOST_SYSTEM_NO_DEPRECATED=1 \
-DPython_ADDITIONAL_VERSIONS=2.7
make
}
package() {
cd "${srcdir}/build"
make DESTDIR="${pkgdir}/" install
}
post_install() {
update-desktop-database -q
}
post_upgrade() {
post_install $1
}
post_remove() {
post_install $1
}
|