]>
Commit | Line | Data |
---|---|---|
1 | ############################################################################### | |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
6 | name = mesa | |
7 | version = 9.0.2 | |
8 | release = 1.1 | |
9 | ||
10 | groups = Development/Tools | |
11 | url = http://www.mesa3d.org | |
12 | license = MIT | |
13 | summary = Mesa graphics libraries. | |
14 | ||
15 | description | |
16 | Mesa libGL runtime libraries and DRI drivers. | |
17 | end | |
18 | ||
19 | source_dl = ftp://ftp.freedesktop.org/pub/mesa/%{version}/ | |
20 | sources = MesaLib-%{version}.tar.bz2 | |
21 | ||
22 | build | |
23 | requires | |
24 | autoconf | |
25 | automake | |
26 | bison | |
27 | expat-devel | |
28 | flex | |
29 | gcc-c++ | |
30 | pkg-config | |
31 | libX11-devel | |
32 | libXdamage-devel | |
33 | libXext-devel | |
34 | libXfixes-devel | |
35 | libXxf86vm-devel | |
36 | libdrm-devel >= 2.4.40 | |
37 | libselinux-devel | |
38 | libtool | |
39 | libxcb-devel | |
40 | libxml2-devel | |
41 | makedepend | |
42 | xorg-x11-proto-devel | |
43 | end | |
44 | ||
45 | DIR_APP = %{DIR_SRC}/Mesa-%{version} | |
46 | ||
47 | if "%{DISTRO_PLATFORM}" == "x86" | |
48 | platform_drivers = ,i915,i965 | |
49 | end | |
50 | ||
51 | configure_options += \ | |
52 | --enable-pic \ | |
53 | --enable-selinux \ | |
54 | --enable-pic \ | |
55 | --enable-dri \ | |
56 | --with-dri-drivers="nouveau,radeon,r200%{platform_drivers}" \ | |
57 | --with-gallium-drivers=swrast \ | |
58 | --disable-asm \ | |
59 | --disable-gallium-llvm \ | |
60 | --disable-gallium-egl \ | |
61 | --disable-egl \ | |
62 | --disable-static \ | |
63 | --without-demos | |
64 | ||
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 | |
68 | ||
69 | # Regenerate build system. | |
70 | autoreconf -vfi | |
71 | end | |
72 | end | |
73 | ||
74 | packages | |
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 | |
121 | ||
122 | package %{name}-devel | |
123 | template DEVEL | |
124 | ||
125 | provides | |
126 | libGL-devel = %{thisver} | |
127 | end | |
128 | ||
129 | requires | |
130 | libX11-devel | |
131 | end | |
132 | end | |
133 | ||
134 | package %{name}-debuginfo | |
135 | template DEBUGINFO | |
136 | end | |
137 | end |