File: rules

package info (click to toggle)
gr-framework 0.73.14%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,600 kB
  • sloc: ansic: 87,413; cpp: 45,348; objc: 3,057; javascript: 2,647; makefile: 1,129; python: 1,000; sh: 991; yacc: 855; pascal: 554; fortran: 228
file content (37 lines) | stat: -rwxr-xr-x 1,562 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
36
37
#!/usr/bin/make -f

export DH_VERBOSE = 1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# See ENVIRONMENT in dpkg-buildflags(1).
# Package maintainers to append CFLAGS.
#export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
# Package maintainers to append LDFLAGS.
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

%:
	dh $@ --buildsystem=cmake

override_dh_auto_configure:
	dh_auto_configure -- \
	-DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) \
	-DCMAKE_INSTALL_LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) \
	-DCMAKE_PREFIX_PATH=/usr/include/agg2

override_dh_auto_install:
	dh_auto_install
	find $(CURDIR)/debian/tmp -name '*.a' | xargs rm -f
	mkdir -p $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/gr
	find $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH) -name '*plugin.so' | xargs -I% mv % $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/gr
	mkdir -p $(CURDIR)/debian/tmp/usr/share/doc/gr-framework-doc/
	mv $(CURDIR)/debian/tmp/usr/share/doc/grplot/* $(CURDIR)/debian/tmp/usr/share/doc/gr-framework-doc/
	mv $(CURDIR)/debian/tmp/usr/share/licenses/GR/* $(CURDIR)/debian/tmp/usr/share/doc/gr-framework-doc/
	mkdir -p $(CURDIR)/debian/tmp/usr/share/fonts/truetype/gr-framework/
	mv $(CURDIR)/debian/tmp/usr/fonts/*.ttf $(CURDIR)/debian/tmp/usr/share/fonts/truetype/gr-framework/

override_dh_shlibdeps:
	dh_shlibdeps
	# Workaround that it always depends on missing libagg2.
	# If ${t64:Provides} macro does nothing, can't resolve missing dependency on armhf, armel.
	sed -i -e 's/libagg2 /libagg2t64 /' $(CURDIR)/debian/gr-framework-plugin-agg.substvars