File: rules

package info (click to toggle)
omniorb-dfsg 4.2.5%2Bds1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 13,020 kB
  • sloc: cpp: 110,240; python: 24,939; ansic: 14,151; sh: 2,663; makefile: 40
file content (52 lines) | stat: -rwxr-xr-x 1,642 bytes parent folder | download | duplicates (3)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
export CPPFLAGS CFLAGS LDFLAGS

%:
	dh $@ --with python3

override_dh_auto_configure:
	PYTHON=/usr/bin/python3 dh_auto_configure -- $(confflags) \
		--prefix=/usr \
		--libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \
		--with-openssl \
		--with-omniNames-logdir=/var/lib/omniorb

# incomplete
override_dh_auto_clean:
	find . -name "*.pyc" -delete
	find bin/ -maxdepth 1 -type f -delete
	find src/examples/ -type f -executable -delete
	find src/ -name "*.d" -type f -delete
	$(RM) -r lib src/tool/omniidl/cxx/cccp/omnicpp stub/

override_dh_auto_build:
	dh_auto_build
	$(MAKE) -C src/examples
	find src/examples/ -name "*.o" -type f -delete
	find src/examples/ -name "*.d" -type f -delete
	cd doc/tex && hevea omniORB && hacha omniORB.html && cd -
	mkdir doc/omniORB/
	mv doc/tex/*.html doc/omniORB/
	mv doc/tex/*.css doc/omniORB/
	mv doc/tex/*.svg doc/omniORB/
	$(RM) doc/tex/*.haux

override_dh_auto_install:
	dh_auto_install
	dh_python3 -pomniidl
	sed -i '1d' debian/tmp/usr/lib/omniidl/omniidl/main.py
	# fixup omniidlrun - upstream uses the python3 version but mangles the shebang
	sed -i 's%#!/usr/bin/env python%#! /usr/bin/python3%' ./debian/tmp/usr/bin/omniidlrun.py
	mv ./debian/tmp/usr/bin/omniidlrun.py ./debian/tmp/usr/bin/omniidlrun

override_dh_fixperms-arch:
	dh_fixperms
	find debian/omniorb-doc/usr/lib/omniorb/examples/ -executable -type f -name "*.mak" -exec chmod 644 "{}" \;