aboutsummaryrefslogtreecommitdiff
path: root/cal3d
diff options
context:
space:
mode:
Diffstat (limited to 'cal3d')
-rw-r--r--cal3d/.SRCINFO20
-rw-r--r--cal3d/PKGBUILD27
-rw-r--r--cal3d/cal3d-gcc43.diff53
3 files changed, 100 insertions, 0 deletions
diff --git a/cal3d/.SRCINFO b/cal3d/.SRCINFO
new file mode 100644
index 0000000..8c32203
--- /dev/null
+++ b/cal3d/.SRCINFO
@@ -0,0 +1,20 @@
1# Generated by mksrcinfo v8
2# Thu Feb 14 10:53:58 UTC 2019
3pkgbase = cal3d
4 pkgdesc = A skeletal-based 3D character animation library
5 pkgver = 0.11.0
6 pkgrel = 7
7 url = https://mp3butcher.github.io/Cal3D/
8 arch = i686
9 arch = x86_64
10 license = GPL2
11 makedepends = patch
12 depends = gcc-libs
13 options = !libtool
14 source = https://mp3butcher.github.io/Cal3D/sources/cal3d-0.11.0.tar.gz
15 source = cal3d-gcc43.diff
16 sha512sums = 4dc4b36b8f18760bfe6f8c80cbd941c14e2ebe596d0cd514fdb1ae4175bf2706e125665272d67ff21d33bb4b34e7be22bad9c00d488c1da21f442550bf3f204f
17 sha512sums = 8f7694ac240a7cbfc198d8e481ab87901d0256defffb1601f68ef39463bf1471e29e13d147e9a6463113afa0e93f317c2ef99aa19633b4e597e6347c38a64f42
18
19pkgname = cal3d
20
diff --git a/cal3d/PKGBUILD b/cal3d/PKGBUILD
new file mode 100644
index 0000000..c7507da
--- /dev/null
+++ b/cal3d/PKGBUILD
@@ -0,0 +1,27 @@
1# Maintainer : Immae <ismael.bouya@normalesup.org>
2
3pkgname=cal3d
4pkgver=0.11.0
5pkgrel=7
6pkgdesc="A skeletal-based 3D character animation library"
7arch=(i686 x86_64)
8url="https://mp3butcher.github.io/Cal3D/"
9options=(!libtool)
10license=(GPL2)
11depends=('gcc-libs')
12makedepends=('patch')
13source=(https://mp3butcher.github.io/Cal3D/sources/cal3d-$pkgver.tar.gz cal3d-gcc43.diff)
14sha512sums=('4dc4b36b8f18760bfe6f8c80cbd941c14e2ebe596d0cd514fdb1ae4175bf2706e125665272d67ff21d33bb4b34e7be22bad9c00d488c1da21f442550bf3f204f'
15 '8f7694ac240a7cbfc198d8e481ab87901d0256defffb1601f68ef39463bf1471e29e13d147e9a6463113afa0e93f317c2ef99aa19633b4e597e6347c38a64f42')
16build() {
17 cd "${pkgname}-$pkgver"
18 patch -p0 < ../cal3d-gcc43.diff
19 sed -i -e "s/return false/return 0/" src/cal3d/loader.cpp
20 ./configure --prefix=/usr
21 make
22}
23
24package() {
25 cd "${pkgname}-$pkgver"
26 make DESTDIR=${pkgdir} install
27}
diff --git a/cal3d/cal3d-gcc43.diff b/cal3d/cal3d-gcc43.diff
new file mode 100644
index 0000000..fc61235
--- /dev/null
+++ b/cal3d/cal3d-gcc43.diff
@@ -0,0 +1,53 @@
1--- src/cal3d/hardwaremodel.cpp
2+++ src/cal3d/hardwaremodel.cpp
3@@ -24,6 +24,7 @@
4 #include "cal3d/coreskeleton.h"
5 #include "cal3d/skeleton.h"
6
7+#include <string.h>
8
9 /*****************************************************************************/
10 /** Constructs the hardware model instance.
11--- src/cal3d/platform.cpp
12+++ src/cal3d/platform.cpp
13@@ -18,6 +18,8 @@
14
15 #include "cal3d/platform.h"
16
17+#include <string.h>
18+
19 /*****************************************************************************/
20 /** Constructs the platform instance.
21 *
22--- src/cal3d/renderer.cpp
23+++ src/cal3d/renderer.cpp
24@@ -29,6 +29,8 @@
25 #include "cal3d/coresubmesh.h"
26 #include "cal3d/physique.h"
27
28+#include <string.h>
29+
30 /*****************************************************************************/
31 /** Constructs the renderer instance.
32 *
33--- src/cal3d/submesh.cpp
34+++ src/cal3d/submesh.cpp
35@@ -16,6 +16,7 @@
36 #include "cal3d/error.h"
37 #include "cal3d/coresubmesh.h"
38
39+#include <string.h>
40
41 CalSubmesh::CalSubmesh(CalCoreSubmesh* coreSubmesh)
42 {
43--- src/cal3d_converter.cpp
44+++ src/cal3d_converter.cpp
45@@ -11,6 +11,8 @@
46
47 #include "cal3d/cal3d.h"
48
49+#include <strings.h>
50+
51 #define SKELETON 0
52 #define MESH 1
53 #define ANIMATION 2