File: rules

package info (click to toggle)
freetds 1.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 27,020 kB
  • sloc: ansic: 97,673; sh: 5,044; xml: 4,458; javascript: 2,911; sql: 1,474; makefile: 1,063; perl: 557; php: 22
file content (29 lines) | stat: -rwxr-xr-x 907 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
#!/usr/bin/make -f

export DEB_CFLAGS_MAINT_APPEND = -Wall -DDBLIB_UNIMPLEMENTED=1

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

%:
	dh $@ --parallel

override_dh_auto_configure:
	dh_auto_configure -- --with-gnu-ld \
		--with-unixodbc=/usr --sysconfdir=/etc/freetds \
		--enable-sybase-compat --with-gnutls --enable-krb5

override_dh_auto_install:
	dh_auto_install
	mkdir -p $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/odbc
	mv $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libtdsodbc.so.0.0.0 \
	   $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/odbc/libtdsodbc.so
	rm -f $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libtdsodbc*

override_dh_fixperms:
ifneq (,$(filter freetds-common, $(shell dh_listpackages)))
	chmod a-x $(CURDIR)/debian/freetds-common/usr/share/freetds/freetds.conf
endif
	dh_fixperms

override_dh_makeshlibs:
	dh_makeshlibs -Xtdsodbc -V