~ubuntu-branches/ubuntu/oneiric/boinc-app-seti/oneiric

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Frank S. Thomas, Steffen Moeller, Frank S. Thomas
  • Date: 2008-01-23 21:27:23 UTC
  • mfrom: (2.1.3 hardy)
  • Revision ID: james.westby@ubuntu.com-20080123212723-3c05zp04f8m1vk5s
Tags: 5.13+cvs20060510-4
[ Steffen Moeller ]
* debian/rules: Wrote get-orig-source target that downloads the latest
  nightly tarball.

[ Frank S. Thomas ]
* debian/control.in:
  - Bumped Standards-Version from 3.7.2 to 3.7.3, no changes required.
  - Changed my maintainer address to fst@debian.org.
* debian/rules: Remove --disable-dependency-tracking from configure's
  arguments, because it breaks some handwritten rules in client/Makefile.am
  which require that $(DEPDIR) exists.
* Bumped debhelper compat level from V5 to V6 since this is the current
  recommended level and raised the build dependency to "debhelper (>= 6)".
* debian/patches/: Added 201_missing_header_for_gcc4.3.patch in order to
  fix a FTBFS with recent GCC 4.3 snapshots. Thanks to Martin Michlmayr
  <tbm@cyrius.com> for the bug report. (closes: #462051)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
 
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
 
7
 
3
8
# Remember to comment this before tagging for a release.
4
9
#DEB_AUTO_UPDATE_DEBIAN_CONTROL := yes
5
10
 
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
 
14
 
 
15
PKG = boinc-app-seti
9
16
 
10
17
DEB_CONFIGURE_SCRIPT_ENV += BOINCDIR="/usr/share/boinc-dev"
 
18
 
 
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=)
 
24
 
11
25
DEB_CONFIGURE_EXTRA_FLAGS := \
12
26
  --enable-client \
13
27
  --disable-graphics \
15
29
  --disable-server \
16
30
  --disable-static-linkage
17
31
DEB_INSTALL_DOCS_ALL := AUTHORS
 
32
DEB_MAKE_CLEAN_TARGET = clean
18
33
 
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))
21
36
 
22
37
post-patches::
23
38
        aclocal-1.9 -I m4 && autoheader && automake-1.9 && autoconf
24
39
 
25
 
install/boinc-app-seti::
26
 
        cp client/seti_boinc \
27
 
          debian/boinc-app-seti/usr/lib/boinc-app-seti/setiathome_enhanced
 
40
install/$(PKG)::
 
41
        cp client/seti_boinc debian/$(PKG)/usr/lib/$(PKG)/setiathome_enhanced
28
42
        
29
43
        cat debian/extra/app_info.xml.in | \
30
44
          sed -e 's/VERSION/$(APP_INFO_VERSION)/' > debian/extra/app_info.xml
31
45
 
32
46
clean::
 
47
        dh_clean client/setiathome-$(UPSTREAM_VERSION).*
33
48
        dh_clean debian/extra/app_info.xml
 
49
 
 
50
origDir ?= .
 
51
 
 
52
get-orig-source:
 
53
        if [ ! -d "$(origDir)" ]; then \
 
54
          echo "Destination directory '$(origDir)' does not exist."; \
 
55
          exit; \
 
56
        fi; \
 
57
        cd $(origDir); \
 
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."; \
 
62
        $$DLS $$TODAY || ( \
 
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."; \
 
66
          $$DLS $$YESTERDAY; \
 
67
        ); \
 
68
        rm -f $$DLS
 
69
 
 
70
DEB_PHONY_RULES += get-orig-source