File: rules

package info (click to toggle)
blitz%2B%2B 1%3A0.10-3.2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 13,276 kB
  • ctags: 12,037
  • sloc: cpp: 70,465; sh: 11,116; fortran: 1,510; python: 1,246; f90: 852; makefile: 701
file content (59 lines) | stat: -rwxr-xr-x 1,685 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
56
57
58
59
#!/usr/bin/make -f
# debian/rules for blitz++
# 2011         Andreas Tille <tille@debian.org> 

libname=libblitz
pkgname=$(libname)0ldbl
docname=$(libname)-doc

PREFIX = /usr

%:
	dh $@ -with autoreconf --parallel

override_dh_auto_configure:
	# dh_autotools-dev_updateconfig
#	libtoolize --automake
#	aclocal -Im4
#	autoreconf -i
#	automake
#
	F77=gfortran ./configure --prefix=$(PREFIX) --with-cxx=gcc --with-blas --enable-debug --enable-static --enable-64bit --enable-shared --enable-doxygen CFLAGS="${CFLAGS} -DBZHAVE_STD" CXXFLAGS="${CXXFLAGS} -DBZ_HAVE_STD"

override_dh_auto_build:
	#dh_auto_build
	#cd doc && $(MAKE) all
	
	# update doxigen conf file
	cd doc/doxygen && doxygen -u
	 
	$(MAKE) lib
	$(MAKE) info              #Build Blitz++ texinfo documentation
	
	mkdir -p doc/doxygen/html
	$(MAKE) pdf              #Build Blitz++ pdf documentation
	$(MAKE) html             #Build Blitz++ html documentation

override_dh_auto_test:
	#
	# TODO find . -name \*.htmlneed to be patched to compile properly
	#$(MAKE) check-testsuite  #Build and check the testsuite
	
	$(MAKE) check-examples   #Build and check the examples
	
	#$(MAKE) check-benchmarks #Build and check the benchmarks (long)

override_dh_compress:
	dh_compress --exclude=examples --exclude=testsuite --exclude=.pdf

override_dh_install:
	dh_install
	
	d-shlibmove --ldbl --commit \
	            --exclude-la \
	            --movedev "debian/tmp/usr/lib/pkgconfig/blitz.pc" usr/lib/pkgconfig \
	            lib/.libs/libblitz.so
	#
	# workaround some broken entry in usr/lib/pkgconfig/blitz.pc - no idea
	# why this endet up here ...
	sed -i 's/-D_FORTIFY_SOURCE=2//' debian/libblitz0-dev/usr/lib/pkgconfig/blitz.pc