File: rules

package info (click to toggle)
libwx-glcanvas-perl 0.09-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 144 kB
  • sloc: cpp: 644; perl: 311; makefile: 17
file content (29 lines) | stat: -rwxr-xr-x 851 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

ARCHLIB := $(shell perl -MConfig -e'print substr($$Config{vendorarch},1)')

%:
	dh $@

override_dh_auto_build:
	# Move the wx embedded code copy out of the way
	if [ -d wx ]; then rm -rf wx_disabled && mv wx wx_disabled; fi

	dh_auto_build

override_dh_auto_clean:
	dh_auto_clean

	# Move the wx embedded code copy back
	if [ -d wx_disabled ]; then rm -rf wx && mv wx_disabled wx; fi

override_dh_auto_install:
	dh_auto_install
	mkdir -p $(CURDIR)/debian/libwx-glcanvas-perl/usr/share/doc/libwx-glcanvas-perl
	mv $(CURDIR)/debian/libwx-glcanvas-perl/$(ARCHLIB)/Wx/DemoModules $(CURDIR)/debian/libwx-glcanvas-perl/usr/share/doc/libwx-glcanvas-perl/examples

override_dh_auto_test:
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
	# Gtk needs a X server to be imported, hence the need for xvfb-run
	xvfb-run -a dh_auto_test
endif