]> git.pld-linux.org Git - packages/Mesa.git/commitdiff
- updated to 3.4.1, updated Source URLs
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 26 Feb 2001 22:24:11 +0000 (22:24 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- conditional GLX/DRI support from rawhide
(Mesa is needed to use GL functions with video cards not supported by
 XFree 4.0 - OpenGL from XFree 4.0 won't work without GLX)

Changed files:
    Mesa-am.patch -> 1.1
    Mesa-badlibtool.patch -> 1.1
    Mesa-glibc-2.2.patch -> 1.1
    Mesa.spec -> 1.38

Mesa-am.patch [new file with mode: 0644]
Mesa-badlibtool.patch [new file with mode: 0644]
Mesa-glibc-2.2.patch [new file with mode: 0644]
Mesa.spec

diff --git a/Mesa-am.patch b/Mesa-am.patch
new file mode 100644 (file)
index 0000000..181df95
--- /dev/null
@@ -0,0 +1,11 @@
+--- Mesa-3.4.1/ggi/ggiglut/Makefile.am.orig    Mon Jan  8 16:43:05 2001
++++ Mesa-3.4.1/ggi/ggiglut/Makefile.am Sun Feb 25 22:52:38 2001
+@@ -4,7 +4,7 @@
+ lib_LTLIBRARIES = libglut.la
+ libglut_la_SOURCES = ggiglut.c
+-libglut_la_LDFLAGS = $(extra_libraries) -version-info 1:0 -no-undefined \
++libglut_la_LDFLAGS = -version-info 1:0 -no-undefined \
+       -export-symbols $(srcdir)/EXPSYMS
+ ggiincludedir = $(includedir)/ggi
diff --git a/Mesa-badlibtool.patch b/Mesa-badlibtool.patch
new file mode 100644 (file)
index 0000000..1d24f34
--- /dev/null
@@ -0,0 +1,11 @@
+--- Mesa-3.4/acinclude.m4.badlibtool   Mon Nov 13 16:22:47 2000
++++ Mesa-3.4/acinclude.m4      Mon Nov 13 16:23:05 2000
+@@ -527,7 +527,7 @@
+ # This must be Linux ELF.
+ linux-gnu*)
+   case "$host_cpu" in
+-  alpha* | i*86 | sparc* )
++  alpha* | i*86 | sparc* | ia64* | s390* )
+     lt_cv_deplibs_check_method=pass_all ;;
+   *)
+     # glibc up to 2.1.1 does not perform some relocations on ARM
diff --git a/Mesa-glibc-2.2.patch b/Mesa-glibc-2.2.patch
new file mode 100644 (file)
index 0000000..5cf6986
--- /dev/null
@@ -0,0 +1,29 @@
+--- Mesa/include/GL/glut.h.glibc22     Wed Oct 11 13:14:31 2000
++++ Mesa/include/GL/glut.h     Wed Oct 11 13:19:47 2000
+@@ -13,6 +13,7 @@
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
++#include <stdlib.h> /* for exit() */
+ #if defined(_WIN32)
+@@ -94,9 +95,6 @@
+ #  endif
+ #  define GLUT_DEFINED__CRTIMP
+ # endif
+-# ifndef GLUT_BUILDING_LIB
+-extern _CRTIMP void __cdecl exit(int);
+-# endif
+ /* GLUT callback calling convention for Win32. */
+ # define GLUTCALLBACK __cdecl
+@@ -198,8 +196,6 @@
+ #  define GLUT_APIENTRY_DEFINED
+ #  define GLUTCALLBACK
+ #  define GLUTAPI extern
+-/* Prototype exit for the non-Win32 case (see above). */
+-/*extern void exit(int);  this screws up gcc -ansi -pedantic! */
+ #endif
index 190340cfa3b10f896faf0bd48a250edff1a572b3..0243a6631cc40cc26e2a5aaac2e7256c59759414 100644 (file)
--- a/Mesa.spec
+++ b/Mesa.spec
@@ -1,16 +1,34 @@
-Summary:       Free OpenGL implementation. Runtime environment
+#
+# bcond_off_glide: without GLIDE
+#
+# bcond_on_dri: add GLX/DRI support (taken from rawhide)
+# (does it make any sense? we have XFree86-OpenGL-* packages...)
+#
+Summary:       Free OpenGL implementation
 Summary(pl):   Bezp³atna implementacja standardu OpenGL
 Name:          Mesa
-Version:       3.2
-Release:       3
+Version:       3.4.1
+Release:       1
 License:       GPL
 Group:         X11/Libraries
+Group(de):     X11/Libraries
+Group(es):     X11/Bibliotecas
 Group(pl):     X11/Biblioteki
-Source0:       ftp://ftp.mesa3d.org/mesa/%{name}Lib-%{version}.tar.bz2
-Source1:       ftp://ftp.mesa3d.org/mesa/%{name}Demos-%{version}.tar.bz2
-Patch0:                Mesa-paths.patch
+Source0:       ftp://download.sourceforge.net/pub/sourceforge/mesa3d/%{name}Lib-%{version}.tar.bz2
+Source1:       ftp://download.sourceforge.net/pub/sourceforge/mesa3d/%{name}Demos-%{version}.tar.bz2
+%{?bcond_on_dri:Source2:       XFree86-4.0.2-GLonly.tar.gz}
+Patch0:                %{name}-paths.patch
+Patch1:                %{name}-badlibtool.patch
+Patch2:                %{name}-glibc-2.2.patch
+Patch3:                %{name}-am.patch
+%{?bcond_on_dri:Patch4:                %{name}-XF86DRI-4.0.2.patch}
+#Patch5:       %{name}-3.3-glXcontext.patch
 URL:           http://www.mesa3d.org/
 BuildRequires: XFree86-devel
+%{!?bcond_off_glide:BuildRequires:     Glide_V3-DRI-devel}
+BuildRequires: perl
+BuildRequires: autoconf
+BuildRequires: automake
 Provides:      OpenGL
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -31,7 +49,7 @@ LICENSE file for details.
 - OpenGL(R) is a registered trademark of Silicon Graphics, Inc.
 
 %description -l pl
-Mesa jest bibliotek± 3D bêd±c± darmowym odpowiednikiem standartu
+Mesa jest bibliotek± 3D bêd±c± darmowym odpowiednikiem standardu
 OpenGL(*).
 
 - OpenGL jest zastrze¿onym znakiem towarowym firmy Silicon Graphics,
@@ -41,6 +59,7 @@ OpenGL(*).
 Summary:       Development environment for Mesa
 Summary(pl):   ¦rodowisko programistyczne biblioteki Mesa
 Group:         Development/Libraries
+Group(de):     Entwicklung/Libraries
 Group(fr):     Development/Librairies
 Group(pl):     Programowanie/Biblioteki
 Requires:      %{name} = %{version}
@@ -56,6 +75,7 @@ Pliki nag
 Summary:       Mesa static libraries
 Summary(pl):   Biblioteki statyczne Mesy
 Group:         Development/Libraries
+Group(de):     Entwicklung/Libraries
 Group(fr):     Development/Librairies
 Group(pl):     Programowanie/Biblioteki
 Requires:      %{name}-devel = %{version}
@@ -69,8 +89,9 @@ Biblioteki statyczne Mesy.
 
 %package demos
 Summary:       Mesa Demos
-Summary(pl):   Demonstracje mo¿liwo¶ci biblioteki MESA.
+Summary(pl):   Demonstracje mo¿liwo¶ci biblioteki MESA
 Group:         Development/Libraries
+Group(de):     Entwicklung/Libraries
 Group(fr):     Development/Librairies
 Group(pl):     Programowanie/Biblioteki
 Requires:      %{name} = %{version}
@@ -83,9 +104,28 @@ Programy demonstracyjne dla biblioteki Mesa.
 
 %prep
 %setup -q -n Mesa-%{version} -b 1
+
+%if %{?bcond_on_dri:1}%{!?bcond_on_dri:0}
+       mkdir -p src/DRI/GL
+       tar xzf %{SOURCE2}
+       ln -f `find xc -type f` src/DRI
+       mv -f src/DRI/glxmd.h src/DRI/GL/glxmd.h
+%endif
+
 %patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%{?bcond_on_dri:%patch4 -p1}
+#%patch5 -p1
+# fix demos
+perl -pi -e "s,\.\./images/,%{_examplesdir}/Mesa/images/,g" demos/*
 
 %build
+aclocal -I .
+autoheader
+automake -a -c
+autoconf
 %configure \
        --enable-static \
        --enable-shared \
@@ -93,15 +133,22 @@ Programy demonstracyjne dla biblioteki Mesa.
        --with-svga="no" \
        --disable-ggi-fbdev \
        --disable-ggi-genkgi \
+       --enable-optimize \
+       %{?bcond_off_glide:--without-glide} \
 %ifarch %{ix86} \
        --enable-x86 \
   %ifarch i586 i686 \
        --enable-mmx \
        --enable-3dnow \
+    %ifarch i686 \
+       --enable-katmai \
+    %else \
+       --disable-katmai \
+    %endif \
   %else \
     %ifarch k6 \
        --enable-mmx \
-       --enable-3dnow" \
+       --enable-3dnow \
     %else \
        --disable-mmx \
        --disable-3dnow \
@@ -115,9 +162,10 @@ Programy demonstracyjne dla biblioteki Mesa.
 
 %{__make}
        
-(cd widgets-mesa; autoconf; \
+(cd widgets-mesa
 %configure
-make)
+%{__make}
+)
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -131,12 +179,16 @@ install -d $RPM_BUILD_ROOT%{_mandir}/man3
        mandir=$RPM_BUILD_ROOT%{_mandir}/man3)
 
 install -d $RPM_BUILD_ROOT/usr/src/examples/Mesa
-for l in book demos samples xdemos ; do
-       cp -R $l $RPM_BUILD_ROOT/usr/src/examples/Mesa/$l
+for l in book demos samples xdemos images ; do
+       cp -Rf $l $RPM_BUILD_ROOT%{_examplesdir}/Mesa/$l
 done
 
 gzip -9nf docs/*
-       
+
+# resolve conflict with XFree86-devel
+rm -f $RPM_BUILD_ROOT%{_mandir}/man3/GLwCreateMDrawingArea.*
+rm -f $RPM_BUILD_ROOT%{_mandir}/man3/GLwDrawingArea{,MakeCurrent,SwapBuffers}.*
+
 %post   -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
 
@@ -151,7 +203,7 @@ rm -fr $RPM_BUILD_ROOT
 %files devel
 %defattr(644,root,root,755)
 %doc docs/{IAFA-PACKAGE,README,RELNOTES-*,VERSIONS,CONFORM,COPYRIGHT,DEVINFO,*.spec}.gz
-%doc docs/README.{3DFX,GGI,MGL,QUAKE,X11,THREADS}.gz
+%doc docs/README.{3DFX,GGI,MITS,QUAKE,X11,THREADS}.gz
 %attr(755,root,root) %{_libdir}/libGL*.so
 
 %dir %{_includedir}/GL
@@ -166,6 +218,7 @@ rm -fr $RPM_BUILD_ROOT
 %{_includedir}/GL/MesaWorkstation.h
 %{_includedir}/GL/MesaWorkstationP.h
 %{_includedir}/GL/gl.h
+%{_includedir}/GL/glext.h
 %{_includedir}/GL/gl_mangle.h
 %{_includedir}/GL/glu.h
 %{_includedir}/GL/glu_mangle.h
This page took 0.04403 seconds and 4 git commands to generate.