[go: up one dir, main page]

File: rules

package info (click to toggle)
libdbd-oracle-perl 1.83-3
  • links: PTS, VCS
  • area: contrib
  • in suites: sid
  • size: 1,724 kB
  • sloc: ansic: 8,354; perl: 7,868; makefile: 20
file content (32 lines) | stat: -rwxr-xr-x 995 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
29
30
31
32
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow

%:
	dh $@

# no trailing slash!
export ORACLE_HOME := $(wildcard /usr/lib/oracle/*/client*/lib)
export LD_LIBRARY_PATH += :$(ORACLE_HOME)

PKG=$(shell dh_listpackages)
TMP=$(CURDIR)/debian/$(PKG)
VERSION = $(shell dpkg-query -Wf '$${source:Upstream-Version}' oracle-instantclient-devel)

ORACLE_HEADERS = $(wildcard /usr/include/oracle/*/client*)

# Disable make test to build in buildd debian server
override_dh_auto_test:

override_dh_auto_configure:
	dh_auto_configure -- -h $(ORACLE_HEADERS) -V $(VERSION)

override_dh_installexamples:
	dh_installexamples
	sed -i '1s|^#!/usr/bin/env perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PKG)/examples/*
	chmod a-x $(addprefix $(TMP),/usr/share/doc/libdbd-oracle-perl/examples/README)

override_dh_shlibdeps:
	dh_shlibdeps
	sed -i -e 's/oracle-instantclient-basic/oracle-instantclient-basic | oracle-instantclient-basiclite/' \
		$(CURDIR)/debian/libdbd-oracle-perl.substvars