1
0
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:
Dmitry Marakasov 2013-09-17 15:53:01 +00:00
parent 74ba0b7dd4
commit c75198d4f9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=327480
9 changed files with 65 additions and 1 deletions

View File

@ -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

View 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"

View 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;

View 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;

View 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;

View File

@ -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

View 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

View 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

View File

@ -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