File: rules

package info (click to toggle)
gpsbabel 1.8.0%2Bds-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 98,500 kB
  • sloc: cpp: 104,835; xml: 13,342; sh: 1,933; ansic: 1,393; perl: 577; tcl: 138; makefile: 17; javascript: 9
file content (28 lines) | stat: -rwxr-xr-x 849 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
#!/usr/bin/make -f

export QT_SELECT := qt5

%:
	dh $@ --buildsystem=qmake

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# tests depending on a TZ with a small offset
export TZ='/usr/share/zoneinfo/Etc/GMT'

# Extended precision on i386 results in weird bugs, so we build
# with -ffloat-store.
ifneq (,$(filter $(DEB_BUILD_ARCH),i386))
CFLAGS += -ffloat-store
endif

override_dh_auto_configure:
	dh_auto_configure -- \
		WITH_LIBUSB=pkgconfig WITH_SHAPELIB=pkgconfig WITH_ZLIB=pkgconfig
	convert -resize 32x32 gui/images/appicon.png debian/gpsbabel.xpm
	xsltproc --output debian/gpsbabel.1 /usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook.xsl xmldoc/gpsbabel_man.xml

execute_after_dh_auto_build-arch:
	if dpkg -s qtwebengine5-dev > /dev/null; then dh_auto_build -- unix-gui; fi

override_dh_auto_build-indep:
	$(MAKE) gpsbabel.org