mesa: fix build.

* include strings.h for strncasecmp
* add dependencies on libstdc++ and libgcc_s.
This commit is contained in:
Adrien Destugues
2014-08-27 09:55:41 +02:00
parent 8e4a2209d4
commit 8533b760b8
2 changed files with 36 additions and 0 deletions

View File

@@ -25,6 +25,8 @@ PROVIDES="
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
lib:libstdc++$secondaryArchSuffix
lib:libgcc_s$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
@@ -42,6 +44,7 @@ BUILD_PREREQUIRES="
"
SOURCE_DIR="Mesa-$portVersion"
PATCHES="mesa-10.1.1.patchset"
BUILD()
{

View File

@@ -0,0 +1,33 @@
From 30dc688e9fa2dbaa3855d99d2463e115b18bb05f Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
Date: Fri, 22 Aug 2014 20:42:37 +0200
Subject: Fix for strings.h
diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy
index f939fe8..6629904 100644
--- a/src/glsl/glsl_parser.yy
+++ b/src/glsl/glsl_parser.yy
@@ -24,6 +24,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <strings.h>
#include <assert.h>
#include "ast.h"
diff --git a/src/hgl/GLRendererRoster.cpp b/src/hgl/GLRendererRoster.cpp
index 1712a87..9c0717c 100644
--- a/src/hgl/GLRendererRoster.cpp
+++ b/src/hgl/GLRendererRoster.cpp
@@ -23,6 +23,7 @@
#include <new>
#include <string.h>
+#include <strings.h>
extern "C" status_t _kern_get_safemode_option(const char* parameter,
--
1.8.3.4