3
# Uncomment this to compile with gcc-snapshot.
4
#export CC=/usr/lib/gcc-snapshot/bin/gcc
5
#export CXX=/usr/lib/gcc-snapshot/bin/g++
6
#export CPP=/usr/lib/gcc-snapshot/bin/cpp
3
8
# Remember to comment this before tagging for a release.
4
9
#DEB_AUTO_UPDATE_DEBIAN_CONTROL := yes
6
11
include /usr/share/cdbs/1/rules/debhelper.mk
7
12
include /usr/share/cdbs/1/class/autotools.mk
8
include /usr/share/cdbs/1/rules/dpatch.mk
13
include /usr/share/cdbs/1/rules/patchsys-quilt.mk
10
17
DEB_CONFIGURE_SCRIPT_ENV += BOINCDIR="/usr/share/boinc-dev"
19
# Remove --disable-dependency-tracking from configure's arguments,
20
# because it breaks some handwritten rules in client/Makefile.am which
21
# require that $(DEPDIR) exists.
22
DEB_CONFIGURE_NORMAL_ARGS := \
23
$(DEB_CONFIGURE_NORMAL_ARGS:--disable-dependency-tracking=)
11
25
DEB_CONFIGURE_EXTRA_FLAGS := \
13
27
--disable-graphics \
16
30
--disable-static-linkage
17
31
DEB_INSTALL_DOCS_ALL := AUTHORS
32
DEB_MAKE_CLEAN_TARGET = clean
19
APP_INFO_VERSION = $(shell echo $(DEB_VERSION) | cut -f 1 -d '-' | \
20
cut -f 1 -d '+' | sed -e 's/\.//g')
34
UPSTREAM_VERSION = $(shell echo $(DEB_UPSTREAM_VERSION) | cut -f 1 -d '+')
35
APP_INFO_VERSION = $(subst .,,$(UPSTREAM_VERSION))
23
38
aclocal-1.9 -I m4 && autoheader && automake-1.9 && autoconf
25
install/boinc-app-seti::
26
cp client/seti_boinc \
27
debian/boinc-app-seti/usr/lib/boinc-app-seti/setiathome_enhanced
41
cp client/seti_boinc debian/$(PKG)/usr/lib/$(PKG)/setiathome_enhanced
29
43
cat debian/extra/app_info.xml.in | \
30
44
sed -e 's/VERSION/$(APP_INFO_VERSION)/' > debian/extra/app_info.xml
47
dh_clean client/setiathome-$(UPSTREAM_VERSION).*
33
48
dh_clean debian/extra/app_info.xml
53
if [ ! -d "$(origDir)" ]; then \
54
echo "Destination directory '$(origDir)' does not exist."; \
58
DLS=/tmp/download-seti; \
59
TODAY=`date +%Y-%m-%d | tr -d '\n'`; \
60
svn export svn://svn.debian.org/pkg-boinc/scripts/download-seti $$DLS; \
61
echo "Attempting to retrieve today's ($$TODAY) tarball."; \
63
YESTERDAY=`date -d yesterday +%Y-%m-%d | tr -d '\n'`; \
64
echo "Today's ($$TODAY) tarball could not be downloaded."; \
65
echo "Now attempting to retrieve yesterday's ($$YESTERDAY) tarball."; \
70
DEB_PHONY_RULES += get-orig-source