File: rules

package info (click to toggle)
scid 1%3A4.7.0%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 22,936 kB
  • sloc: tcl: 83,171; cpp: 42,674; sh: 1,627; python: 277; javascript: 201; makefile: 88; perl: 86
file content (35 lines) | stat: -rwxr-xr-x 1,089 bytes parent folder | download
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
#!/usr/bin/make -f

export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

%:
	dh $@ --with python3 --sourcedirectory=src

override_dh_auto_configure:
	./configure BINDIR="$(CURDIR)/debian/tmp/scid/usr/games" \
		SHAREDIR="$(CURDIR)/debian/tmp/scid/usr/share/scid" \
		OPTIMIZE="-O3 -fno-rtti -fno-exceptions" TB=""

override_dh_auto_install:
	$(MAKE) install_scid
	cp -R $(CURDIR)/sounds/ $(CURDIR)/debian/tmp/scid/usr/share/scid/
	chmod -R -x $(CURDIR)/debian/tmp/scid/usr/share/scid/sounds/
	chmod +x $(CURDIR)/debian/tmp/scid/usr/share/scid/tcl/start.tcl
	chmod +x $(CURDIR)/debian/tmp/scid/usr/share/scid/tcl/options.tcl
	chmod +x $(CURDIR)/debian/tmp/scid/usr/share/scid/tcl/contrib/ezsmtp/install.tcl
#	mv -f $(CURDIR)/debian/scid/usr/share/scid/data/ \
#		$(CURDIR)/debian/scid-data/usr/share/scid/

override_dh_install:
	dh_install -Xlicense.txt

override_dh_auto_clean:
	[ ! -f Makefile ] || $(MAKE) clean
	rm -f config.sub config.guess Makefile a.out
	dh_clean

override_dh_auto_build:
	dh_auto_build -- all_scid