12 |
# This is the debhelper compatability version to use. |
# This is the debhelper compatability version to use. |
13 |
export DH_COMPAT=2 |
export DH_COMPAT=2 |
14 |
ARCHT:=$(shell dpkg --print-architecture) |
ARCHT:=$(shell dpkg --print-architecture) |
15 |
|
MCC:=gcc |
16 |
|
ifeq ($(ARCHT),arm) |
17 |
|
MCC:=gcc-3.0 |
18 |
|
endif |
19 |
|
ifeq ($(ARCHT),m68k) |
20 |
|
MCC:=gcc-2.95 |
21 |
|
endif |
22 |
|
|
23 |
configure: configure-stamp |
configure: configure-stamp |
24 |
configure-stamp: |
configure-stamp: |
25 |
dh_testdir |
dh_testdir |
26 |
|
|
27 |
if [ configure.in -nt configure ]; then autoconf; fi |
if [ configure.in -nt configure ]; then autoconf; fi |
28 |
[ "$(ARCHT)" != "i386" ] || ( cd gmp && ./configure --target=i486 ) |
[ "$(ARCHT)" != "i386" ] || ( cd gmp && CC=$(MCC) ./configure --target=i486 ) |
29 |
./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info |
CC=$(MCC) ./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info |
30 |
|
|
31 |
touch configure-stamp |
touch configure-stamp |
32 |
|
|