|
4
by Daniel Stone
Stop providing libgl1-mesa-dri from libgl1-mesa. |
1 |
#!/usr/bin/make -f
|
|
22
by Sebastien Bacher, Timo Aaltonen
* debian/control: |
2 |
# debian/rules for the Debian mesa package
|
3 |
# Copyright © 2006 Thierry Reding <thierry@gilfi.de>
|
|
4 |
||
5 |
# Uncomment this to turn on verbose mode.
|
|
6 |
#export DH_VERBOSE=1
|
|
|
51
by Michael Vogt
merged with debian-experimental |
7 |
unexport LDFLAGS |
|
3.1.2
by Julien Cristau
Update debian/copyright to the SGI Free Software License B, version 2.0. |
8 |
|
|
3
by Steinar H. Gunderson
* Non-Maintainer Upload. |
9 |
CFLAGS = -Wall -g |
|
55
by Timo Aaltonen
* Merge from debian experimental, remaining changes: |
10 |
ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS))) |
|
4
by Daniel Stone
Stop providing libgl1-mesa-dri from libgl1-mesa. |
11 |
CFLAGS += -O0 |
12 |
else
|
|
13 |
CFLAGS += -O2 |
|
14 |
endif
|
|
|
55
by Timo Aaltonen
* Merge from debian experimental, remaining changes: |
15 |
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) |
16 |
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) |
|
17 |
MAKEFLAGS += -j$(NUMJOBS) |
|
|
4
by Daniel Stone
Stop providing libgl1-mesa-dri from libgl1-mesa. |
18 |
endif
|
19 |
||
|
22
by Sebastien Bacher, Timo Aaltonen
* debian/control: |
20 |
DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH) |
|
49
by Timo Aaltonen
Merge with debian git, fixes FTBFS on sparc/hppa/ia64. |
21 |
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) |
22 |
DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) |
|
|
48
by Timo Aaltonen, Bryce Harrington, Timo Aaltonen
[ Bryce Harrington ] |
23 |
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) |
|
22
by Sebastien Bacher, Timo Aaltonen
* debian/control: |
24 |
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) |
|
49
by Timo Aaltonen
Merge with debian git, fixes FTBFS on sparc/hppa/ia64. |
25 |
DEB_HOST_GNU_CPU ?= $(shell dpkg-architecture -qDEB_HOST_GNU_CPU) |
|
3.1.9
by Brice Goglin, Julien Cristau, Brice Goglin
[ Julien Cristau ] |
26 |
DEB_BUILD_DIR ?= $(CURDIR)/build |
|
48
by Timo Aaltonen, Bryce Harrington, Timo Aaltonen
[ Bryce Harrington ] |
27 |
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) |
28 |
confflags += --build=$(DEB_HOST_GNU_TYPE) |
|
29 |
else
|
|
30 |
confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) |
|
31 |
endif
|
|
|
22
by Sebastien Bacher, Timo Aaltonen
* debian/control: |
32 |
|
33 |
# choose which configurations to build
|
|
34 |
include debian/scripts/choose-configs |
|
35 |
||
36 |
# build the following configurations by default
|
|
37 |
CONFIGS = $(SWX11_GLU_CONFIGS) \ |
|
|
48
by Timo Aaltonen, Bryce Harrington, Timo Aaltonen
[ Bryce Harrington ] |
38 |
dri \
|
39 |
osmesa \
|
|
40 |
osmesa-static \ |
|
41 |
osmesa16 \
|
|
42 |
osmesa16-static \ |
|
43 |
osmesa32 \
|
|
44 |
osmesa32-static |
|
|
22
by Sebastien Bacher, Timo Aaltonen
* debian/control: |
45 |
|
|
48
by Timo Aaltonen, Bryce Harrington, Timo Aaltonen
[ Bryce Harrington ] |
46 |
STAMP_DIR = debian/stamp |
|
22
by Sebastien Bacher, Timo Aaltonen
* debian/control: |
47 |
STAMP = $(STAMP_DIR)/$(DEB_BUILD_GNU_TYPE) |
48 |
BUILD_STAMPS = $(addprefix $(STAMP)-build-, $(CONFIGS)) |
|
|
48
by Timo Aaltonen, Bryce Harrington, Timo Aaltonen
[ Bryce Harrington ] |
49 |
|
50 |
QUILT_STAMPFN = $(STAMP_DIR)/patch |
|
51 |
include /usr/share/quilt/quilt.make |
|
52 |
||
|
3.1.6
by Julien Cristau, Timo Aaltonen, Julien Cristau
[ Timo Aaltonen ] |
53 |
# temporary until we figure out what to build
|
54 |
confflags += --disable-gallium |
|
55 |
||
|
49
by Timo Aaltonen
Merge with debian git, fixes FTBFS on sparc/hppa/ia64. |
56 |
confflags-common = \ |
|
3.1.6
by Julien Cristau, Timo Aaltonen, Julien Cristau
[ Timo Aaltonen ] |
57 |
--disable-egl \ |
|
49
by Timo Aaltonen
Merge with debian git, fixes FTBFS on sparc/hppa/ia64. |
58 |
--disable-glu \ |
59 |
--disable-glut \ |
|
60 |
--disable-glw \ |
|
61 |
CFLAGS="$(CFLAGS)" |
|
62 |
||
63 |
DRI_DRIVERS = swrast |
|
64 |
||
65 |
# hurd doesn't do direct rendering
|
|
66 |
ifeq ($(DEB_HOST_ARCH_OS), hurd) |
|
67 |
DIRECT_RENDERING = --disable-driglx-direct |
|
68 |
else
|
|
69 |
DIRECT_RENDERING = --enable-driglx-direct |
|
|
3.1.5
by Julien Cristau
* New upstream release candidate. |
70 |
ifeq ($(DEB_HOST_ARCH), lpia) |
71 |
DRI_DRIVERS += i915 i965 |
|
|
3.2.3
by Julien Cristau, Julien Cristau, Brice Goglin
[ Julien Cristau ] |
72 |
else ifneq ($(DEB_HOST_ARCH), s390) |
|
3.1.7
by Brice Goglin
* New upstream release candidate. |
73 |
DRI_DRIVERS += mach64 mga r128 r200 r300 r600 radeon savage tdfx |
|
3.1.5
by Julien Cristau
* New upstream release candidate. |
74 |
ifeq ($(DEB_HOST_GNU_CPU), i486) |
|
49
by Timo Aaltonen
Merge with debian git, fixes FTBFS on sparc/hppa/ia64. |
75 |
DRI_DRIVERS += i810 i915 i965 sis unichrome |
|
3.1.5
by Julien Cristau
* New upstream release candidate. |
76 |
else ifeq ($(DEB_HOST_GNU_CPU), x86_64) |
|
49
by Timo Aaltonen
Merge with debian git, fixes FTBFS on sparc/hppa/ia64. |
77 |
DRI_DRIVERS += i915 i965 sis unichrome |
|
3.1.5
by Julien Cristau
* New upstream release candidate. |
78 |
else ifeq ($(DEB_HOST_ARCH), sparc) |
|
49
by Timo Aaltonen
Merge with debian git, fixes FTBFS on sparc/hppa/ia64. |
79 |
DRI_DRIVERS += ffb |
|
3.2.10
by Brice Goglin
* New upstream release candidate. |
80 |
else ifeq ($(DEB_HOST_ARCH), sparc64) |
81 |
DRI_DRIVERS += ffb |
|
|
3.1.5
by Julien Cristau
* New upstream release candidate. |
82 |
endif
|
83 |
endif
|
|
|
49
by Timo Aaltonen
Merge with debian git, fixes FTBFS on sparc/hppa/ia64. |
84 |
endif
|
85 |
||
86 |
confflags-dri = \ |
|
87 |
--with-driver=dri \ |
|
88 |
--with-dri-drivers="$(DRI_DRIVERS)" \ |
|
89 |
--with-demos=xdemos \ |
|
90 |
--libdir=/usr/lib/glx \ |
|
91 |
--with-dri-driverdir=/usr/lib/dri \ |
|
92 |
--enable-glx-tls \ |
|
93 |
$(DIRECT_RENDERING) \ |
|
94 |
$(confflags-common) |
|
95 |
||
|
110
by Timo Aaltonen, Alberto Milone
[ Alberto Milone ] |
96 |
# Add /usr/lib32/dri/ on 32 bit systems so that this path is used
|
97 |
# for 32 bit compatibility on 64 bit systems
|
|
98 |
ifeq ($(DEB_BUILD_ARCH),i386) |
|
99 |
confflags-dri += --with-dri-searchpath=/usr/lib/dri:/usr/lib32/dri |
|
100 |
endif
|
|
101 |
||
|
49
by Timo Aaltonen
Merge with debian git, fixes FTBFS on sparc/hppa/ia64. |
102 |
confflags-osmesa = \ |
103 |
--with-driver=osmesa \ |
|
104 |
--with-demos= \ |
|
105 |
$(confflags-common) |
|
106 |
||
107 |
confflags-osmesa-static = \ |
|
108 |
--with-driver=osmesa \ |
|
109 |
--enable-static \ |
|
110 |
--with-demos= \ |
|
111 |
$(confflags-common) |
|
112 |
||
113 |
confflags-osmesa16 = \ |
|
114 |
--with-driver=osmesa \ |
|
115 |
--with-osmesa-bits=16 \ |
|
116 |
--with-demos= \ |
|
117 |
$(confflags-common) |
|
118 |
||
119 |
confflags-osmesa16-static = \ |
|
120 |
--with-driver=osmesa \ |
|
121 |
--with-osmesa-bits=16 \ |
|
122 |
--enable-static \ |
|
123 |
--with-demos= \ |
|
124 |
$(confflags-common) |
|
125 |
||
126 |
confflags-osmesa32 = \ |
|
127 |
--with-driver=osmesa \ |
|
128 |
--with-osmesa-bits=32 \ |
|
129 |
--with-demos= \ |
|
130 |
$(confflags-common) |
|
131 |
||
132 |
confflags-osmesa32-static = \ |
|
133 |
--with-driver=osmesa \ |
|
134 |
--with-osmesa-bits=32 \ |
|
135 |
--enable-static \ |
|
136 |
--with-demos= \ |
|
137 |
$(confflags-common) |
|
138 |
||
139 |
confflags-swx11+glu = \ |
|
140 |
--with-driver=xlib \ |
|
141 |
--disable-gl-osmesa \ |
|
142 |
--with-demos= \ |
|
|
3.1.6
by Julien Cristau, Timo Aaltonen, Julien Cristau
[ Timo Aaltonen ] |
143 |
--disable-egl \ |
|
49
by Timo Aaltonen
Merge with debian git, fixes FTBFS on sparc/hppa/ia64. |
144 |
--disable-glut \ |
|
51
by Michael Vogt
merged with debian-experimental |
145 |
--disable-glw \ |
|
49
by Timo Aaltonen
Merge with debian git, fixes FTBFS on sparc/hppa/ia64. |
146 |
CFLAGS="$(CFLAGS)" |
147 |
||
148 |
confflags-swx11+glu-static = \ |
|
149 |
--with-driver=xlib \ |
|
150 |
--disable-gl-osmesa \ |
|
151 |
--enable-static \ |
|
152 |
--with-demos= \ |
|
|
3.1.6
by Julien Cristau, Timo Aaltonen, Julien Cristau
[ Timo Aaltonen ] |
153 |
--disable-egl \ |
|
49
by Timo Aaltonen
Merge with debian git, fixes FTBFS on sparc/hppa/ia64. |
154 |
--disable-glut \ |
|
51
by Michael Vogt
merged with debian-experimental |
155 |
--disable-glw \ |
|
49
by Timo Aaltonen
Merge with debian git, fixes FTBFS on sparc/hppa/ia64. |
156 |
CFLAGS="$(CFLAGS)" |
157 |
||
158 |
confflags-swx11+glu-i386-i686 = \ |
|
159 |
--with-driver=xlib \ |
|
160 |
--disable-gl-osmesa \ |
|
161 |
--with-demos= \ |
|
162 |
--disable-glut \ |
|
|
3.1.6
by Julien Cristau, Timo Aaltonen, Julien Cristau
[ Timo Aaltonen ] |
163 |
--disable-egl \ |
|
51
by Michael Vogt
merged with debian-experimental |
164 |
--disable-glw \ |
|
49
by Timo Aaltonen
Merge with debian git, fixes FTBFS on sparc/hppa/ia64. |
165 |
--libdir=/usr/lib/i686/cmov \ |
166 |
CFLAGS="$(CFLAGS) -march=i686" |
|
167 |
||
168 |
configure: $(QUILT_STAMPFN) configure.ac |
|
|
48
by Timo Aaltonen, Bryce Harrington, Timo Aaltonen
[ Bryce Harrington ] |
169 |
autoreconf -vfi |
|
22
by Sebastien Bacher, Timo Aaltonen
* debian/control: |
170 |
|
171 |
# list the configurations that will built
|
|
172 |
configs:
|
|
173 |
@echo Building the following configurations: $(CONFIGS) |
|
174 |
||
|
55
by Timo Aaltonen
* Merge from debian experimental, remaining changes: |
175 |
$(STAMP_DIR)/stamp: |
|
22
by Sebastien Bacher, Timo Aaltonen
* debian/control: |
176 |
dh_testdir
|
|
55
by Timo Aaltonen
* Merge from debian experimental, remaining changes: |
177 |
mkdir -p $(STAMP_DIR) |
178 |
>$@ |
|
|
22
by Sebastien Bacher, Timo Aaltonen
* debian/control: |
179 |
|
|
55
by Timo Aaltonen
* Merge from debian experimental, remaining changes: |
180 |
$(QUILT_STAMPFN): $(STAMP_DIR)/stamp |
|
22
by Sebastien Bacher, Timo Aaltonen
* debian/control: |
181 |
|
|
49
by Timo Aaltonen
Merge with debian git, fixes FTBFS on sparc/hppa/ia64. |
182 |
build: $(BUILD_STAMPS) |
|
48
by Timo Aaltonen, Bryce Harrington, Timo Aaltonen
[ Bryce Harrington ] |
183 |
|
|
49
by Timo Aaltonen
Merge with debian git, fixes FTBFS on sparc/hppa/ia64. |
184 |
$(STAMP)-build-%: configure |
|
22
by Sebastien Bacher, Timo Aaltonen
* debian/control: |
185 |
dh_testdir
|
|
48
by Timo Aaltonen, Bryce Harrington, Timo Aaltonen
[ Bryce Harrington ] |
186 |
|
|
22
by Sebastien Bacher, Timo Aaltonen
* debian/control: |
187 |
mkdir -p $(DEB_BUILD_DIR)/$* |
188 |
find $(CURDIR)/* -maxdepth 0 -not -path '$(DEB_BUILD_DIR)*' | \ |
|
189 |
xargs cp -rlf -t $(DEB_BUILD_DIR)/$*
|
|
|
48
by Timo Aaltonen, Bryce Harrington, Timo Aaltonen
[ Bryce Harrington ] |
190 |
cd $(DEB_BUILD_DIR)/$* && \
|
191 |
../../configure --prefix=/usr --mandir=\$${prefix}/share/man \
|
|
192 |
--infodir=\$${prefix}/share/info --sysconfdir=/etc \
|
|
193 |
--localstatedir=/var $(confflags) $(confflags-$*)
|
|
|
22
by Sebastien Bacher, Timo Aaltonen
* debian/control: |
194 |
cd $(DEB_BUILD_DIR)/$* && $(MAKE)
|
|
48
by Timo Aaltonen, Bryce Harrington, Timo Aaltonen
[ Bryce Harrington ] |
195 |
|
|
22
by Sebastien Bacher, Timo Aaltonen
* debian/control: |
196 |
touch $@
|
197 |
||
|
3.2.8
by Brice Goglin, Brice Goglin, Julien Cristau
[ Brice Goglin ] |
198 |
install: build
|
|
55
by Timo Aaltonen
* Merge from debian experimental, remaining changes: |
199 |
# Add here commands to install the package into debian/tmp
|
|
22
by Sebastien Bacher, Timo Aaltonen
* debian/control: |
200 |
dh_testdir
|
201 |
dh_testroot
|
|
|
29
by Kyle McMartin, Kyle McMartin
* Update Maintainer for Ubuntu |
202 |
dh_clean -k
|
|
48
by Timo Aaltonen, Bryce Harrington, Timo Aaltonen
[ Bryce Harrington ] |
203 |
dh_installdirs
|
|
3.2.8
by Brice Goglin, Brice Goglin, Julien Cristau
[ Brice Goglin ] |
204 |
set -e; for config in $(CONFIGS); do \
|
205 |
$(MAKE) -C $(DEB_BUILD_DIR)/$$config DESTDIR=$(CURDIR)/debian/tmp install; \
|
|
|
81
by Timo Aaltonen
* Merge from Debian experimental, remaining changes: |
206 |
done
|
|
55
by Timo Aaltonen
* Merge from debian experimental, remaining changes: |
207 |
|
|
22
by Sebastien Bacher, Timo Aaltonen
* debian/control: |
208 |
clean: unpatch
|
209 |
dh_testdir
|
|
210 |
dh_testroot
|
|
|
48
by Timo Aaltonen, Bryce Harrington, Timo Aaltonen
[ Bryce Harrington ] |
211 |
rm -rf .pc
|
212 |
|
|
213 |
rm -f config.cache config.log config.status
|
|
214 |
rm -f */config.cache */config.log */config.status |
|
215 |
rm -f conftest* */conftest* |
|
216 |
rm -rf autom4te.cache */autom4te.cache |
|
|
3.1.9
by Brice Goglin, Julien Cristau, Brice Goglin
[ Julien Cristau ] |
217 |
rm -rf build |
|
48
by Timo Aaltonen, Bryce Harrington, Timo Aaltonen
[ Bryce Harrington ] |
218 |
rm -rf configure config.guess config.sub config.h.in |
219 |
rm -rf $$(find -name Makefile.in) |
|
220 |
rm -rf aclocal.m4 missing depcomp install-sh ltmain.sh |
|
221 |
rm -rf $(STAMP_DIR) |
|
222 |
||
223 |
dh_clean
|
|
|
22
by Sebastien Bacher, Timo Aaltonen
* debian/control: |
224 |
|
225 |
# Build architecture-independent files here.
|
|
|
49
by Timo Aaltonen
Merge with debian git, fixes FTBFS on sparc/hppa/ia64. |
226 |
binary-indep: install |
|
22
by Sebastien Bacher, Timo Aaltonen
* debian/control: |
227 |
|
228 |
# Build architecture-dependent files here.
|
|
|
55
by Timo Aaltonen
* Merge from debian experimental, remaining changes: |
229 |
binary-arch: install |
|
22
by Sebastien Bacher, Timo Aaltonen
* debian/control: |
230 |
dh_testdir
|
231 |
dh_testroot
|
|
|
3.2.6
by Brice Goglin
* Pull from upstream mesa_7_5_branch up to commit b4ba6a66 |
232 |
dh_installchangelogs -s |
233 |
dh_installchangelogs -pmesa-common-dev ChangeLog |
|
|
4
by Daniel Stone
Stop providing libgl1-mesa-dri from libgl1-mesa. |
234 |
dh_installdocs -s |
|
22
by Sebastien Bacher, Timo Aaltonen
* debian/control: |
235 |
dh_installexamples -s |
|
48
by Timo Aaltonen, Bryce Harrington, Timo Aaltonen
[ Bryce Harrington ] |
236 |
dh_install -s --sourcedir=debian/tmp --list-missing |
|
103
by Alberto Milone
* debian/libgl1-mesa-dev.links: |
237 |
|
238 |
# Create an ld.so.conf which says where to find libGL from Mesa |
|
239 |
echo "/usr/lib/mesa" \ |
|
240 |
> $(CURDIR)/debian/libgl1-mesa-glx/usr/lib/mesa/ld.so.conf |
|
|
108
by Timo Aaltonen, Timo Aaltonen, Robert Hooker
[ Timo Aaltonen ] |
241 |
echo "/usr/lib/mesa" \ |
242 |
> $(CURDIR)/debian/libgl1-mesa-swx11/usr/lib/mesa/ld.so.conf |
|
|
103
by Alberto Milone
* debian/libgl1-mesa-dev.links: |
243 |
|
244 |
ifeq ($(DEB_BUILD_ARCH),amd64) |
|
245 |
# Add the path to 32bit libGL from Mesa (on 64 bit) |
|
246 |
echo "/usr/lib32/mesa" \ |
|
247 |
>> $(CURDIR)/debian/libgl1-mesa-glx/usr/lib/mesa/ld.so.conf |
|
|
108
by Timo Aaltonen, Timo Aaltonen, Robert Hooker
[ Timo Aaltonen ] |
248 |
echo "/usr/lib32/mesa" \ |
249 |
>> $(CURDIR)/debian/libgl1-mesa-swx11/usr/lib/mesa/ld.so.conf |
|
|
103
by Alberto Milone
* debian/libgl1-mesa-dev.links: |
250 |
endif
|
251 |
||
252 |
# Empty directory for the alternative |
|
253 |
mkdir -p $(CURDIR)/debian/libgl1-mesa-glx/usr/lib/xorg/x11-extra-modules |
|
|
108
by Timo Aaltonen, Timo Aaltonen, Robert Hooker
[ Timo Aaltonen ] |
254 |
mkdir -p $(CURDIR)/debian/libgl1-mesa-swx11/usr/lib/xorg/x11-extra-modules |
|
103
by Alberto Milone
* debian/libgl1-mesa-dev.links: |
255 |
|
|
22
by Sebastien Bacher, Timo Aaltonen
* debian/control: |
256 |
dh_installman -s |
|
3.3.1
by Brice Goglin, Brice Goglin, Julien Cristau
[ Brice Goglin ] |
257 |
dh_lintian -s |
|
22
by Sebastien Bacher, Timo Aaltonen
* debian/control: |
258 |
dh_link -s |
259 |
dh_strip -plibgl1-mesa-swx11 --dbg-package=libgl1-mesa-swx11-dbg |
|
260 |
dh_strip -plibgl1-mesa-glx --dbg-package=libgl1-mesa-glx-dbg |
|
261 |
dh_strip -plibgl1-mesa-dri --dbg-package=libgl1-mesa-dri-dbg |
|
|
4
by Daniel Stone
Stop providing libgl1-mesa-dri from libgl1-mesa. |
262 |
dh_strip -s |
263 |
dh_compress -s |
|
264 |
dh_fixperms -s |
|
|
103
by Alberto Milone
* debian/libgl1-mesa-dev.links: |
265 |
dh_makeshlibs -s |
|
4
by Daniel Stone
Stop providing libgl1-mesa-dri from libgl1-mesa. |
266 |
dh_installdeb -s |
|
102
by Stefan Potyra
Add -l/usr/lib/mesa to dh_shlibdeps to fix FTBFS, thanks to |
267 |
dh_shlibdeps -s -l/usr/lib/mesa |
|
4
by Daniel Stone
Stop providing libgl1-mesa-dri from libgl1-mesa. |
268 |
dh_gencontrol -s |
269 |
dh_md5sums -s |
|
|
53
by Martin Pitt
Build .debs with lzma compression to reduce libgl1-mesa-dri from 13.2 to |
270 |
dh_builddeb -s -- -Zlzma |
|
11
by Rodrigo Parra Novo
* Merged package with Debian, using their orig.tar.gz (newer than ours), |
271 |
|
|
4
by Daniel Stone
Stop providing libgl1-mesa-dri from libgl1-mesa. |
272 |
binary: binary-indep binary-arch |
|
48
by Timo Aaltonen, Bryce Harrington, Timo Aaltonen
[ Bryce Harrington ] |
273 |
.PHONY: configs build clean binary-indep binary-arch binary install |