]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - mesa/mesa.nm
Merge remote-tracking branch 'stevee/x-system-update'
[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
SS
7version = 9.0.2
8release = 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
802ea3af 47 CFLAGS += -Wl,-z,lazy
a706d7c5 48
23c2d096
SS
49 if "%{DISTRO_PLATFORM}" == "x86"
50 platform_drivers = ,i915,i965
51 end
52
802ea3af 53 configure_options += \
23c2d096
SS
54 --enable-pic \
55 --enable-selinux \
802ea3af 56 --enable-pic \
291f526b 57 --enable-dri \
23c2d096
SS
58 --with-dri-drivers="nouveau,radeon,r200%{platform_drivers}" \
59 --with-gallium-drivers=swrast \
60 --disable-asm \
23c2d096
SS
61 --disable-gallium-llvm \
62 --disable-gallium-egl \
802ea3af 63 --disable-egl \
23c2d096 64 --disable-static \
802ea3af 65 --without-demos
a706d7c5 66
23c2d096
SS
67 prepare_cmds
68 # Defaults to dri (not xlib) for libGL on all arches.
69 sed -i 's/^default_driver.*$/default_driver="dri"/' configure.ac
291f526b
SS
70
71 # Regenerate build system.
72 autoreconf -vfi
23c2d096 73 end
802ea3af 74end
a706d7c5 75
802ea3af 76packages
291f526b
SS
77 package dri-drivers
78 summary = Mesa-based DRI drivers.
79 description
80 This package contains the Mesa-based DRI drivers.
81 end
82
83 obsoletes
84 mesa <= 7.11.2-2
85 end
86
87 files
88 %{sysconfdir}/drirc
89 %{libdir}/libdri*.so.*
90 %{libdir}/dri/*
91 end
92 end
93
94 package libGL
95 summary = Mesa libGL runtime library.
96 description
97 This package contains the Mesa libGL runtime libraries.
98 end
99
100 obsoletes
101 mesa <= 7.11.2-2
102 end
103
104 files
105 %{libdir}/libGL.so.*
106 end
107 end
108
109 package libglapi
110 summary = Mesa shared glapi.
111 description
112 This package contains the shared glapi of Mesa.
113 end
114
115 obsoletes
116 mesa <= 7.11.2-2
117 end
118
119 files
120 %{libdir}/libglapi.so.*
121 end
122 end
acc4346e 123
802ea3af
MT
124 package %{name}-devel
125 template DEVEL
bcf28dbe 126
a0282c36
MT
127 provides
128 libGL-devel = %{thisver}
129 end
130
802ea3af
MT
131 requires
132 libX11-devel
133 end
134 end
1f9bc2f0
MT
135
136 package %{name}-debuginfo
137 template DEBUGINFO
138 end
802ea3af 139end