2016-07-12 13:33:12 +02:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
|
|
|
export DH_VERBOSE=1
|
|
|
|
CFLAGS := $(shell dpkg-buildflags --get CFLAGS)
|
|
|
|
LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
|
|
|
|
|
|
|
|
%:
|
2018-03-13 17:30:43 +01:00
|
|
|
dh $@
|
2016-07-12 13:33:12 +02:00
|
|
|
|
|
|
|
override_dh_auto_configure: configure_config
|
|
|
|
|
|
|
|
override_dh_auto_clean:
|
|
|
|
rm -fr Makefile* usr bin tmp src/bin/BuiltHamcoreFiles
|
|
|
|
|
|
|
|
override_dh_auto_install:
|
|
|
|
patch -f < debian/makefile.patch
|
|
|
|
mkdir -p usr/bin
|
|
|
|
make install
|
|
|
|
|
|
|
|
configure_config:
|
2018-03-13 17:10:56 +01:00
|
|
|
if [ $(shell uname -m) = 'x86_64' ]; then echo -e "1\n2\n" | ./configure; fi
|
|
|
|
if [ $(shell uname -m) = 'i686' ]; then echo -e "1\n1\n" | ./configure; fi
|
|
|
|
if [ $(shell uname -m) = 'armv6l' ]; then echo -e "1\n1\n" | ./configure; fi
|
|
|
|
if [ $(shell uname -m) = 'armv5tel' ]; then echo -e "1\n1\n" | ./configure; fi
|
|
|
|
if [ $(shell uname -m) = 'aarch64' ]; then echo -e "1\n2\n" | ./configure; fi
|
|
|
|
if [ $(shell uname -m) = 'armv7l' ]; then echo -e "1\n1\n" | ./configure; fi
|
2016-07-12 13:33:12 +02:00
|
|
|
|