1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Fix build with clang

PR:		185708
Submitted by:	ports fury
This commit is contained in:
Martin Wilke 2014-01-19 14:25:38 +00:00
parent c24323ef82
commit b5e3bad02a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=340305
2 changed files with 19 additions and 7 deletions

View File

@ -11,15 +11,16 @@ DISTNAME= ViewKlass-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= C++ Framework for Motif
BUILD_DEPENDS= imake:${PORTSDIR}/devel/imake
LICENSE= LGPL20 # (or later)
USES= motif
GNU_CONFIGURE= yes
USES= imake:env motif
USE_AUTOTOOLS= autoconf213
NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e 's/^CFLAGS=/CFLAGS+=/g ; \
s/^CXXFLAGS=/CXXFLAGS+=/g ; \
s/-g -Wall//g' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e \
'/^CFLAGS=/s|-g|@CFLAGS@| ; \
/^CXXFLAGS=/s|-g|@CXXFLAGS@| ; \
s| $$(exec_prefix)| $$(DESTDIR)$$(exec_prefix)| ; \
s| $$(prefix)| $$(DESTDIR)$$(prefix)|' ${WRKSRC}/Makefile.in
.include <bsd.port.mk>

View File

@ -0,0 +1,11 @@
--- VkProgram.C.orig
+++ VkProgram.C
@@ -34,6 +34,8 @@
#endif
= "$Id: VkProgram.C,v 1.8 2009/03/21 11:44:34 jostle Exp $";
+#include <cstdlib>
+
#include <Vk/VkProgram.h>
using namespace std;