File: rules

package info (click to toggle)
wxastrocapture 1.8.1%2Bgit20140821.796e1a1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 42,212 kB
  • sloc: cpp: 43,421; sh: 733; perl: 246; makefile: 14
file content (28 lines) | stat: -rwxr-xr-x 895 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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS=hardening=-pie,+fortify
export DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk


%:
	dh $@

override_dh_auto_configure:
	cbp2make -in wxWebcamDB.cbp -unix -out Makefile -targets UX_Release
	#cbp2make -in wxWebcamDB.cbp -unix -out Makefile -targets UX_Debug

override_dh_auto_build:
	# Compile with NDEBUG defined to handle assertion failures quietly line
	# wx2.8 does by default.
	$(MAKE) CFLAGS='-g -DNDEBUG'

VERSION=1.8.1
get-orig-source:
	#git clone https://github.com/wxAstro/wxAstroCapture.git wxAstroCapture-$(VERSION)
	tar --exclude bin --exclude doc --exclude .git -cJvf ../wxAstroCapture_$(VERSION)+git$(shell date +"%Y%m%d")+dfsg.tar.xz wxAstroCapture-$(VERSION)
	rm -rf ../wxAstroCapture-$(VERSION)
	mv wxAstroCapture-$(VERSION) ..