File: rules

package info (click to toggle)
libwx-glcanvas-perl 0.09-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 144 kB
  • sloc: cpp: 644; perl: 311; makefile: 18
file content (31 lines) | stat: -rwxr-xr-x 1,009 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
30
31
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk
PERLVER := $(shell perl -MConfig -e 'print $$Config{version}')
ARCHLIB := $(shell perl -I/usr/lib/$(DEB_HOST_MULTIARCH)/perl/cross-config-$(PERLVER) -MConfig -e 'print substr($$Config{vendorarch},1)')

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	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:
	# Gtk needs a X server to be imported, hence the need for xvfb-run
	xvfb-run -a dh_auto_test