2
# Made with the aid of debmake, by Christoph Lameter,
3
# based on the sample debian/rules file for GNU hello by Ian Jackson.
5
# This is the debhelper compatibility version to use.
8
# This has to be exported to make some magic below work.
11
export DEBIANDIR=`echo $$PWD/debian`
13
# test with gcc-snapshot
14
#export CC=/usr/lib/gcc-snapshot/bin/gcc
15
#export CXX=/usr/lib/gcc-snapshot/bin/g++
19
version=$(shell expr `pwd` : '.*-\([0-9.]*\)')
20
version_major=$(shell expr `pwd` : '.*-\([0-9]*\).[0-9.]*')
24
# fix wrong timestamp in almost all README (1945, 1967 ...)
25
-find . -name README | xargs touch
26
./configure --prefix=/usr --includedir=/usr/include/arpack++
28
chrpath -d src/.libs/libarpack++.so.2
37
$(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
43
-rm -f `find . -name "*~"`
44
-rm -rf debian/tmp `find debian/* -type d ! -name CVS` debian/files* core
45
-rm -f debian/*substvars
48
binary-indep: checkroot
50
# There are no architecture-independent files to be uploaded
51
# generated by this package. If there were any they would be
57
dh_install --sourcedir=debian/tmp --list-missing
58
# dh_installdocs -plibarpack++2-dev doc/arpackpp.ps.gz doc/bugs.txt doc/install.txt doc/structure.txt Makefile.inc
59
dh_installexamples -plibarpack++2-dev -X.svn -X.deps examples/*
61
dh_installchangelogs -A
69
dh_shlibdeps -L libarpack++ -l debian/libarpack++2/usr/lib
79
binary: binary-indep binary-arch
83
test root = "`whoami`"
85
.PHONY: binary binary-arch binary-indep clean checkroot
4
DEB_AUTO_CLEANUP_RCS := yes
5
DEB_BUILDDIR := $(DEB_SRCDIR)/
6
DEB_CONFIGURE_SCRIPT := $(DEB_SRCDIR)/configure
7
DEB_MAKE_CLEAN_TARGET := clean
8
DEB_MAKE_BUILD_TARGET := default
9
DEB_COMPRESS_EXCLUDE := .pdf
10
DEB_MAKE_INSTALL_TARGET = install $(DEB_DESTDIR)
12
DEB_INSTALL_EXAMPLES_libarpack++2-dev:=examples/*
15
include /usr/share/cdbs/1/class/autotools.mk
16
include /usr/share/cdbs/1/rules/debhelper.mk
18
DEB_BUILDDIR := $(DEB_SRCDIR)/
19
DEB_CONFIGURE_SCRIPT := $(CURDIR)/configure
21
DEB_CONFIGURE_EXTRA_FLAGS := \
22
--host=$(DEB_HOST_GNU_TYPE) \
23
--build=$(DEB_BUILD_GNU_TYPE) \
25
--mandir=\$${prefix}/share/man \
26
--infodir=\$${prefix}/share/info \
27
--includedir=/usr/include/arpack++
30
#CXX=/usr/lib/gcc-snapshot/bin/g++
31
#CC=/usr/lib/gcc-snapshot/bin/gcc
40
wget http://ljk.imag.fr/membres/Christophe.Prudhomme/software/arpack++-${VERSION}.tar.gz; \
41
mv arpack++-${VERSION}.tar.gz ../arpack++_${VERSION}.orig.tar.gz; \