~kroq-gar78/ubuntu/precise/ace-of-penguins/fix-978446

« back to all changes in this revision

Viewing changes to debian/debian-vars.mk

  • Committer: Bazaar Package Importer
  • Author(s): Jari Aalto
  • Date: 2009-08-05 11:39:32 UTC
  • Revision ID: james.westby@ubuntu.com-20090805113932-5u4zxr5hoh38pu3o
Tags: 1.2-9
* GENRAL INFORMATION:
  - Summary: the whole package is now patch based.
  - The orginal sources were restored and patches accumulated
    to it were extracted and moved to /debian/patches
  - The original sources were upgraded to latest automake by
    re-libtoolizing with 'autoreconf -fi'. The results were then
    turned into patches. See debian/README.source
* debian/*.desktop:
  - New files. Files submitted by Daniel Dickinson <cshore@wightman.ca>.
    Closes: #478847.
* debian/*.pod
  - Fix incorrect =item tag.
* debian/*.lintian-overrides:
  - Ignore autoreconf and library notes.
* debian/copyright:
  - Update to new dh-make layout.
  - Add Debian packaging copyrights.
  - Change upstream URL to point to freshmeat.
  - Explicitly spell v2 or any later version (lintian).
* debian/compat:
  - update to 7.
* debian/control:
  - (Build-Depends): debhelper (>= 7), was 4. Add dpatch.
  - (Description): Replace term 'Unix/X' with 'graphical'.
  - (Vcs-*): Add new fields.
  - (Homepage): Add new field.
  - (Standards-Version): Update to 3.8.2.
  - (Build-Depends): Remove non-used dpatch.
* debian/debian-vars.mk:
  - Many new variables like CFLAGS, MAKE_FLAGS
  - By default use -j<CPU_COUNT> for make.
* debian/rules:
  - Add dpatch.
  - (binary-arch): Add dh_compress and adjust the manual page
    installation. Remove obsolete dh_desktop.
  - (build-man): New.
  - (clean): Fix lintian checks about -$(MAKE). Clean editors' temporary
    files.
  - (clean-man): New.
  - (install): install *.desktop files. Change programs' prefix form
    ace_* to ace-*. Change 'dh_clean -k' with dh_prep. Install lintian
    override file.
  - (test): New target.
* debian/README.source:
  - Explain autconf 2.64 re-libtoolize process
  - Explain debian/rules specifics concerning libtoolize.
* games/taipei.html:
  - Revert Bug#327185. According to the upstream,
    every game can be won. Explain this in page.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Comman variables
2
 
 
3
 
PACKAGE         = wmitime
4
 
PKGDIR          = $(CURDIR)/debian/$(PACKAGE)
5
 
SHAREDIR        = $(CURDIR)/debian/$(PACKAGE)/usr/share/$(PACKAGE)
6
 
BINDIR          = $(PKGDIR)/usr/bin
7
 
MANDIR          = $(PKGDIR)/usr/share/man
8
 
MAN1DIR         = $(MANDIR)/man1
9
 
 
10
 
# End of of Makefile part
 
1
# debian-vars.mk -- Common variables
 
2
#
 
3
#   Copyright
 
4
#
 
5
#       Copyright (C) 2005-2009 Jari Aalto <jari.aalto@cante.net>
 
6
#
 
7
#   License
 
8
#
 
9
#       This program is free software; you can redistribute it and or
 
10
#       modify it under the terms of the GNU General Public License as
 
11
#       published by the Free Software Foundation; either version 2 of
 
12
#       the License, or (at your option) any later version.
 
13
#
 
14
#       This program is distributed in the hope that it will be useful, but
 
15
#       WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
#       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 
17
#       General Public License for more details at
 
18
#       <http://www.gnu.org/copyleft/gpl.html>.
 
19
#
 
20
#   Description
 
21
#
 
22
#       This is GNU makefile part, that defines common variables and
 
23
#       macros to be used from debian/rules. To install, add this:
 
24
#
 
25
#           PACKAGE = foo
 
26
#           include debian/debian-vars.mk
 
27
 
 
28
ifneq (,)
 
29
    This makefile requires GNU Make.
 
30
endif
 
31
 
 
32
PACKAGE         ?= foo
 
33
TOPDIR          := $(shell pwd)
 
34
PKGDIR          = $(CURDIR)/debian/$(PACKAGE)
 
35
 
 
36
SHAREROOTDIR    = $(PKGDIR)/usr/share
 
37
SHAREDIR        = $(SHAREROOTDIR)/$(PACKAGE)
 
38
DOCROOTDIR      = $(SHAREROOTDIR)/doc
 
39
PKGDOCDIR       = $(SHAREROOTDIR)/doc/$(PACKAGE)
 
40
SITELISPDIR     = $(SHAREROOTDIR)/site-lisp
 
41
PKGLISPDIR      = $(SHAREROOTDIR)/site-lisp/$(PACKAGE)
 
42
DESKTOPDIR      = $(SHAREROOTDIR)/applications
 
43
LOCALEDIR       = $(SHAREROOTDIR)/locale
 
44
INFODIR         = $(SHAREROOTDIR)/info
 
45
PIXDIR          = $(SHAREROOTDIR)/pixmaps
 
46
 
 
47
MANROOTDIR      = $(SHAREROOTDIR)/man
 
48
MAN1DIR         = $(MANROOTDIR)/man1
 
49
MAN5DIR         = $(MANROOTDIR)/man5
 
50
MAN8DIR         = $(MANROOTDIR)/man8
 
51
 
 
52
LIBROOTDIR      = $(PKGDIR)/usr/lib
 
53
LIBDIR          = $(LIBROOTDIR)/$(PACKAGE)
 
54
LIBPERLDIR      = $(LIBROOTDIR)/perl
 
55
 
 
56
BINDIR          = $(PKGDIR)/usr/bin
 
57
SBINDIR         = $(PKGDIR)/usr/sbin
 
58
 
 
59
INSTALL         ?= /usr/bin/install
 
60
INSTALL_DATA    = $(INSTALL) -p -m 644
 
61
INSTALL_SCRIPT  = $(INSTALL) -p -m 755
 
62
INSTALL_BIN     = $(INSTALL) -p -m 755
 
63
INSTALL_DIR     = $(INSTALL) -m 755 -d
 
64
 
 
65
#######################################################################
 
66
# These are used for cross-compiling and for saving the configure script
 
67
# from having to guess our platform (since we know it already)
 
68
#
 
69
# [Add this]
 
70
# config.status: configure
 
71
#       ...
 
72
#       ./configure --host=$(DEB_HOST_GNU_TYPE) \
 
73
#                   --build=$(DEB_BUILD_GNU_TYPE) \
 
74
 
 
75
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 
76
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
77
 
 
78
#######################################################################
 
79
# [Add this to use multiple CPU cores]
 
80
#       build-stamp:
 
81
#               $(MAKE) $(MAKE_FLAGS)
 
82
 
 
83
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 
84
    INSTALL_BIN += -s
 
85
endif
 
86
 
 
87
CFLAGS          = -Wall -g
 
88
 
 
89
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
90
    CFLAGS += -O0
 
91
else
 
92
    CFLAGS += -O2
 
93
endif
 
94
 
 
95
MAKE_FLAGS      =
 
96
CPU_COUNT       := $(shell fgrep -c processor /proc/cpuinfo 2> /dev/null | \
 
97
                     egrep "^[2-9]$$|^[0-9][0-9]$$")
 
98
 
 
99
ifneq ($(CPU_COUNT),)
 
100
    MAKE_FLAGS  += -j$(CPU_COUNT)
 
101
endif
 
102
 
 
103
# End of Makefile part