~ubuntu-branches/ubuntu/feisty/basilisk2/feisty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2005-07-30 20:42:20 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050730204220-1nl1cg2jkjvy63ry
Tags: 0.9.20050730-1
* New upstream CVS snapshot.
* Build-depend on virtual libsdl-dev (not libsdl1.2-dev).
* Invoke init rules also on clean (to separate better from official
  builds).
* Update URL of upstream source in debian/copyright.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
# -*- mode: makefile; coding: utf-8 -*-
3
 
# Copyright © 2003 Jonas Smedegaard <dr@jones.dk>
 
3
# Copyright © 2003-2005 Jonas Smedegaard <dr@jones.dk>
 
4
 
 
5
ifneq (,$(findstring update,$(DEB_BUILD_OPTIONS)))
 
6
DEB_AUTO_UPDATE_DEBIAN_CONTROL = 1
 
7
endif
 
8
ifneq (,$(findstring init,$(DEB_BUILD_OPTIONS)))
 
9
#DEB_AUTO_UPDATE_ACLOCAL = 1.9
 
10
#DEB_AUTO_UPDATE_AUTOHEADER = 2.50
 
11
#DEB_AUTO_UPDATE_AUTOCONF = 2.50
 
12
endif
 
13
 
 
14
include /usr/share/cdbs/1/class/autotools.mk
 
15
include /usr/share/cdbs/1/rules/debhelper.mk
 
16
include /usr/share/cdbs/1/rules/simple-patchsys.mk
 
17
include debian/cdbs/1/rules/buildinfo.mk
4
18
 
5
19
DEB_SRCDIR = src/Unix
6
 
 
7
 
include /usr/share/cdbs/1/rules/debhelper.mk
8
 
 
9
 
# Use autotools-vars.mk from CVS to avoid cross-compiling on same host
10
 
include debian/cdbs/autotools-vars.mk
11
 
 
12
 
include /usr/share/cdbs/1/class/autotools.mk
13
 
 
14
 
DEB_CONFIGURE_USER_FLAGS = --enable-xf86-dga --disable-fbdev-dga
 
20
DEB_CONFIGURE_USER_FLAGS = --disable-rpath --enable-sdl-video --enable-sdl-audio
 
21
 
 
22
# JIT compiler only supported on i386 and ia64
 
23
#DEB_CONFIGURE_USER_FLAGS += --enable-jit-compiler
 
24
 
 
25
# Hmm - fumbling around to attempt making this damned package compile properly...
 
26
#CFLAGS += -fsigned-char
 
27
#CXXFLAGS += -fsigned-char
 
28
 
 
29
# Suppress excess and seemingly non-fatal warnings
 
30
CFLAGS += -Wno-unused-variable -Wno-unused-label -Wno-missing-braces -Wno-parentheses
 
31
CXXFLAGS += -Wno-unused-variable -Wno-unused-label -Wno-missing-braces -Wno-parentheses
15
32
 
16
33
# Don't know why, but upstream added this and it seems to be needed
17
34
#CXXFLAGS += -fno-merge-constants
24
41
DEB_MAKE_CHECK_TARGET :=
25
42
 
26
43
DEB_INSTALL_DOCS_ALL += TECH
27
 
 
28
 
binary-predeb/basilisk2::
29
 
        dh_buildinfo
30
 
 
31
 
# These are only used manually to (re)generate/remove automade files.
32
 
DEB_PHONY_RULES += ultraclean autogen
 
44
DEB_INSTALL_CHANGELOGS_ALL = ChangeLog.cvs
 
45
DEB_INSTALL_EXAMPLES_basilisk2 = $(DEB_SRCDIR)/Linux/* $(DEB_SRCDIR)/tunconfig
 
46
 
 
47
# tunconfig will be installed as example file only
 
48
common-binary-post-install-arch::
 
49
        rm -f debian/$(cdbs_curpkg)/usr/share/BasiliskII/tunconfig
 
50
 
 
51
# Initialize autotools in CVS snapshot
 
52
## FIXME: For some odd reason config.h gets deleted so these needs to
 
53
##        run at every build instead of once :-(
 
54
ifneq (,$(findstring init,$(DEB_BUILD_OPTIONS)))
 
55
pre-build clean:: $(DEB_SRCDIR)/configure
 
56
 
 
57
$(DEB_SRCDIR)/configure: autogen
 
58
 
33
59
ultraclean:
34
60
        -$(MAKE) -C src/Unix distclean
35
 
        cd src/Unix && rm -f config.h.in aclocal.m4 configure config.log ltmain.sh missing
36
 
        cd src/Unix && rm -rf autom4te.cache
 
61
        cd $(DEB_SRCDIR) && rm -f config.h.in aclocal.m4 configure config.log ltmain.sh missing
 
62
        cd $(DEB_SRCDIR) && rm -rf autom4te.cache
37
63
 
38
64
autogen: ultraclean
39
 
        cd src/Unix && NO_CONFIGURE=naturligvis ./autogen.sh
 
65
        cd $(DEB_SRCDIR) && autoreconf -i -v
 
66
 
 
67
DEB_PHONY_RULES += ultraclean autogen
 
68
endif