File: rules

package info (click to toggle)
parser-mysql 10.7-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,840 kB
  • sloc: sh: 11,259; ansic: 4,257; cpp: 506; makefile: 126
file content (23 lines) | stat: -rwxr-xr-x 564 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
#!/usr/bin/make -f

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

PACKAGE = $(shell dh_listpackages)
TMP     = $(CURDIR)/debian/$(PACKAGE)

export DEB_CPPFLAGS_MAINT_APPEND = -I/usr/include/parser3

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		--with-mysql-inc=/usr/include/mariadb \
		--libdir=/usr/lib/parser3/ \
		--with-ltdl-include=/usr/include \
		--with-ltdl-lib=/usr/lib/$(DEB_HOST_MULTIARCH)

override_dh_auto_install:
	dh_auto_install
	-rm $(TMP)/usr/lib/parser3/libparser3mysql.la
	-rmdir $(TMP)/usr/include