]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - mesa/mesa.nm
mesa: Don't link with -z lazy.
[people/ms/ipfire-3.x.git] / mesa / mesa.nm
CommitLineData
a706d7c5 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
a706d7c5
SS
4###############################################################################
5
802ea3af 6name = mesa
291f526b 7version = 9.0.2
8b84451c 8release = 1.1
a706d7c5 9
802ea3af
MT
10groups = Development/Tools
11url = http://www.mesa3d.org
12license = MIT
13summary = Mesa graphics libraries.
a706d7c5 14
802ea3af
MT
15description
16 Mesa libGL runtime libraries and DRI drivers.
17end
a706d7c5 18
23c2d096 19source_dl = ftp://ftp.freedesktop.org/pub/mesa/%{version}/
802ea3af 20sources = MesaLib-%{version}.tar.bz2
a706d7c5 21
802ea3af
MT
22build
23 requires
291f526b
SS
24 autoconf
25 automake
23c2d096 26 bison
802ea3af 27 expat-devel
23c2d096
SS
28 flex
29 gcc-c++
802ea3af
MT
30 pkg-config
31 libX11-devel
32 libXdamage-devel
33 libXext-devel
34 libXfixes-devel
35 libXxf86vm-devel
291f526b 36 libdrm-devel >= 2.4.40
802ea3af 37 libselinux-devel
291f526b 38 libtool
802ea3af 39 libxcb-devel
291f526b 40 libxml2-devel
23c2d096 41 makedepend
802ea3af
MT
42 xorg-x11-proto-devel
43 end
6d8410ca 44
802ea3af 45 DIR_APP = %{DIR_SRC}/Mesa-%{version}
a706d7c5 46
23c2d096
SS
47 if "%{DISTRO_PLATFORM}" == "x86"
48 platform_drivers = ,i915,i965
49 end
50
802ea3af 51 configure_options += \
23c2d096
SS
52 --enable-pic \
53 --enable-selinux \
802ea3af 54 --enable-pic \
291f526b 55 --enable-dri \
23c2d096
SS
56 --with-dri-drivers="nouveau,radeon,r200%{platform_drivers}" \
57 --with-gallium-drivers=swrast \
58 --disable-asm \
23c2d096
SS
59 --disable-gallium-llvm \
60 --disable-gallium-egl \
802ea3af 61 --disable-egl \
23c2d096 62 --disable-static \
802ea3af 63 --without-demos
a706d7c5 64
23c2d096
SS
65 prepare_cmds
66 # Defaults to dri (not xlib) for libGL on all arches.
67 sed -i 's/^default_driver.*$/default_driver="dri"/' configure.ac
291f526b
SS
68
69 # Regenerate build system.
70 autoreconf -vfi
23c2d096 71 end
802ea3af 72end
a706d7c5 73
802ea3af 74packages
291f526b
SS
75 package dri-drivers
76 summary = Mesa-based DRI drivers.
77 description
78 This package contains the Mesa-based DRI drivers.
79 end
80
81 obsoletes
82 mesa <= 7.11.2-2
83 end
84
85 files
86 %{sysconfdir}/drirc
87 %{libdir}/libdri*.so.*
88 %{libdir}/dri/*
89 end
90 end
91
92 package libGL
93 summary = Mesa libGL runtime library.
94 description
95 This package contains the Mesa libGL runtime libraries.
96 end
97
98 obsoletes
99 mesa <= 7.11.2-2
100 end
101
102 files
103 %{libdir}/libGL.so.*
104 end
105 end
106
107 package libglapi
108 summary = Mesa shared glapi.
109 description
110 This package contains the shared glapi of Mesa.
111 end
112
113 obsoletes
114 mesa <= 7.11.2-2
115 end
116
117 files
118 %{libdir}/libglapi.so.*
119 end
120 end
acc4346e 121
802ea3af
MT
122 package %{name}-devel
123 template DEVEL
bcf28dbe 124
a0282c36
MT
125 provides
126 libGL-devel = %{thisver}
127 end
128
802ea3af
MT
129 requires
130 libX11-devel
131 end
132 end
1f9bc2f0
MT
133
134 package %{name}-debuginfo
135 template DEBUGINFO
136 end
802ea3af 137end