File: rules

package info (click to toggle)
libiodbc2 3.52.16-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,944 kB
  • sloc: ansic: 49,090; sh: 5,021; objc: 3,623; makefile: 543
file content (30 lines) | stat: -rwxr-xr-x 955 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
#!/usr/bin/make -f

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

export DEB_CFLAGS_MAINT_APPEND = -DSYSTEM_DIR=\"/usr/lib/$(DEB_HOST_MULTIARCH)/odbc\"

# Temporary workaround, see:
# - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1097202
# - https://github.com/openlink/iODBC/issues/113
# - https://github.com/openlink/iODBC/issues/118
export CFLAGS += -std=c17 -Wno-implicit-function-declaration -Wno-int-conversion -Wno-incompatible-pointer-types

%:
	dh $@ --parallel --with autoreconf,pkgkde_symbolshelper

override_dh_autoreconf:
	dh_autoreconf --as-needed

override_dh_auto_configure:
	dh_auto_configure -- --includedir='$${prefix}/include/iodbc' --disable-gui

run_dh_acc:
	# The package needs to be installed (@ in autopkgtest)
	for in_file in debian/*.acc.in; do \
	    out_file=$${in_file%.in}; \
	    sed 's/\$${DEB_HOST_MULTIARCH}/'"$(DEB_HOST_MULTIARCH)"'/' \
		"$${in_file}" > "$${out_file}"; \
	done

	dh_acc