]> git.ipfire.org Git - ipfire-3.x.git/blame - mesa/mesa.nm
kernel: Update to 5.3.7
[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
b03bb81b 8release = 4
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 47 if "%{DISTRO_PLATFORM}" == "x86"
b03bb81b 48 platform_drivers = nouveau,radeon,i915,i965
23c2d096
SS
49 end
50
802ea3af 51 configure_options += \
23c2d096
SS
52 --enable-pic \
53 --enable-selinux \
802ea3af 54 --enable-pic \
291f526b 55 --enable-dri \
9237f504 56 --enable-egl \
b03bb81b 57 --with-dri-drivers="%{platform_drivers}" \
23c2d096
SS
58 --with-gallium-drivers=swrast \
59 --disable-asm \
23c2d096
SS
60 --disable-gallium-llvm \
61 --disable-gallium-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
9237f504
AM
92 package libEGL
93 summary = Mesa libEGL runtime library.
94 description
95 This package contains the Mesa libEGL runtime libraries.
96 end
97
98 files
99 %{libdir}/libEGL.so.*
100 end
101 end
102
291f526b
SS
103 package libGL
104 summary = Mesa libGL runtime library.
105 description
106 This package contains the Mesa libGL runtime libraries.
107 end
108
109 obsoletes
110 mesa <= 7.11.2-2
111 end
112
113 files
114 %{libdir}/libGL.so.*
115 end
116 end
117
118 package libglapi
119 summary = Mesa shared glapi.
120 description
121 This package contains the shared glapi of Mesa.
122 end
123
124 obsoletes
125 mesa <= 7.11.2-2
126 end
127
128 files
129 %{libdir}/libglapi.so.*
130 end
131 end
acc4346e 132
802ea3af
MT
133 package %{name}-devel
134 template DEVEL
bcf28dbe 135
a0282c36 136 provides
9237f504 137 libEGL-devel = %{thisver}
a0282c36
MT
138 libGL-devel = %{thisver}
139 end
140
802ea3af
MT
141 requires
142 libX11-devel
143 end
144 end
1f9bc2f0
MT
145
146 package %{name}-debuginfo
147 template DEBUGINFO
148 end
802ea3af 149end