1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
export CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
export CFLAGS := $(shell dpkg-buildflags --get CFLAGS)
export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
export DEB_CFLAGS_MAINT_APPEND +=$(shell getconf LFS_CFLAGS)
export DEB_LDFLAGS_MAINT_APPEND +=$(shell getconf LFS_LDFLAGS)
override_dh_auto_configure:
dh_auto_configure -- --disable-silent-rules --libdir=\$${exec_prefix}/lib
override_dh_auto_install:
dh_auto_install --destdir=debian/tmp
override_dh_install: xdepends
find debian/tmp -name '*.la' -delete
dh_install --fail-missing
override_dh_installdocs:
dh_installdocs --link-doc=xserver-xorg-video-geode NEWS README TODO
override_dh_shlibdeps:
dh_shlibdeps -- --warnings=6
override_dh_strip:
dh_strip --dbg-package=xserver-xorg-video-geode-dbg
%:
dh $@ --with quilt,autoreconf --builddirectory=build/
XMINVERS = $(shell cat /usr/share/xserver-xorg/serverminver 2>/dev/null)
VIDEOABI = $(shell cat /usr/share/xserver-xorg/videoabiver 2>/dev/null)
VIDEODEP = $(shell cat /usr/share/xserver-xorg/videodrvdep 2>/dev/null)
xdepends:
ifneq ($(XMINVERS),)
echo "xviddriver:Depends=xserver-xorg-core (>= $(XMINVERS))" >> debian/xserver-xorg-video-geode.substvars
endif
ifneq ($(VIDEOABI),)
echo "xviddriver:Provides=xserver-xorg-video-$(VIDEOABI)" >> debian/xserver-xorg-video-geode.substvars
endif
ifneq ($(VIDEODEP),)
echo "xviddriver:Depends=$(VIDEODEP)" >> debian/xserver-xorg-video-geode.substvars
endif
.PHONY: xdepends
|