File: rules

package info (click to toggle)
apbs 1.2.1b-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 121,924 kB
  • ctags: 16,792
  • sloc: ansic: 46,045; python: 23,214; sh: 21,761; fortran: 17,971; xml: 14,086; yacc: 2,924; makefile: 603; objc: 448; lex: 294; sed: 206; java: 136; awk: 27
file content (37 lines) | stat: -rwxr-xr-x 1,519 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
#!/usr/bin/make -f

-include /usr/share/mpi-default-dev/debian_defaults

include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/buildcore.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/utils.mk
include /usr/share/cdbs/1/rules/dpatch.mk

FFLAGS = -Wall -g
FFLAGS += $(DEB_OPT_FLAG)

DEB_CONFIGURE_EXTRA_FLAGS := --prefix=/usr
# because of a bug in the confifgure script, --enable-tools will *disable*
# building the tools (sf.net #1910799); however turn it off now, because
# tools/arpack/ardriv.f will lead to an FTBFS (sf.net #1910846)
DEB_CONFIGURE_EXTRA_FLAGS += --disable-tools
DEB_CONFIGURE_EXTRA_FLAGS += --with-fetk-include=/usr/include --with-fetk-library=/usr/lib
DEB_CONFIGURE_EXTRA_FLAGS += --with-blas=-lblas
DEB_CONFIGURE_EXTRA_FLAGS += --with-arpack=/usr/lib
# only use MPI if /usr/share/mpi-default-dev/debian_defaults is available
ifdef ARCH_DEFAULT_MPI_IMPL
DEB_CONFIGURE_EXTRA_FLAGS += --with-$(ARCH_DEFAULT_MPI_IMPL)=/usr/lib/$(ARCH_DEFAULT_MPI_IMPL)
DEB_CONFIGURE_SCRIPT_ENV += CC="/usr/bin/mpicc.$(ARCH_DEFAULT_MPI_IMPL)" F77="/usr/bin/mpif77.$(ARCH_DEFAULT_MPI_IMPL)"
endif
DEB_CONFIGURE_SCRIPT_ENV += FFLAGS="$(FFLAGS)"

DEB_MAKE_INSTALL_TARGET := -C $(CURDIR)/bin install DESTDIR=$(CURDIR)/debian/tmp
DEB_MAKE_CHECK_TARGET := -C $(CURDIR)/examples/ quicktest APBS=$(CURDIR)/bin/apbs APBSBIN=$(CURDIR)/bin/apbs

DEB_INSTALL_MANPAGES_apbs := debian/apbs.1

clean::
	rm -f tools/manip/psize.pyc

common-binary-post-install-arch:: list-missing