| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
PACKAGE = xserver-xorg-video-fbdev |
| 4 |
OOT = --builddirectory=build |
| 5 |
|
| 6 |
# Clean: |
| 7 |
override_dh_auto_clean: |
| 8 |
dh_auto_clean |
| 9 |
rm -rf build-main/ debian/tmp-main/ |
| 10 |
rm -rf build-udeb/ debian/tmp-udeb/ |
| 11 |
|
| 12 |
# Configuration, with or without xv: |
| 13 |
override_dh_auto_configure: |
| 14 |
dh_auto_configure $(OOT)-main/ -- \ |
| 15 |
--libdir=/usr/lib \ |
| 16 |
--enable-xv |
| 17 |
dh_auto_configure $(OOT)-udeb/ -- \ |
| 18 |
--libdir=/usr/lib \ |
| 19 |
--disable-xv |
| 20 |
|
| 21 |
# Build: |
| 22 |
override_dh_auto_build: |
| 23 |
$(MAKE) -C build-main/ |
| 24 |
$(MAKE) -C build-udeb/ |
| 25 |
|
| 26 |
# Install: |
| 27 |
override_dh_auto_install: |
| 28 |
$(MAKE) -C build-main/ install DESTDIR=$(CURDIR)/debian/tmp-main |
| 29 |
$(MAKE) -C build-udeb/ install DESTDIR=$(CURDIR)/debian/tmp-udeb |
| 30 |
|
| 31 |
# Kill *.la files, and forget no-one: |
| 32 |
override_dh_install: |
| 33 |
find debian/tmp-* -name '*.la' -delete |
| 34 |
dh_install -p$(PACKAGE) --sourcedir=debian/tmp-main |
| 35 |
dh_install -p$(PACKAGE)-udeb --sourcedir=debian/tmp-udeb |
| 36 |
|
| 37 |
override_dh_missing: |
| 38 |
dh_missing -p$(PACKAGE) --sourcedir=debian/tmp-main --fail-missing |
| 39 |
dh_missing -p$(PACKAGE)-udeb --sourcedir=debian/tmp-udeb --fail-missing |
| 40 |
|
| 41 |
# That's a plugin, use appropriate warning level: |
| 42 |
override_dh_shlibdeps: |
| 43 |
dh_shlibdeps -- --warnings=6 |
| 44 |
|
| 45 |
%: |
| 46 |
dh $@ --with quilt,xsf |