~ubuntu-branches/ubuntu/quantal/gnushogi/quantal

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Yann Dirson
  • Date: 2009-08-20 01:52:26 UTC
  • Revision ID: james.westby@ubuntu.com-20090820015226-mx0orhrtlneftl0a
Tags: 1.3.2-6
* New maintainer.
* Switch packaging to cdbs + simple-patchsys.
* Dropped special handling of config.*, now handled by cdbs.
* Factorize common install options.
* Include my fixes+minishogi patch series (do not activate minishogi
  build yet):
  * 04-errno-fix.patch - Errno mis-redifinition.
  * 03-proto-fix.patch - Fix a function prototype.
  * 05-ai-overflow.patch - Integer overflow possibly handicaping the AI.
  * 06-fix-runnaway.patch - Avoid eating 100% CPU on Ctrl-C.
  * 10-out-of-tree.patch - Allow building out of source tree
  * 11-refactor-enums.patch - Use enums.
  * 12-refactor-constants.patch - Parametrize more hardcoded contants.
  * 13-refactor-statify.patch - Statify functions when possible.
  * 14-internals-doc.patch - Document some internal APIs.
  * 20-minishogi.patch - Initial minishogi support.
  * 21-gen-patterns.patch - Generate patterns.inc at build time.
* Adjust 21-gen-patterns.patch not to cause removal of patterns.inc,
  since that confuses the patch system at clean-time.
* Save patterns.inc before building and resture it on clean, to avoid
  spurious diffs.
* Build-depend on x11-utils instead of the obsolete xutils (lintian).
* Fixed "X Windows" typo in xshogi extended description.
* Make gnushogi suggest tagua as an alternative frontend.
* Reword gnushogi extended description to emphasize that the preferred
  way to use it is through a graphical frontend.
* Remove mention to the Internet Shogi Server in xshogi description,
  since that support was removed long ago upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
 
3
include /usr/share/cdbs/1/rules/debhelper.mk
 
4
include /usr/share/cdbs/1/rules/simple-patchsys.mk 
 
5
include /usr/share/cdbs/1/class/autotools.mk
 
6
 
3
7
DEB_BUILD_ARCH          ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
4
8
 
5
9
ifeq ($(DEB_BUILD_ARCH),alpha)
6
10
        CFLAGS += -O0
7
11
endif
8
12
 
9
 
%:
10
 
        dh ${@} --with quilt
11
 
 
12
 
override_dh_auto_clean:
13
 
        dh_auto_clean
14
 
 
15
 
        rm -f config.guess config.sub
16
 
 
17
 
override_dh_auto_configure:
18
 
        cp -f /usr/share/misc/config.guess config.guess
19
 
        cp -f /usr/share/misc/config.sub config.sub
20
 
 
21
 
        dh_auto_configure
22
 
 
23
 
override_dh_auto_build:
24
 
        $(MAKE)
 
13
binary-arch/gnushogi::
25
14
        $(MAKE) -C doc
26
15
 
27
 
override_dh_auto_install:
28
 
        $(MAKE) BINDIR=\$${prefix}/games LIBDIR=\$${prefix}/lib/games MANDIR=\$${prefix}/share/man/man6 INFODIR=\$${prefix}/share/info -C gnushogi prefix=$(CURDIR)/debian/gnushogi/usr install
29
 
        $(MAKE) BINDIR=\$${prefix}/games LIBDIR=\$${prefix}/lib/games MANDIR=\$${prefix}/share/man/man6 INFODIR=\$${prefix}/share/info -C xshogi prefix=$(CURDIR)/debian/xshogi/usr install
 
16
# do not out-guess debian/*.docs
 
17
DEB_INSTALL_DOCS_ALL=
 
18
 
 
19
# ignore standard "make install", we do it per-package
 
20
DEB_MAKE_INSTALL_TARGET=
 
21
 
 
22
COMMON_INSTALL_OPTS=BINDIR=\$${prefix}/games LIBDIR=\$${prefix}/lib/games MANDIR=\$${prefix}/share/man/man6 INFODIR=\$${prefix}/share/info
 
23
 
 
24
install/gnushogi::
 
25
        $(MAKE) $(COMMON_INSTALL_OPTS) -C gnushogi prefix=$(CURDIR)/debian/gnushogi/usr install
 
26
install/xshogi::
 
27
        $(MAKE) $(COMMON_INSTALL_OPTS) -C xshogi prefix=$(CURDIR)/debian/xshogi/usr install
 
28
 
 
29
 
 
30
# make sure patterns are rebuilt
 
31
configure/gnushogi::
 
32
        test -r gnushogi/pattern.inc.cdbs-orig || \
 
33
                mv gnushogi/pattern.inc gnushogi/pattern.inc.cdbs-orig
 
34
clean::
 
35
        test ! -r gnushogi/pattern.inc.cdbs-orig || \
 
36
                mv gnushogi/pattern.inc.cdbs-orig gnushogi/pattern.inc