File: rules

package info (click to toggle)
jhdf 2.11.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 39,996 kB
  • ctags: 17,959
  • sloc: java: 100,416; ansic: 24,920; sh: 2,256; makefile: 957; cpp: 48
file content (31 lines) | stat: -rwxr-xr-x 1,106 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
#!/usr/bin/make -f
# Copyright 2008 Sylvestre Ledru <sylvestre.ledru@inria.fr>

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

debian/stamp-autotools-files:
	autoreconf -i
	touch debian/stamp-autotools-files

ifneq ($(wildcard /usr/lib/$(DEB_HOST_MULTIARCH)/hdf5/serial/libhdf5.so),)
  WITH_HDF5:=--with-hdf5=/usr/include/hdf5/serial,/usr/lib/$(DEB_HOST_MULTIARCH)/hdf5/serial
else
  WITH_HDF5:=--with-hdf5=/usr/include,/usr/lib/$(DEB_HOST_MULTIARCH)
endif

JAVA_HOME := /usr/lib/jvm/default-java

# Workaround #760301
export CPPFLAGS+="-I$(JAVA_HOME)/include/linux"

DEB_CONFIGURE_EXTRA_FLAGS := CC=gcc

DEB_CONFIGURE_NORMAL_ARGS += --with-jdk=$(JAVA_HOME)/include/,$(JAVA_HOME)/lib/ --with-classpath=$(JAVA_HOME)/lib/ --with-javabin=$(JAVA_HOME)/bin/  --with-libz=yes,/usr/lib --with-libsz=yes,/usr/lib --with-libjpeg=yes,/usr/lib/   $(WITH_HDF5) --with-hdf4=/usr/include/hdf/,/usr/lib/
DEB_CONFIGURE_PREFIX := $(CURDIR)/debian/tmp/

install/libjhdf-doc::
	$(MAKE) install-javadocs

get-orig-source:
	uscan --verbose --force-download --repack --compression xz