From 36c4fbeb71c255ff7620953d686f9aed7c5c8dcf Mon Sep 17 00:00:00 2001 From: joey Date: Sun, 2 Jun 2002 00:31:05 +0000 Subject: [PATCH] * debhelper v4 * DEB_BUILD_OPTS support --- Makefile | 27 ++++++++++++++++++--------- debian/changelog | 7 +++++++ debian/compat | 1 + debian/control | 4 ++-- debian/rules | 10 ---------- 5 files changed, 28 insertions(+), 21 deletions(-) create mode 100644 debian/compat diff --git a/Makefile b/Makefile index 3e05b6e..d4b7344 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,25 @@ -# Various dialect translators. - -LEX = flex - -BUILD = jethro kraut cockney jive nyc ken ky00te newspeak -OTHER = eleet b1ff chef jibberish upside-down rasterman studly fudd +LEX = flex +BUILD = jethro kraut cockney jive nyc ken ky00te newspeak +OTHER = eleet b1ff chef jibberish upside-down rasterman studly fudd +CFLAGS = -O2 +INSTALL_PROGRAM = install + +# DEB_BUILD_OPTIONS suport, to control binary stripping. +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) +INSTALL_PROGRAM += -s +endif + +# And debug building. +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) +CFLAGS += -g +endif all: $(OTHER) $(BUILD) install: $(BUILD) $(OTHER) install -d $(PREFIX)/usr/games - install $(BUILD) $(OTHER) $(PREFIX)/usr/games/ + $(INSTALL_PROGRAM) $(BUILD) $(PREFIX)/usr/games/ + install $(OTHER) $(PREFIX)/usr/games/ install -d $(PREFIX)/usr/share/man/man6 install -m 0644 filters.6 $(PREFIX)/usr/share/man/man6 cd $(PREFIX)/usr/share/man/man6 && \ @@ -28,8 +38,7 @@ clean: .l: $(RM) $*.c $(LEX) -t $< > $*.c - $(CC) -O -o $@ $*.c -lfl -g -# strip $@ + $(CC) -O -o $@ $*.c -lfl $(CFLAGS) $(RM) $*.c .SUFFIXES: .dir diff --git a/debian/changelog b/debian/changelog index ffa5d4e..1626a67 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +filters (2.24) unstable; urgency=low + + * debhelper v4 + * DEB_BUILD_OPTS support + + -- Joey Hess Sat, 1 Jun 2002 16:45:49 -0400 + filters (2.23) unstable; urgency=low * Patch from Seneca to correct newspeak's diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +4 diff --git a/debian/control b/debian/control index 859e90a..6b3b98a 100644 --- a/debian/control +++ b/debian/control @@ -1,7 +1,7 @@ Source: filters Section: games Priority: optional -Build-Depends: debhelper (>= 3), flex, bison | byacc | btyacc +Build-Depends: debhelper (>= 3), flex, bison | byacc | btyacc, dpkg-dev (>= 1.9.0) Maintainer: Joey Hess Standards-Version: 3.5.6.1 @@ -9,7 +9,7 @@ Package: filters Architecture: any Conflicts: filters-nonfree Replaces: filters-nonfree -Depends: ${shlibs:Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} Description: a collection of filters, including B1FF and the Swedish Chef A collection of filters to do all sorts of strange things to text. This includes such favorites as B1FF and the Swedish Chef, and a wide diff --git a/debian/rules b/debian/rules index 9e8bbc8..3349c55 100755 --- a/debian/rules +++ b/debian/rules @@ -1,11 +1,4 @@ #!/usr/bin/make -f -# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. - -# Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 - -# This is the debhelper compatibility version to use. -export DH_COMPAT=3 build: build-stamp build-stamp: @@ -21,11 +14,8 @@ clean: -$(MAKE) -i clean dh_clean -# Build architecture-independent files here. binary-indep: build -# We have nothing to do by default. -# Build architecture-dependent files here. binary-arch: build dh_testdir dh_testroot -- 2.39.2