| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) |
| 4 |
|
| 5 |
ifeq ($(DEB_HOST_ARCH_OS), linux) |
| 6 |
SHMDIR = /dev/shm |
| 7 |
else |
| 8 |
# kfreebsd buildds don't seem to have writable /dev/shm |
| 9 |
SHMDIR = /tmp |
| 10 |
endif |
| 11 |
|
| 12 |
%: |
| 13 |
dh $@ --with quilt --builddirectory=build/ |
| 14 |
|
| 15 |
override_dh_makeshlibs: |
| 16 |
dh_makeshlibs --add-udeb=libxshmfence1-udeb -- -c4 |
| 17 |
|
| 18 |
override_dh_auto_configure: |
| 19 |
dh_auto_configure -- \ |
| 20 |
--disable-silent-rules \ |
| 21 |
--with-shared-memory-dir=$(SHMDIR) |
| 22 |
|
| 23 |
override_dh_auto_test: |
| 24 |
dh_auto_test -- VERBOSE=1 |