############################################################################### # IPFire.org - An Open Source Firewall Solution # # Copyright (C) - IPFire Development Team # ############################################################################### name = mesa version = 7.11.2 release = 1 groups = Development/Tools url = http://www.mesa3d.org license = MIT summary = Mesa graphics libraries. description Mesa libGL runtime libraries and DRI drivers. end source_dl = ftp://ftp.freedesktop.org/pub/mesa/%{version}/ sources = MesaLib-%{version}.tar.bz2 build requires bison expat-devel flex gcc-c++ pkg-config libX11-devel libXdamage-devel libXext-devel libXfixes-devel libXxf86vm-devel libdrm-devel libselinux-devel libxcb-devel makedepend xorg-x11-proto-devel end DIR_APP = %{DIR_SRC}/Mesa-%{version} CFLAGS += -Wl,-z,lazy if "%{DISTRO_PLATFORM}" == "x86" platform_drivers = ,i915,i965 end configure_options += \ --enable-pic \ --enable-selinux \ --enable-pic \ --with-driver=dri \ --with-dri-drivers="nouveau,radeon,r200%{platform_drivers}" \ --with-gallium-drivers=swrast \ --disable-asm \ --disable-glw \ --disable-glu \ --disable-glut \ --disable-gallium-llvm \ --disable-gallium-egl \ --disable-egl \ --disable-static \ --without-demos prepare_cmds # Defaults to dri (not xlib) for libGL on all arches. sed -i 's/^default_driver.*$/default_driver="dri"/' configure.ac end end packages package %{name} package %{name}-devel template DEVEL requires libX11-devel end end package %{name}-debuginfo template DEBUGINFO end end