File: rules

package info (click to toggle)
gpsbabel 1.10.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 95,664 kB
  • sloc: cpp: 104,866; xml: 9,686; sh: 1,793; ansic: 1,086; perl: 520; tcl: 74; makefile: 18
file content (28 lines) | stat: -rwxr-xr-x 863 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

%:
	dh $@

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

FLAGS := -DGPSBABEL_WITH_LIBUSB=pkgconfig -DGPSBABEL_WITH_SHAPELIB=pkgconfig -DGPSBABEL_WITH_ZLIB=pkgconfig
$(shell dpkg -s qt6-webengine-dev > /dev/null)
ifneq ($(.SHELLSTATUS),0)
FLAGS += -DGPSBABEL_MAPPREVIEW=OFF
endif

override_dh_auto_configure:
	dh_auto_configure -- ${FLAGS}
	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

override_dh_auto_build-indep:
	dh_auto_build -- gpsbabel.org