diff options
Diffstat (limited to 'package/MesaLib')
-rw-r--r-- | package/MesaLib/Makefile | 34 | ||||
-rw-r--r-- | package/MesaLib/patches/patch-src_glsl_Makefile_template | 11 | ||||
-rw-r--r-- | package/MesaLib/patches/patch-src_glsl_apps_Makefile | 15 | ||||
-rw-r--r-- | package/MesaLib/patches/patch-src_mesa_drivers_dri_savage_savageioctl_c | 10 | ||||
-rw-r--r-- | package/MesaLib/patches/patch-src_mesa_main_imports_c | 17 |
5 files changed, 87 insertions, 0 deletions
diff --git a/package/MesaLib/Makefile b/package/MesaLib/Makefile new file mode 100644 index 000000000..097331cde --- /dev/null +++ b/package/MesaLib/Makefile @@ -0,0 +1,34 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(TOPDIR)/rules.mk + +PKG_NAME:= MesaLib +PKG_VERSION:= 7.8.1 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 62e8e47cbd63741b4bbe634dcdc8a56a +PKG_DESCR:= MESA library +PKG_SECTION:= libs +PKG_DEPENDS:= libxdamage libxfixes +PKG_BUILDDEP+= libXdamage libXfixes libXxf86vm +PKG_URL:= add project url +PKG_SITES:= ftp://ftp.freedesktop.org/pub/mesa/7.8.1/ + +WRKDIST= ${WRKDIR}/Mesa-${PKG_VERSION} + +include $(TOPDIR)/mk/package.mk + +$(eval $(call PKG_template,MESALIB,mesalib,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) + +CONFIGURE_ARGS+= --disable-static \ + --disable-gallium \ + --without-demos + +XAKE_FLAGS+= APP_CC=${HOSTCC} HOST_CC=${HOSTCC} + +post-install: + $(INSTALL_DIR) $(IDIR_MESALIB)/usr/lib + $(INSTALL_BIN) $(WRKINST)/usr/lib/libGL*.so* \ + $(IDIR_MESALIB)/usr/lib + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/MesaLib/patches/patch-src_glsl_Makefile_template b/package/MesaLib/patches/patch-src_glsl_Makefile_template new file mode 100644 index 000000000..bcb3256d6 --- /dev/null +++ b/package/MesaLib/patches/patch-src_glsl_Makefile_template @@ -0,0 +1,11 @@ +--- Mesa-7.8.1.orig/src/glsl/Makefile.template 2010-04-05 01:46:26.000000000 +0200 ++++ Mesa-7.8.1/src/glsl/Makefile.template 2010-04-19 21:18:45.000000000 +0200 +@@ -44,7 +44,7 @@ install: + ##### RULES ##### + + .c.o: +- $(CC) -c $(INCLUDES) $(CFLAGS) $(LIBRARY_DEFINES) $< -o $@ ++ $(HOST_CC) -c $(INCLUDES) $(CFLAGS) $(LIBRARY_DEFINES) $< -o $@ + + -include depend + diff --git a/package/MesaLib/patches/patch-src_glsl_apps_Makefile b/package/MesaLib/patches/patch-src_glsl_apps_Makefile new file mode 100644 index 000000000..175965dc5 --- /dev/null +++ b/package/MesaLib/patches/patch-src_glsl_apps_Makefile @@ -0,0 +1,15 @@ +--- Mesa-7.8.1.orig/src/glsl/apps/Makefile 2010-04-05 01:46:26.000000000 +0200 ++++ Mesa-7.8.1/src/glsl/apps/Makefile 2010-04-19 21:20:55.000000000 +0200 +@@ -26,10 +26,10 @@ INCLUDES = -I. + .SUFFIXES: .c + + .c: +- $(APP_CC) $(INCLUDES) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@ ++ $(APP_CC) $(HOSTCFLAGS) $< $(LIBS) -o $@ + + .c.o: +- $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@ ++ $(APP_CC) -c $(HOSTCFLAGS) $(DEFINES) $< -o $@ + + + ##### TARGETS ##### diff --git a/package/MesaLib/patches/patch-src_mesa_drivers_dri_savage_savageioctl_c b/package/MesaLib/patches/patch-src_mesa_drivers_dri_savage_savageioctl_c new file mode 100644 index 000000000..1d72208c7 --- /dev/null +++ b/package/MesaLib/patches/patch-src_mesa_drivers_dri_savage_savageioctl_c @@ -0,0 +1,10 @@ +--- Mesa-7.8.1.orig/src/mesa/drivers/dri/savage/savageioctl.c 2010-04-05 01:46:26.000000000 +0200 ++++ Mesa-7.8.1/src/mesa/drivers/dri/savage/savageioctl.c 2010-04-19 21:26:28.000000000 +0200 +@@ -41,7 +41,6 @@ + #include "savagespan.h" + + #include "drm.h" +-#include <sys/timeb.h> + + #define DEPTH_SCALE_16 ((1<<16)-1) + #define DEPTH_SCALE_24 ((1<<24)-1) diff --git a/package/MesaLib/patches/patch-src_mesa_main_imports_c b/package/MesaLib/patches/patch-src_mesa_main_imports_c new file mode 100644 index 000000000..71c832adf --- /dev/null +++ b/package/MesaLib/patches/patch-src_mesa_main_imports_c @@ -0,0 +1,17 @@ +--- Mesa-7.8.1.orig/src/mesa/main/imports.c 2010-04-05 01:46:26.000000000 +0200 ++++ Mesa-7.8.1/src/mesa/main/imports.c 2010-04-19 21:22:52.000000000 +0200 +@@ -799,13 +799,7 @@ _mesa_strdup( const char *s ) + float + _mesa_strtof( const char *s, char **end ) + { +-#ifdef _GNU_SOURCE +- static locale_t loc = NULL; +- if (!loc) { +- loc = newlocale(LC_CTYPE_MASK, "C", NULL); +- } +- return strtof_l(s, end, loc); +-#elif defined(_ISOC99_SOURCE) || (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE >= 600) ++#if defined(_ISOC99_SOURCE) || (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE >= 600) + return strtof(s, end); + #else + return (float)strtod(s, end); |