~wbetz/+junk/arpack++

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme, Christophe Prud'homme
  • Date: 2008-03-14 08:40:55 UTC
  • mfrom: (1.1.2 upstream) (4.1.1 gutsy)
  • Revision ID: james.westby@ubuntu.com-20080314084055-xxqdh3qjm0w4m4a0
Tags: 2.3-1
[ Christophe Prud'homme ]
* New upstream release
* debian/control: update Standards-Version to 3.7.3, no changes
* debian/control: removed XS- prefix
* upstream is now hosted on gforge.imag.fr
* Fixed "please update to use gfortran based lapack, blas", thanks to
  Kumar Appaiah (Closes: #463931).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
# Made with the aid of debmake, by Christoph Lameter,
3
 
# based on the sample debian/rules file for GNU hello by Ian Jackson.
4
 
 
5
 
# This is the debhelper compatibility version to use.
6
 
export DH_COMPAT=4
7
 
 
8
 
# This has to be exported to make some magic below work.
9
 
export DH_OPTIONS
10
 
 
11
 
export DEBIANDIR=`echo $$PWD/debian`
12
 
 
13
 
# test with gcc-snapshot
14
 
#export CC=/usr/lib/gcc-snapshot/bin/gcc
15
 
#export CXX=/usr/lib/gcc-snapshot/bin/g++
16
 
 
17
 
package=arpack++
18
 
 
19
 
version=$(shell expr `pwd` : '.*-\([0-9.]*\)')
20
 
version_major=$(shell expr `pwd` : '.*-\([0-9]*\).[0-9.]*')
21
 
 
22
 
build:
23
 
        $(checkdir)
24
 
# fix wrong timestamp in almost all README (1945, 1967 ...)
25
 
        -find . -name README  | xargs touch
26
 
        ./configure --prefix=/usr --includedir=/usr/include/arpack++
27
 
        make
28
 
        chrpath -d src/.libs/libarpack++.so.2
29
 
        touch build
30
 
 
31
 
install: build 
32
 
        dh_testdir
33
 
        dh_testroot
34
 
        dh_clean -k
35
 
        dh_installdirs
36
 
        -mkdir debian/tmp
37
 
        $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install 
38
 
 
39
 
 
40
 
clean:
41
 
        $(checkdir)
42
 
        -rm -f build
43
 
        -rm -f `find . -name "*~"`
44
 
        -rm -rf debian/tmp `find debian/* -type d ! -name CVS` debian/files* core
45
 
        -rm -f debian/*substvars
46
 
        -make distclean
47
 
 
48
 
binary-indep: checkroot 
49
 
        $(checkdir)
50
 
# There are no architecture-independent files to be uploaded
51
 
# generated by this package.  If there were any they would be
52
 
# made here.
53
 
 
54
 
binary-arch: install 
55
 
        $(checkdir)
56
 
 
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/*
60
 
        dh_installdocs -A
61
 
        dh_installchangelogs -A
62
 
        dh_link 
63
 
        dh_strip
64
 
        dh_compress 
65
 
        dh_fixperms
66
 
        dh_makeshlibs -V 
67
 
        dh_installdeb
68
 
        dh_makeshlibs
69
 
        dh_shlibdeps -L libarpack++ -l debian/libarpack++2/usr/lib
70
 
        dh_gencontrol
71
 
        dh_md5sums 
72
 
        dh_builddeb
73
 
 
74
 
 
75
 
define checkdir
76
 
        test -f debian/rules
77
 
endef
78
 
 
79
 
binary: binary-indep binary-arch
80
 
 
81
 
checkroot:
82
 
        $(checkdir)
83
 
        test root = "`whoami`"
84
 
 
85
 
.PHONY: binary binary-arch binary-indep clean checkroot
 
2
 
 
3
 
 
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)
 
11
 
 
12
DEB_INSTALL_EXAMPLES_libarpack++2-dev:=examples/*
 
13
 
 
14
 
 
15
include /usr/share/cdbs/1/class/autotools.mk
 
16
include /usr/share/cdbs/1/rules/debhelper.mk
 
17
 
 
18
DEB_BUILDDIR                    := $(DEB_SRCDIR)/
 
19
DEB_CONFIGURE_SCRIPT            := $(CURDIR)/configure
 
20
 
 
21
DEB_CONFIGURE_EXTRA_FLAGS :=       \
 
22
  --host=$(DEB_HOST_GNU_TYPE)      \
 
23
  --build=$(DEB_BUILD_GNU_TYPE)    \
 
24
  --prefix=/usr                    \
 
25
  --mandir=\$${prefix}/share/man   \
 
26
  --infodir=\$${prefix}/share/info \
 
27
  --includedir=/usr/include/arpack++
 
28
 
 
29
 
 
30
#CXX=/usr/lib/gcc-snapshot/bin/g++
 
31
#CC=/usr/lib/gcc-snapshot/bin/gcc
 
32
CFLAGS= -O3
 
33
CXXFLAGS= -O3
 
34
FFLAGS= -O3
 
35
 
 
36
VERSION=2.3
 
37
orig-tarball:
 
38
        mkdir tmp; \
 
39
        cd tmp; \
 
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; \
 
42
        cd ..; \
 
43
        rmdir tmp
 
44
 
 
45