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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
#!/usr/bin/make -f
# see http://www.gentoo.org/proj/en/qa/asneeded.xml
LDFLAGS+=-Wl,--as-needed
# link time optimisation - as soon as gcc-4.5 hits the archive
# 20.02.2013, ta, does not really work yet
#CFLAGS += -flto
CXXFLAGS += -flto
LDFLAGS += -flto
SAVEFILES=Makefile.in aclocal.m4 config.guess config.sub configure
%:
dh $@ --with autotools_dev
override_dh_auto_configure:
mkdir -p debian/autodock_save
cd autodock && cp -a $(SAVEFILES) ../debian/autodock_save && autoreconf -i
dh_auto_configure --sourcedirectory=autodock
mkdir -p debian/autogrid_save
cd autogrid && cp -a $(SAVEFILES) ../debian/autogrid_save && autoreconf -i
dh_auto_configure --sourcedirectory=autogrid
override_dh_auto_build:
dh_auto_build --sourcedirectory=autodock
dh_auto_build --sourcedirectory=autogrid
override_dh_auto_clean:
dh_auto_clean --sourcedirectory=autodock
dh_auto_clean --sourcedirectory=autogrid
rm -rf autodock/usr autogrid/usr
rm -rf autodock/compile autogrid/compile
rm -rf autogrid/mingw_* autogrid/parse_param_line.* autogrid/printdate.* autogrid/printhms.* autogrid/read_parameter_library* autogrid/stop.* autogrid/timesys*
if [ -d debian/autodock_save ] ; then mv debian/autodock_save/* autodock; rmdir debian/autodock_save ; fi
if [ -d debian/autogrid_save ] ; then mv debian/autogrid_save/* autogrid; rmdir debian/autogrid_save ; fi
# remove test results
rm -rf autodock/Tests/popfile autodock/Tests/test_1pgp*.dlg
rm -rf autodock_testresults
rm -rf autogrid/Tests/hsg1_sm.*.map autogrid/Tests/hsg1_sm.glg autogrid/Tests/hsg1_sm.maps* autogrid/Tests/test_x1* autogrid/Tests/x1hpv.*.map autogrid/Tests/x1hpv.maps.*
rm -rf autogrid_testresults
find . -name "*.pyc" -delete
override_dh_auto_test:
dh_auto_test --sourcedirectory=autodock
dh_auto_test --sourcedirectory=autogrid
override_dh_install-indep:
dh_install -i
rm -rf $(CURDIR)/debian/autodock-test/usr/share/autodock/Tests/AutoDockTools
rm -rf $(CURDIR)/debian/autogrid-test/usr/share/autogrid/Tests/CVS/
rm -rf $(CURDIR)/debian/autodock-test/usr/share/autodock/Tests/CVS/
override_dh_fixperms-indep:
dh_fixperms
chmod 644 $(CURDIR)/debian/autodock-test/usr/share/autodock/Tests/*
chmod 644 $(CURDIR)/debian/autogrid-test/usr/share/autogrid/Tests/*
override_dh_auto_install-arch:
dh_auto_install --sourcedirectory=autodock
dh_auto_install --sourcedirectory=autogrid
override_dh_installchangelogs:
dh_installchangelogs autodock/RELEASENOTES
get-orig-source:
mkdir -p ../tarballs
uscan --verbose --force-download --destdir=../tarballs
|