From 100c2dbdb35b23b12cdd82e3d9baf7955ecc335f Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Sun, 17 Nov 2013 18:24:29 +1000 Subject: [PATCH] glew 1.10 --- .gitignore | 1 + glew-1.9.0-makefile.patch | 54 +++++++++++++++++++-------------------- glew.spec | 6 ++--- sources | 2 +- 4 files changed, 32 insertions(+), 31 deletions(-) diff --git a/.gitignore b/.gitignore index bdd3b7b..7d77783 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ glew-1.5.4.tgz /glew-1.6.0.tgz /glew-1.7.0.tgz /glew-1.9.0.tgz +/glew-1.10.0.tgz diff --git a/glew-1.9.0-makefile.patch b/glew-1.9.0-makefile.patch index d30c7da..411e7b6 100644 --- a/glew-1.9.0-makefile.patch +++ b/glew-1.9.0-makefile.patch @@ -1,26 +1,6 @@ -diff -up glew-1.9.0/config/Makefile.linux.jx glew-1.9.0/config/Makefile.linux ---- glew-1.9.0/config/Makefile.linux.jx 2012-08-06 11:59:08.000000000 -0400 -+++ glew-1.9.0/config/Makefile.linux 2012-12-13 13:03:05.044983152 -0500 -@@ -3,14 +3,8 @@ CC = cc - LD = cc - PICFLAG = -fPIC - M_ARCH ?= $(shell uname -m) --ifeq (x86_64,${M_ARCH}) --LDFLAGS.EXTRA = -L/usr/X11R6/lib64 -L/usr/lib64 --LIBDIR = $(GLEW_DEST)/lib64 --else --LDFLAGS.EXTRA = -L/usr/X11R6/lib -L/usr/lib --LIBDIR = $(GLEW_DEST)/lib --endif --LDFLAGS.GL = -lXmu -lXi -lGL -lXext -lX11 -+LIBDIR = $(GLEW_DEST)$(libdir) -+LDFLAGS.GL = -lGLU -lGL -lX11 - LDFLAGS.STATIC = -Wl,-Bstatic - LDFLAGS.DYNAMIC = -Wl,-Bdynamic - NAME = GLEW -diff -up glew-1.9.0/Makefile.jx glew-1.9.0/Makefile ---- glew-1.9.0/Makefile.jx 2012-12-13 13:00:59.000000000 -0500 -+++ glew-1.9.0/Makefile 2012-12-13 13:04:58.027629027 -0500 +diff -up glew-1.10.0/Makefile.make glew-1.10.0/Makefile +--- glew-1.10.0/Makefile.make 2013-07-23 00:11:22.000000000 +1000 ++++ glew-1.10.0/Makefile 2013-11-17 17:07:03.308895478 +1000 @@ -41,9 +41,9 @@ $(error "Platform '$(SYSTEM)' not suppor endif @@ -32,9 +12,9 @@ diff -up glew-1.9.0/Makefile.jx glew-1.9.0/Makefile +LIBDIR ?= $(GLEW_DEST)$(libdir) +INCDIR ?= $(GLEW_DEST)$(includedir)/GL - TARDIR = ../glew-$(GLEW_VERSION) - TARBALL = ../glew-$(GLEW_VERSION).tar.gz -@@ -224,7 +224,7 @@ ifeq ($(filter-out mingw% cygwin,$(SYSTE + DIST_NAME ?= glew-$(GLEW_VERSION) + DIST_SRC_ZIP ?= $(shell pwd)/$(DIST_NAME).zip +@@ -237,7 +237,7 @@ ifeq ($(filter-out mingw% cygwin,$(SYSTE $(INSTALL) -d -m 0755 $(BINDIR) $(INSTALL) -m 0755 lib/$(LIB.SHARED) $(BINDIR)/ else @@ -43,7 +23,7 @@ diff -up glew-1.9.0/Makefile.jx glew-1.9.0/Makefile endif ifneq ($(LN),) $(LN) $(LIB.SHARED) $(LIBDIR)/$(LIB.SONAME) -@@ -246,7 +246,7 @@ ifeq ($(filter-out mingw% cygwin,$(SYSTE +@@ -259,7 +259,7 @@ ifeq ($(filter-out mingw% cygwin,$(SYSTE $(INSTALL) -d -m 0755 $(BINDIR) $(INSTALL) -m 0755 lib/$(LIB.SHARED.MX) $(BINDIR)/ else @@ -52,3 +32,23 @@ diff -up glew-1.9.0/Makefile.jx glew-1.9.0/Makefile endif ifneq ($(LN),) $(LN) $(LIB.SHARED.MX) $(LIBDIR)/$(LIB.SONAME.MX) +diff -up glew-1.10.0/config/Makefile.linux.make glew-1.10.0/config/Makefile.linux +--- glew-1.10.0/config/Makefile.linux.make 2013-11-17 17:07:03.307895450 +1000 ++++ glew-1.10.0/config/Makefile.linux 2013-11-17 17:08:27.188267881 +1000 +@@ -9,14 +9,8 @@ endif + ifeq (ppc64,${M_ARCH}) + ARCH64 = true + endif +-ifeq (${ARCH64},true) +- LDFLAGS.EXTRA = -L/usr/X11R6/lib64 -L/usr/lib64 +- LIBDIR = $(GLEW_DEST)/lib64 +-else +- LDFLAGS.EXTRA = -L/usr/X11R6/lib -L/usr/lib +- LIBDIR = $(GLEW_DEST)/lib +-endif +-LDFLAGS.GL = -lXmu -lXi -lGL -lXext -lX11 ++LIBDIR = $(GLEW_DEST)$(libdir) ++LDFLAGS.GL = -lGLU -lGL -lX11 + LDFLAGS.STATIC = -Wl,-Bstatic + LDFLAGS.DYNAMIC = -Wl,-Bdynamic + NAME = GLEW diff --git a/glew.spec b/glew.spec index 6c7542b..4329ae1 100644 --- a/glew.spec +++ b/glew.spec @@ -1,6 +1,6 @@ Name: glew -Version: 1.9.0 -Release: 4%{?dist} +Version: 1.10.0 +Release: 1%{?dist} Summary: The OpenGL Extension Wrangler Library Group: System Environment/Libraries License: BSD and MIT @@ -54,7 +54,7 @@ sed -i -e 's/\r//g' config/config.guess %build -make %{?_smp_mflags} CFLAGS.EXTRA="$RPM_OPT_FLAGS" includedir=%{_includedir} GLEW_DEST= STRIP= libdir=%{_libdir} bindir=%{_bindir} +make %{?_smp_mflags} CFLAGS.EXTRA="$RPM_OPT_FLAGS -fPIC" includedir=%{_includedir} GLEW_DEST= STRIP= libdir=%{_libdir} bindir=%{_bindir} %install rm -rf $RPM_BUILD_ROOT diff --git a/sources b/sources index 94625db..2433f2c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -69ce911decef6249d24742497e6ad06a glew-1.9.0.tgz +2f09e5e6cb1b9f3611bcac79bc9c2d5d glew-1.10.0.tgz