[Pkg-wmaker-commits] [wmitime] 21/127: debian/*.mk: update
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Sat Aug 22 01:34:31 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmitime.
commit 0126b769bb77acdbc129bc2ca85f8d74fd09d04e
Author: Jari Aalto <jari.aalto at cante.net>
Date: Mon Oct 27 07:45:26 2008 +0200
debian/*.mk: update
Signed-off-by: Jari Aalto <jari.aalto at cante.net>
---
debian/debian-vars.mk | 106 +++++++++++++++++++++++++++++++++++++++++++++++---
debian/pod2man.mk | 52 ++++++++++++++++++-------
2 files changed, 138 insertions(+), 20 deletions(-)
diff --git a/debian/debian-vars.mk b/debian/debian-vars.mk
index 96a7da6..a8629b7 100644
--- a/debian/debian-vars.mk
+++ b/debian/debian-vars.mk
@@ -1,11 +1,105 @@
-# Common variables
+# debian-vars.mk -- Common variables
+#
+# Copyright (C) 2005-2009 Jari Aalto
+#
+# Released under License GNU GPL v2, or (your choice) any later version.
+# See <http://www.gnu.org/copyleft/gpl.html>.
+#
-PKGDIR = $(CURDIR)/debian/$(PACKAGE)
-SHAREDIR = $(PKGDIR)/usr/share/$(PACKAGE)
+PACKAGE ?= foo
+PKGDIR = $(CURDIR)/debian/$(PACKAGE)
+SHAREDIR = $(PKGDIR)/usr/share/$(PACKAGE)
+SITELISPDIR = $(PKGDIR)/usr/share/site-lisp
+PKGLISPDIR = $(PKGDIR)/usr/share/site-lisp/$(PACKAGE)
+LIBDIR = $(PKGDIR)/usr/lib/$(PACKAGE)
PIXDIR = $(PKGDIR)/usr/share/pixmaps
DESKTOPDIR = $(PKGDIR)/usr/share/applications
-BINDIR = $(PKGDIR)/usr/bin
-MANDIR = $(PKGDIR)/usr/share/man
-MAN1DIR = $(MANDIR)/man1
+LOCALEDIR = $(PKGDIR)/usr/share/locale
+INFODIR = $(PKGDIR)/usr/share/info
+BINDIR = $(PKGDIR)/usr/bin
+SBINDIR = $(PKGDIR)/usr/sbin
+MANDIR = $(PKGDIR)/usr/share/man
+MAN1DIR = $(MANDIR)/man1
+MAN5DIR = $(MANDIR)/man5
+MAN8DIR = $(MANDIR)/man8
+
+INSTALL ?= /usr/bin/install
+INSTALL_DATA = $(INSTALL) -p -m 644
+INSTALL_SCRIPT = $(INSTALL) -p -m 755
+INSTALL_BIN = $(INSTALL) -p -m 755
+INSTALL_DIR = $(INSTALL) -m 755 -d
+
+#######################################################################
+# [Do this to take use of multiple CPU cores]
+# build-stamp:
+# $(MAKE) $(MAKE_FLAGS)
+
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+ INSTALL_BIN += -s
+endif
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+
+MAKE_FLAGS =
+CPU_COUNT := $(shell fgrep -c processor /proc/cpuinfo 2> /dev/null | \
+ egrep "^[2-9]$$|^[0-9][0-9]$$")
+
+ifneq ($(CPU_COUNT),)
+ MAKE_FLAGS += -j$(CPU_COUNT)
+endif
+
+#######################################################################
+# Dealing with packages that have old config.* files: (1) Save (2)
+# Use latest from Debian (3) restore. This way the *diff.gz stays claan.
+#
+# [Do this]
+# config.status: configure
+# ./configure
+# $(config-save)
+# $(config-patch)
+# $(MAKE) $(MAKE_FLAGS)
+#
+# binary-arch: build install
+# ...
+# $(config-restore)
+# dh_builddeb
+
+define config-restore
+ # Restore original files
+ [ ! -f config.sub.original ] || mv -v config.sub.original config.sub
+ [ ! -f config.guess.original ] || mv -v config.guess.original config.guess
+endef
+
+define config-save
+ # Save original files
+ [ -f config.sub.original ] || cp -v config.sub config.sub.original
+ [ -f config.guess.original ] || cp -v config.guess config.guess.original
+endef
+
+ifneq ($(wildcard /usr/share/misc/config.sub),)
+define config-patch-sub
+ # Use latest versions
+ cp -vf /usr/share/misc/config.sub config.sub
+endef
+endif
+
+ifneq ($(wildcard /usr/share/misc/config.guess),)
+define config-patch-guess
+ # Use latest versions
+ cp -vf /usr/share/misc/config.guess config.guess
+endef
+endif
+
+define config-patch
+ $(config-patch-sub)
+ $(config-patch-guess)
+endef
+
# End of of Makefile part
diff --git a/debian/pod2man.mk b/debian/pod2man.mk
index 21b7ebc..a7ae9b7 100644
--- a/debian/pod2man.mk
+++ b/debian/pod2man.mk
@@ -1,37 +1,61 @@
-# Copyright (C) 2005-2007 Jari Aalto
+# pod2man.mk -- Makefile portion to convert *.pod files to manual pages
#
-# This program is free software; you can redistribute it and or
-# modify it under the terms of the GNU General Public License as
-# published by the Free Software Foundation; either version 2 of
-# the License, or (at your option) any later version.
+# Copyright information
#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# General Public License for more details at
-# <http://www.gnu.org/copyleft/gpl.html>
+# Copyright (C) 2008-2009 Jari Aalto
#
-# Put this to 'install' target:
+# License
#
-# install: build $(MANPAGE)
+# This program is free software; you can redistribute it and/or
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License, or (at your option) any later version
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details at
+# Visit <http://www.gnu.org/copyleft/gpl.html>.
+#
+# Description
+#
+# Convert *.pod files to manual pages. Write this to 'install'
+# target:
+#
+# install: build $(MANPAGE)
+ifneq (,)
+This makefile requires GNU Make.
+endif
+
+# These variables *must* be set when calling
PACKAGE = package
PODCENTER = $$(date "+%Y-%m-%d")
MANSECT = 1
+
+# Directories
+MANSRC =
MANDEST = $(MANSRC)
MANPOD = $(MANSRC)$(PACKAGE).$(MANSECT).pod
MANPAGE = $(MANDEST)$(PACKAGE).$(MANSECT)
+# FIXME: Remove 2009
+# >= 5.10.0-16 has --utf8 option
+POD2MAN = pod2man
+POD2MAN_FLAGS = --utf8
+
makeman: $(MANPAGE)
$(MANPAGE): $(MANPOD)
- pod2man --center="$(PODCENTER)" \
+ LC_ALL= LANG=C $(POD2MAN) $(POD2MAN_FLAGS) \
+ --center="$(PODCENTER)" \
--name="$(PACKAGE)" \
--section="$(MANSECT)" \
$(MANPOD) \
| sed 's,[Pp]erl v[0-9.]\+,$(PACKAGE),' \
- > $(MANPAGE) && \
+ > $(MANPAGE) && \
rm -f pod*.tmp
# End of of Makefile part
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmitime.git
More information about the Pkg-wmaker-commits
mailing list