]> git.pld-linux.org Git - packages/X11-driver-firegl.git/commitdiff
- new bconds and cleanups. NFY...
authorPaweł Sikora <pluto@pld-linux.org>
Wed, 7 Apr 2004 16:25:38 +0000 (16:25 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    X11-driver-firegl.spec -> 1.41

X11-driver-firegl.spec

index 8841aed6268a87c73e1630f6bcf6cd68edff43c2..2c2bf0fb3d0b72d6f9e4799ee11f4f1ee3f9e523 100644 (file)
@@ -2,7 +2,9 @@
 # Conditional build:
 %bcond_without dist_kernel     # without distribution kernel
 %bcond_without kernel          # don't build kernel modules
+%bcond_without smp             # don't build SMP module
 %bcond_without userspace       # don't build userspace tools
+%bcond_with    verbose         # verbose build (V=1)
 #
 
 %define                _min_xfree      4.3.0
@@ -38,7 +40,7 @@ Provides:     XFree86-OpenGL-core = %{_min_xfree}
 Provides:      XFree86-OpenGL-libGL
 Obsoletes:     Mesa
 Obsoletes:     XFree86-OpenGL-libGL
-ExclusiveArch: i586 i686 athlon
+ExclusiveArch: i586 i686 athlon pentium3 pentium4
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _noautoreqdep   libGL.so.1.2
@@ -103,15 +105,31 @@ tar -xzf usr/src/ATI/fglrx_panel_sources.tgz -C panel_src
 %build
 %if %{with kernel}
 cd lib/modules/fglrx/build_mod
-cp make.sh make.sh.org && rm -f make.sh
-sed -e 's#gcc#%{kgcc}#g' -e 's#`id -u` -ne 0#`id -u` -ne `id -u`#g' make.sh.org > make.sh
-chmod 755 make.sh
-./make.sh \
-       SMP=1
-mv fglrx.ko fglrx-smp.ko
-./make.sh clean
-./make.sh
-cd ../../../..
+cp 2.6.x/Makefile .
+for cfg in %{?with_dist_kernel:%{?with_smp:smp} up}%{!?with_dist_kernel:nondist}; do
+    if [ ! -r "%{_kernelsrcdir}/config-$cfg" ]; then
+       exit 1
+    fi
+    rm -rf include
+    install -d include/{linux,config}
+    %{__make} -C %{_kernelsrcdir} mrproper \
+       SUBDIRS=$PWD \
+       O=$PWD \
+       %{?with_verbose:V=1}
+    ln -sf %{_kernelsrcdir}/config-$cfg .config
+#    %{__make} -C %{_kernelsrcdir} include/linux/autoconf.h \
+#      SUBDIRS=$PWD \
+#      O=$PWD \
+#      %{?with_verbose:V=1}
+    ln -sf %{_kernelsrcdir}/include/linux/autoconf-$cfg.h include/linux/autoconf.h
+    touch include/config/MARKER
+    %{__make} -C %{_kernelsrcdir} modules \
+       SUBDIRS=$PWD \
+       O=$PWD \
+       %{?with_verbose:V=1}
+    mv fglrx.ko fglrx-$cfg.ko
+done
+cd -
 %endif
 
 %if %{with userspace}
This page took 0.086543 seconds and 4 git commands to generate.