mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
Fix build with clang/libc++
This commit is contained in:
parent
74ba0b7dd4
commit
c75198d4f9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=327480
@ -15,6 +15,7 @@ GNU_CONFIGURE= yes
|
||||
USE_GMAKE= yes
|
||||
USES= pkgconfig
|
||||
USE_LDCONFIG= yes
|
||||
USE_GCC= yes # otherwise graphics/makehuman won't link
|
||||
|
||||
CPPFLAGS+= -I${LOCALBASE}/include
|
||||
LDFLAGS+= -L${LOCALBASE}/lib
|
||||
|
10
graphics/animorph/files/patch-include-animorph-util.h
Normal file
10
graphics/animorph/files/patch-include-animorph-util.h
Normal file
@ -0,0 +1,10 @@
|
||||
--- include/animorph/util.h.orig 2007-11-25 12:34:57.000000000 +0300
|
||||
+++ include/animorph/util.h 2013-09-14 08:03:24.413227432 +0400
|
||||
@@ -37,6 +37,7 @@
|
||||
#include <iomanip>
|
||||
#include <vector>
|
||||
#include <iostream>
|
||||
+#include <cstdlib> // for atoi()
|
||||
#include "Vector3.h"
|
||||
#include "Vertex.h"
|
||||
#include "VertexVector.h"
|
10
graphics/animorph/files/patch-src-BodySettings.cpp
Normal file
10
graphics/animorph/files/patch-src-BodySettings.cpp
Normal file
@ -0,0 +1,10 @@
|
||||
--- src/BodySettings.cpp.orig 2007-12-03 01:30:41.000000000 +0300
|
||||
+++ src/BodySettings.cpp 2013-09-17 17:25:49.896520104 +0400
|
||||
@@ -1,5 +1,7 @@
|
||||
#include "../include/animorph/BodySettings.h"
|
||||
|
||||
+#include <cstring>
|
||||
+
|
||||
using namespace std;
|
||||
using namespace Animorph;
|
||||
|
10
graphics/animorph/files/patch-src-FaceGroup.cpp
Normal file
10
graphics/animorph/files/patch-src-FaceGroup.cpp
Normal file
@ -0,0 +1,10 @@
|
||||
--- src/FaceGroup.cpp.orig 2007-12-03 01:30:41.000000000 +0300
|
||||
+++ src/FaceGroup.cpp 2013-09-17 17:56:37.772519994 +0400
|
||||
@@ -1,5 +1,7 @@
|
||||
#include "../include/animorph/FaceGroup.h"
|
||||
|
||||
+#include <cstring>
|
||||
+
|
||||
using namespace std;
|
||||
using namespace Animorph;
|
||||
|
10
graphics/animorph/files/patch-src-Hotspot.cpp
Normal file
10
graphics/animorph/files/patch-src-Hotspot.cpp
Normal file
@ -0,0 +1,10 @@
|
||||
--- src/Hotspot.cpp.orig 2007-11-25 12:34:58.000000000 +0300
|
||||
+++ src/Hotspot.cpp 2013-09-17 17:32:58.043519323 +0400
|
||||
@@ -1,5 +1,7 @@
|
||||
#include "../include/animorph/Hotspot.h"
|
||||
|
||||
+#include <cstring>
|
||||
+
|
||||
using namespace std;
|
||||
using namespace Animorph;
|
||||
|
@ -16,7 +16,7 @@ LIB_DEPENDS= animorph:${PORTSDIR}/graphics/animorph \
|
||||
USES= gmake pkgconfig
|
||||
GNU_CONFIGURE= yes
|
||||
USE_GL= glut
|
||||
USE_GCC= any # Animation.cpp:94:26: error: variable length array of non-POD element type 'Animorph::BodySettings'
|
||||
USE_GCC= yes # Animation.cpp:94:26: error: variable length array of non-POD element type 'Animorph::BodySettings'
|
||||
|
||||
CPPFLAGS+= -I${LOCALBASE}/include
|
||||
LDFLAGS+= -L${LOCALBASE}/lib
|
||||
|
11
graphics/makehuman/files/patch-src-ComponentID.h
Normal file
11
graphics/makehuman/files/patch-src-ComponentID.h
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/ComponentID.h.orig 2007-12-03 01:30:18.000000000 +0300
|
||||
+++ src/ComponentID.h 2013-09-14 14:26:25.451226331 +0400
|
||||
@@ -27,6 +27,8 @@
|
||||
#ifndef COMPONENTID_H
|
||||
#define COMPONENTID_H 1
|
||||
|
||||
+#include <algorithm> // for for_each in *Panel.cpp
|
||||
+
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
11
graphics/makehuman/files/patch-src-FileTools.cpp
Normal file
11
graphics/makehuman/files/patch-src-FileTools.cpp
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/FileTools.cpp.orig 2007-11-25 12:28:07.000000000 +0300
|
||||
+++ src/FileTools.cpp 2013-09-17 06:11:17.036227572 +0400
|
||||
@@ -45,6 +45,8 @@
|
||||
#include <dirent.h>
|
||||
#include <limits.h>
|
||||
#include <iostream>
|
||||
+#include <cstdlib>
|
||||
+#include <cstring>
|
||||
|
||||
/* ========================================================================== *
|
||||
* FileTools - Implementation
|
@ -21,6 +21,7 @@ USES= pkgconfig
|
||||
USE_LDCONFIG= yes
|
||||
USE_XORG= xi xmu ice sm
|
||||
USE_GL= glut
|
||||
USE_GCC= yes # otherwise graphics/makehuman won't link
|
||||
|
||||
CPPFLAGS+= -I${LOCALBASE}/include
|
||||
LDFLAGS+= -L${LOCALBASE}/lib
|
||||
|
Loading…
Reference in New Issue
Block a user