File: rules

package info (click to toggle)
cbflib 0.9.5.18%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 55,660 kB
  • sloc: ansic: 102,669; python: 4,552; sh: 3,032; makefile: 1,641; yacc: 659; f90: 210; xml: 210; cpp: 58; java: 16
file content (55 lines) | stat: -rwxr-xr-x 1,569 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/usr/bin/make -f

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

# CBFlib makefile configuration vars
export INSTALL_LIB := lib/$(DEB_HOST_MULTIARCH)
export CBFLIB_DONT_USE_LOCAL_HDF5=yes
export CBFLIB_DONT_USE_LOCAL_REGEX=yes
export CBFLIB_DONT_USE_LOCAL_TIFF=yes
export CBFLIB_DONT_USE_LZ4=yes
export CBFLIB_DONT_USE_BSHUF=yes
export CBFLIB_DONT_USE_PYCIFRW=yes
export NOPYCBF=yes
export NOLIBIMG=yes
export NOFORTRAN=yes


# Parallel builds do not work
%:
	dh $@ --no-parallel

override_dh_install:
	# Exclude duplicates (lintian check duplicate-files)
	dh_install -Xcif_img_1.3.2_22Jun05.html -Xcif_img_1.3.1.html


DEBVERSION=0.9.5.18+dfsg1
CBFLIBTAR=CBFlib-0.9.5.18.tar.gz
CBFLIBURL=https://github.com/yayahjb/cbflib/archive/$(CBFLIBTAR)
TDIR=cbflib-$(DEBVERSION)
get-orig-source:
	mkdir -p $(TDIR)
	[ -f $(CBFLIBTAR) ] || wget $(CBFLIBURL)
	tar -C $(TDIR) --strip-components=1 -zxf $(CBFLIBTAR)
	# Remove unnecessary dirs
	rm -r $(TDIR)/drel-ply
	rm -r $(TDIR)/dREL-ply-0.5
	rm -r $(TDIR)/external_packages
	rm -r $(TDIR)/libtool
	rm -r $(TDIR)/ply-3.2
	# Extra junk in pycbf
	rm -r $(TDIR)/pycbf/pycbf_0.7.7.zip
	rm -r $(TDIR)/pycbf/_pycbf.pyd
	# latex output from pycbf.tex
	rm -r $(TDIR)/pycbf/pycbf.aux
	rm -r $(TDIR)/pycbf/pycbf.dvi
	rm -r $(TDIR)/pycbf/pycbf.log
	rm -r $(TDIR)/pycbf/pycbf.out
	rm -r $(TDIR)/pycbf/pycbf.pdf
	rm -r $(TDIR)/pycbf/pycbf.toc
	#
	tar -zcf cbflib_$(DEBVERSION).orig.tar.gz $(TDIR)