mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
mesa: fix build.
* include strings.h for strncasecmp * add dependencies on libstdc++ and libgcc_s.
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
33
sys-libs/mesa/patches/mesa-10.1.1.patchset
Normal file
33
sys-libs/mesa/patches/mesa-10.1.1.patchset
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user