diff options
author | Julien Cristau <jcristau@debian.org> | 2007-02-17 16:01:41 +0100 |
---|---|---|
committer | Julien Cristau <jcristau@debian.org> | 2007-02-17 16:01:41 +0100 |
commit | 9ed8b0c26438b90f187ef7c165d5a76cf8f340eb (patch) | |
tree | b816e87ee4c1661dccb0b2861373a2b8e437790f /debian/xsfbs | |
parent | 502f9412dcaa6abd23b94372d86824c895cea3b8 (diff) | |
download | xutils-dev-9ed8b0c26438b90f187ef7c165d5a76cf8f340eb.tar.gz |
Add new "serverabi" rule to generate drivers dependency on the server.
Diffstat (limited to 'debian/xsfbs')
-rwxr-xr-x | debian/xsfbs/xsfbs.mk | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/xsfbs/xsfbs.mk b/debian/xsfbs/xsfbs.mk index 7b8206e..dbb2872 100755 --- a/debian/xsfbs/xsfbs.mk +++ b/debian/xsfbs/xsfbs.mk @@ -354,6 +354,21 @@ $(STAMP_DIR)/genscripts: $(STAMP_DIR)/stampdir debian/shlibs.local: cat debian/*.shlibs >$@ +SERVERABI = $(shell cat /usr/share/xserver-xorg/serverabiver 2>/dev/null) +SERVER_DEPENDS = xserver-xorg-core (>= $(SERVERABI)) +ifeq ($(PACKAGE),) +PACKAGE=$(shell awk '/^Package:/ { print $$2; exit }' < debian/control) +endif + +.PHONY: serverabi +serverabi: +ifeq ($(SERVERABI),) + @echo error: xserver-xorg-dev needs to be installed + @exit 1 +else + echo "xserver:Depends=$(SERVER_DEPENDS)" >> debian/$(PACKAGE).substvars +endif + include debian/xsfbs/xsfbs-autoreconf.mk # vim:set noet ai sts=8 sw=8 tw=0: |