]> git.pld-linux.org Git - packages/Mesa.git/commitdiff
- use x86-64 targets for x86_64 assembly auto/th/Mesa-7_0_2-4 auto/ti/Mesa-7_0_2-4
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 2 Dec 2007 16:52:42 +0000 (16:52 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- release 4

Changed files:
    Mesa.spec -> 1.164

Mesa.spec

index 92c5122ab8f4e7e84b7f773e6925513420a03ffe..66c463c7b77c57fb6511655caace4da7f911db7d 100644 (file)
--- a/Mesa.spec
+++ b/Mesa.spec
@@ -12,7 +12,7 @@ Summary:      Free OpenGL implementation
 Summary(pl.UTF-8):     WolnodostÄ™pna implementacja standardu OpenGL
 Name:          Mesa
 Version:       7.0.2
-Release:       3.1%{?with_multigl:.mgl}
+Release:       4%{?with_multigl:.mgl}
 License:       MIT (core), SGI (GLU,libGLw) and others - see license.html file
 Group:         X11/Libraries
 Source0:       http://dl.sourceforge.net/mesa3d/%{name}Lib-%{version}.tar.bz2
@@ -608,11 +608,18 @@ sed -i -e 's/ sis / /' configs/linux-dri
 %endif
 
 %build
+# use $lib, not %{_lib} as Mesa uses lib64 only for *-x86-64* targets
+%ifarch %{x8664}
+targ=-x86-64
+lib=lib64
+%else
+lib=lib
 %ifarch %{ix86}
 targ=-x86
 %else
 targ=""
 %endif
+%endif
 
 %{__make} linux${targ}-static \
        CC="%{__cc}" \
@@ -622,7 +629,7 @@ targ=""
        GLW_SOURCES="GLwDrawA.c%{?with_motif: GLwMDrawA.c}" \
        SRC_DIRS="mesa glu glw" \
        PROGRAM_DIRS=
-mv -f lib lib-static
+mv -f ${lib} lib-static
 %{__make} realclean
 
 %{__make} linux-osmesa \
@@ -651,7 +658,7 @@ mv -f lib lib-osmesa
        OPT_FLAGS="%{rpmcflags}" \
        XLIB_DIR=%{_libdir} \
        PROGS="glxgears" \
-       APP_LIB_DEPS="-L../../lib -lGL"
+       APP_LIB_DEPS="-L../../${lib} -lGL"
 
 %{__make} -C progs/xdemos \
        CC="%{__cc}" \
@@ -659,9 +666,9 @@ mv -f lib lib-osmesa
        OPT_FLAGS="%{rpmcflags}" \
        XLIB_DIR=%{_libdir} \
        PROGS="glxinfo" \
-       APP_LIB_DEPS="-L../../lib -lGL -L../../lib-dri -lGLU"
+       APP_LIB_DEPS="-L../../${lib} -lGL -lGLU"
 
-mv -f lib lib-dri
+mv -f ${lib} lib-dri
 
 # TODO: glw.pc (missing in 7.0.2 tarball)
 for d in mesa glu ; do
This page took 0.396745 seconds and 4 git commands to generate.