--- bglibs-1.041.orig/debian/diff/ibuf_openreadclose.diff +++ bglibs-1.041/debian/diff/ibuf_openreadclose.diff @@ -0,0 +1,11 @@ +--- bglibs/iobuf/ibuf_openreadclose.c (revision 692) ++++ bglibs/iobuf/ibuf_openreadclose.c (working copy) +@@ -8,7 +8,7 @@ + ibuf in; + int r; + if (!ibuf_open(&in, filename, 0)) +- return -1; ++ return 0; + r = ibuf_readall(&in, out); + ibuf_close(&in); + return r; --- bglibs-1.041.orig/debian/bglibs-dev.README.Debian +++ bglibs-1.041/debian/bglibs-dev.README.Debian @@ -0,0 +1,21 @@ +bglibs for Debian +----------------- + +bglibs compiled against the glibc is installed in + /usr/lib/bglibs/ + /usr/include/bglibs/ +The libraries and header files are also accessible through + /usr/lib/bglibs/lib/ + /usr/lib/bglibs/include/ + +bglibs compiled against the diet libc (on architectures the dietlibc is +available for) is installed in + /usr/lib/diet/bglibs/ + /usr/include/diet/bglibs/ +The libraries iand header files are also accessible through + /usr/lib/diet/bglibs/lib/ + /usr/lib/diet/bglibs/include/ + +For the library documentation please install the bglibs-doc package. + + -- Gerrit Pape , Wed, 19 Jun 2002 15:11:42 +0200 --- bglibs-1.041.orig/debian/bglibs-dev.postinst +++ bglibs-1.041/debian/bglibs-dev.postinst @@ -0,0 +1,14 @@ +#!/bin/sh +set -e + +test "$1" = 'configure' || exit 0 +test -n "$2" || exit 0 +test ! -h /usr/lib/bglibs/lib || exit 0 +dpkg --compare-versions "$2" lt '1.015-0' || exit 0 +rmdir /usr/lib/bglibs/lib && ln -s . /usr/lib/bglibs/lib && exit 0 + +>&2 echo ' +/usr/lib/bglibs/lib should be a symlink to /usr/lib/bglibs now. +Please remove /usr/lib/bglibs/lib/ and reinstall the package. +' +exit 1 --- bglibs-1.041.orig/debian/bglibs-doc.docs +++ bglibs-1.041/debian/bglibs-doc.docs @@ -0,0 +1,4 @@ +gnu/bglibs/NEWS +gnu/bglibs/README +gnu/bglibs/TODO +gnu/bglibs/ANNOUNCEMENT --- bglibs-1.041.orig/debian/changelog +++ bglibs-1.041/debian/changelog @@ -0,0 +1,307 @@ +bglibs (1.041-2) unstable; urgency=low + + * debian/diff/ibuf_openreadclose.diff: ibuf_openreadclose() returns 0 if + it it fails to open the file (#376244). + + -- Gerrit Pape Tue, 11 Jul 2006 21:04:49 +0000 + +bglibs (1.041-1) unstable; urgency=low + + * new upstream version. + * debian/rules: remove workaround for #327229; strip binaries only; install + man page into /usr/share/man/ hierarchy and gzip -9. + * debian/diff/signed-char.diff: remove; applied upstream. + + -- Gerrit Pape Sun, 16 Apr 2006 16:22:53 +0000 + +bglibs (1.031-1) unstable; urgency=low + + * new upstream version. + * debian/diff/signed-char.diff: adapt. + * debian/copyright: adapt; license now is LGPL-2.1. + + -- Gerrit Pape Tue, 6 Dec 2005 16:49:38 +0000 + +bglibs (1.027-3) unstable; urgency=low + + * debian/diff/signed-char.diff; new; asc2bin: char->signed char (closes: + #332321). + + -- Gerrit Pape Tue, 18 Oct 2005 18:23:36 +0000 + +bglibs (1.027-2) unstable; urgency=medium + + * debian/rules: use -O1 in CFLAGS on arm, hppa for build against glibc, + don't use -Os switch to diet on arm for build against diet libc (works + around: #327229). + + -- Gerrit Pape Mon, 26 Sep 2005 10:00:22 +0000 + +bglibs (1.027-1) unstable; urgency=low + + * new upstream version. + * debian/rules: use -O0 in CFLAGS on arm, hppa to work around gcc-4 + optimization problem. + + -- Gerrit Pape Wed, 7 Sep 2005 11:20:51 +0000 + +bglibs (1.026-1) unstable; urgency=low + + * new upstream version. + * debian/diff/findprev-in-empty.diff, debian/diff/findprev-in-empty.diff: + remove; fixed upstream. + + -- Gerrit Pape Mon, 22 Aug 2005 18:22:34 +0000 + +bglibs (1.024-2) unstable; urgency=low + + * debian/diff/findprev-in-empty.diff, debian/diff/findprev-in-empty.diff: + new (fixes mailfront testing failures on alpha, ia64). + * debian/rules: unpack: apply diffs in debian/diff/. + * debian/bglibs-dev.postinst: minor. + + -- Gerrit Pape Sun, 31 Jul 2005 09:13:08 +0000 + +bglibs (1.024-1) unstable; urgency=low + + * new upstream version. + + -- Gerrit Pape Thu, 14 Jul 2005 08:01:03 +0000 + +bglibs (1.023-1) unstable; urgency=low + + * new upstream version. + * debian/control: Standards-Version: 3.6.2.0. + + -- Gerrit Pape Sun, 10 Jul 2005 11:14:18 +0000 + +bglibs (1.022-1) unstable; urgency=low + + * new upstream version. + - fixes build failure on amd64 (thx Kurt Roeckx, closes: #313064). + * debian/control: Depends: ${shlibs:Depends}. + * debian/rules: don't install target directories, make install now does; + binary-arch: run dpkg-shlibdeps. + * debian/copyright: 2005. + + -- Gerrit Pape Wed, 15 Jun 2005 18:45:19 +0000 + +bglibs (1.021-1) unstable; urgency=low + + * new upstream version. + * debian/control: Description: BG Libraries Collection. + * debian/rules: don't apply diff; utilize upstream's conf-lib, + conf-include, install target and install_prefix. + * debian/diff/va_foo.diff: remove; fixed upstream. + + -- Gerrit Pape Wed, 8 Jun 2005 18:48:27 +0000 + +bglibs (1.020-3) unstable; urgency=low + + * debian/diff/va_foo.diff: new (fixes build failure on ia64, ppc). + * debian/rules: apply diff. + + -- Gerrit Pape Sat, 4 Jun 2005 12:31:39 +0000 + +bglibs (1.020-2) unstable; urgency=low + + * debian/rules: typo: use diet, not diet-dyn (fixes build failure). + * debian/control: remove version restrictions from Build-Depends: + dietlibc-dev. + + -- Gerrit Pape Fri, 3 Jun 2005 09:47:16 +0000 + +bglibs (1.020-1) unstable; urgency=low + + * debian/control: add Build-Depends: dietlibc-dev [ppc64]. + * debian/rules: add ppc64 to DIET_ARCHS (thx Andreas Jochens, closes: + #299303); use -nostdinc option with diet libc. + * new upstream version (closes: #300605). + + -- Gerrit Pape Mon, 30 May 2005 19:23:19 +0000 + +bglibs (1.019-1) unstable; urgency=low + + * new upstream version. + * debian/control: bglibs-dev package Recommends: bglibs-doc. + + -- Gerrit Pape Wed, 17 Nov 2004 13:16:14 +0000 + +bglibs (1.018-1) unstable; urgency=low + + * new upstream version. + * debian/rules: minor cleanup. + * debian/implicit: update to revision 1.10. + + -- Gerrit Pape Sat, 30 Oct 2004 12:37:40 +0000 + +bglibs (1.017-3) unstable; urgency=low + + * debian/rules: use dietlibc-dev on amd64 (thx Andreas Jochens); minor. + * debian/control: Build-Depends: dietlibc-dev +[amd64]. + + -- Gerrit Pape Fri, 30 Apr 2004 19:26:56 +0000 + +bglibs (1.017-2) unstable; urgency=low + + * debian/control: Build-Depends: dietlibc-dev (>> 0.25-0) (fixes + build/testing failures on archs !i386, !sparc, closes: #240492). + + -- Gerrit Pape Sun, 28 Mar 2004 14:37:51 +0000 + +bglibs (1.017-1) unstable; urgency=low + + * new upstream version. + * debian/rules: split target unpack-stamp into unpack-gnu-stamp and + unpack-diet-stamp; add -Os to CFLAGS (fixes build failure on m68k); + remove workaround to suppress gcc-3.3 warnings (fixes build failure + with gcc-2.95). + * debian/implicit: update to revision 1.8. + * debian/control: Build-Depends: dietlibc-dev (>> 0.24-5). + + -- Gerrit Pape Fri, 26 Mar 2004 11:55:56 +0000 + +bglibs (1.016-1) unstable; urgency=low + + * new upstream version. + + -- Gerrit Pape Mon, 8 Mar 2004 08:09:33 +0000 + +bglibs (1.015-1) unstable; urgency=low + + * new upstream version. + * include upstream tar.gz archive in orig.tar.gz. + * debian/rules: stop using debhelper, use implicit rules; build and + install libraries linked against dietlibc, additionally to glibc. + * debian/implicit: new; implicit Makefile rules. + * debian/control: no longer Build-Depends: debhelper; Build-Depends: + dietlibc-dev [...]; bglibs-dev Suggests: dietlibc-dev. + * debian/bglibs-doc.docs: adapt. + * debian/copyright: include explicit copyright statement. + * debian/README.Debian: rename to debian/bglibs-dev.README.Debian; adapt. + * debian/bglibs-dev.postinst: new; make sure /usr/lib/bglibs/lib is a + symlink after upgrade. + * debian/bglibs-dev.files: remove; obsolete. + + -- Gerrit Pape Sat, 28 Feb 2004 09:44:06 +0000 + +bglibs (1.011-1) unstable; urgency=low + + * new upstream version. + * diff/bad-long.diff, diff/crc-64bit.diff, diff/selfpipe-test.diff: + remove; fixed upstream. + * debian/rules: disable target patch-stamp. + * debian/control: Standards-Version: 3.6.1.0. + + -- Gerrit Pape Tue, 2 Dec 2003 09:36:10 +0000 + +bglibs (1.010-2) unstable; urgency=low + + * debian/diff/crc-64bit.diff: new; from upstream: fix buglet in + crc-gentab.c not accounting for unsigned long being 64-bits long. + + -- Gerrit Pape Tue, 18 Nov 2003 20:44:24 +0000 + +bglibs (1.010-1) unstable; urgency=low + + * new upstream version. + * debian/diff/sfy-gcc-3.3.diff: remove; fixed upstream. + * debian/diff/bad-long.diff: new; taken from upstream svn: typo fix. + * debian/diff/selfpipe-test.diff: new; taken from upstream svn: don't + rely on selfpipe fds to be 3 and 4. + + -- Gerrit Pape Tue, 18 Nov 2003 09:44:01 +0000 + +bglibs (1.009-2) unstable; urgency=low + + * debian/diff/sfy-gcc-3.3.diff: new; taken from upstream; fixes build + failure and warnings with gcc-3.3 (closes: #194862). + * debian/rules: enable target patch. + + -- Gerrit Pape Thu, 29 May 2003 17:12:15 +0200 + +bglibs (1.009-1) unstable; urgency=low + + * new upstream version: rewrite of sha256 and sha512 algorithms to + make them work on both 64-bit and MSB platforms (closes: #187668). + * debian/diff/sha64bit.diff: remove; fixed upstream. + * debian/rules: disable patch target; show compiler version. + + -- Gerrit Pape Mon, 7 Apr 2003 20:40:32 +0200 + +bglibs (1.008-2) unstable; urgency=low + + * debian/diff/sha64bit.diff: new; fixes build failure on 64bit + architectures (modified and approved by upstream). + + -- Gerrit Pape Fri, 4 Apr 2003 09:43:39 +0200 + +bglibs (1.008-1) unstable; urgency=low + + * new upstream version. + * debian/diff/const_int.diff: remove; fixed upstream. + * debian/control: Section: libdevel. + + -- Gerrit Pape Thu, 3 Apr 2003 14:09:16 +0200 + +bglibs (1.007-1) unstable; urgency=low + + * new upstream version. + * diff/const_int.diff: new; resolve conflicting type in selftest. + * debian/rules: add targets patch, patch-stamp: apply diffs from + debian/diff/; minor cleanup. + + -- Gerrit Pape Thu, 20 Mar 2003 14:30:05 +0100 + +bglibs (1.006-1) unstable; urgency=low + + * new upstream version. + * provide documentation in different package: bglibs-doc. + * debian/control: add package bglibs-doc; remove [arm] dependency on + gcc-3.2; Standards-Version: 3.5.8. + * debian/copyright: refer to common-licenses/GPL-2. + * debian/rules: remove force-gcc-3.2 workaround for arm, 3.2 is now + default; build bglibs-doc in target binary-indep. + + -- Gerrit Pape Thu, 6 Mar 2003 14:18:13 +0100 + +bglibs (1.005-1) unstable; urgency=low + + * new upstream version. + * debian/control: build-depends on gcc-3.2 [arm]; slightly improve + long description (closes: #151316). + * debian/rules: force gcc-3.2 on arm, see gcc bug #151675; add -n + option to dh_installdocs; minor cleanup. + + -- Gerrit Pape Wed, 18 Dec 2002 12:54:30 +0100 + +bglibs (1.003-1) unstable; urgency=low + + * new upstream version. + + -- Gerrit Pape Wed, 2 Oct 2002 14:22:19 +0200 + +bglibs (1.002-1) unstable; urgency=low + + * new upstream version. + + -- Gerrit Pape Mon, 19 Aug 2002 12:03:59 +0200 + +bglibs (1.001-3) unstable; urgency=low + + * debian/rules: workaround (imho) unexpected behavior of make (see + bug #153253): 'rm -f installer instcheck instshow' is not enough. + + -- Gerrit Pape Fri, 16 Aug 2002 10:43:44 +0200 + +bglibs (1.001-2) unstable; urgency=low + + * disable -O option to gcc on arm architecture to work around #151675. + + -- Gerrit Pape Wed, 3 Jul 2002 10:57:45 +0200 + +bglibs (1.001-1) unstable; urgency=low + + * Initial Release (closes: #148901). + + -- Gerrit Pape Wed, 19 Jun 2002 15:11:42 +0200 --- bglibs-1.041.orig/debian/control +++ bglibs-1.041/debian/control @@ -0,0 +1,32 @@ +Source: bglibs +Priority: optional +Maintainer: Gerrit Pape +Build-Depends: dietlibc-dev [alpha amd64 arm hppa i386 ia64 mips mipsel powerpc ppc64 s390 sparc] +Standards-Version: 3.6.2.0 + +Package: bglibs-dev +Section: libdevel +Architecture: any +Depends: ${shlibs:Depends} +Recommends: bglibs-doc +Suggests: dietlibc-dev +Description: BG Libraries Collection + This package contains a collection of libraries written by myself + [Bruce Guenter] and put in use in various packages. + . + The library collection is mandatory to build most of Bruce Guenter's + software packages available at http://untroubled.org. + . + See http://untroubled.org/bglibs/ for more information. + +Package: bglibs-doc +Section: doc +Architecture: all +Suggests: bglibs-dev +Description: BG Libraries Collection (documentation) + The bglibs library collection is mandatory to build most of Bruce + Guenter's software packages available at http://untroubled.org. + . + This package contains the documentation for bglibs. + . + See http://untroubled.org/bglibs/ for more information. --- bglibs-1.041.orig/debian/copyright +++ bglibs-1.041/debian/copyright @@ -0,0 +1,22 @@ +This package was debianized by Gerrit Pape on +Wed, 19 Jun 2002 15:11:42 +0200. + +It was downloaded from http://untroubled.org/bglibs/ + +Upstream Author: Bruce Guenter + +Copyright: + +Copyright(C) 2002-2005 Bruce Guenter + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +This library 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 +Lesser General Public License for more details. + +The full text can be found at /usr/share/common-licenses/LGPL-2.1. --- bglibs-1.041.orig/debian/implicit +++ bglibs-1.041/debian/implicit @@ -0,0 +1,85 @@ +# $Id: implicit,v 1.10 2004/07/03 15:20:00 pape Exp $ + +.PHONY: deb-checkdir deb-checkuid + +deb-checkdir: + @test -e debian/control || sh -cx '! : wrong directory' +deb-checkuid: + @test "`id -u`" -eq 0 || sh -cx '! : need root privileges' + +%.deb: %.deb-docs %.deb-DEBIAN + @rm -f $*.deb $*.deb-checkdir $*.deb-docs $*.deb-docs-base \ + $*.deb-docs-docs $*.deb-docs-examples $*.deb-DEBIAN \ + $*.deb-DEBIAN-dir $*.deb-DEBIAN-scripts $*.deb-DEBIAN-md5sums + +%.udeb: %.deb-DEBIAN + @rm -f $*.deb $*.deb-checkdir $*.deb-DEBIAN $*.deb-DEBIAN-dir \ + $*.deb-DEBIAN-scripts $*.deb-DEBIAN-md5sums + +%.deb-checkdir: + @test -d debian/$* || sh -cx '! : directory debian/$* missing' + @test "`id -u`" -eq 0 || sh -cx '! : need root privileges' + +%.deb-docs-base: + : implicit + @rm -f debian/$*/usr/share/doc/$*/* || : + @install -d -m0755 debian/$*/usr/share/doc/$* + : debian/$*/usr/share/doc/$*/ + @sh -cx 'install -m0644 debian/copyright debian/$*/usr/share/doc/$*/' + @sh -cx 'install -m0644 debian/changelog \ + debian/$*/usr/share/doc/$*/changelog.Debian' + @test ! -r changelog || \ + sh -cx 'install -m0644 changelog debian/$*/usr/share/doc/$*/' + @test -r debian/$*/usr/share/doc/$*/changelog || \ + sh -cx 'mv debian/$*/usr/share/doc/$*/changelog.Debian \ + debian/$*/usr/share/doc/$*/changelog' + @test -s debian/$*/usr/share/doc/$*/changelog || \ + sh -cx 'rm -f debian/$*/usr/share/doc/$*/changelog' + @gzip -9 debian/$*/usr/share/doc/$*/changelog* +%.deb-docs-docs: + @for i in `cat debian/$*.docs 2>/dev/null || :`; do \ + sh -cx "install -m0644 $$i debian/$*/usr/share/doc/$*/" || exit 1; \ + done + @test ! -r debian/$*.README.Debian || \ + sh -cx 'install -m0644 debian/$*.README.Debian \ + debian/$*/usr/share/doc/$*/README.Debian' + @if test -r debian/$*.NEWS.Debian; then \ + sh -cx 'install -m0644 debian/$*.NEWS.Debian \ + debian/$*/usr/share/doc/$*/NEWS.Debian && \ + gzip -9 debian/$*/usr/share/doc/$*/NEWS.Debian'; \ + fi +%.deb-docs-examples: + @rm -rf debian/$*/usr/share/doc/$*/examples + : debian/$*/usr/share/doc/$*/examples/ + @test ! -r debian/$*.examples || \ + install -d -m0755 debian/$*/usr/share/doc/$*/examples + @for i in `cat debian/$*.examples 2>/dev/null || :`; do \ + sh -cx "install -m0644 $$i debian/$*/usr/share/doc/$*/examples/" \ + || exit 1; \ + done +%.deb-docs: %.deb-checkdir %.deb-docs-base %.deb-docs-docs %.deb-docs-examples + : debian/$*/usr/share/doc/$*/ ok + +%.deb-DEBIAN-base: + @rm -rf debian/$*/DEBIAN + : debian/$*/DEBIAN/ + @install -d -m0755 debian/$*/DEBIAN + @for i in conffiles shlibs templates; do \ + test ! -r debian/$*.$$i || \ + sh -cx "install -m0644 debian/$*.$$i debian/$*/DEBIAN/$$i" \ + || exit 1; \ + done +%.deb-DEBIAN-scripts: + @for i in preinst prerm postinst postrm config; do \ + test ! -r debian/$*.$$i || \ + sh -cx "install -m0755 debian/$*.$$i debian/$*/DEBIAN/$$i" \ + || exit 1; \ + done +%.deb-DEBIAN-md5sums: + : debian/$*/DEBIAN/md5sums + @rm -f debian/$*/DEBIAN/md5sums + @cd debian/$* && find * -path 'DEBIAN' -prune -o \ + -type f -exec md5sum {} >>DEBIAN/md5sums \; +%.deb-DEBIAN: %.deb-checkdir %.deb-DEBIAN-base %.deb-DEBIAN-scripts \ + %.deb-DEBIAN-md5sums + : debian/$*/DEBIAN/ ok --- bglibs-1.041.orig/debian/rules +++ bglibs-1.041/debian/rules @@ -0,0 +1,123 @@ +#!/usr/bin/make -f + +CFLAGS =-W -Wall -Wshadow -Os +STRIP =strip +DIETCC =diet -v -Os gcc + +build =build-gnu-stamp build-diet-stamp +install =install-gnu install-diet +DIET_ARCHS =alpha amd64 arm hppa i386 ia64 mips mipsel powerpc ppc64 s390 sparc +ARCH ?=$(shell dpkg-architecture -qDEB_HOST_ARCH) + +ifeq (,$(findstring $(ARCH),$(DIET_ARCHS))) + build =build-gnu-stamp + install =install-gnu +endif + +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) + CFLAGS +=-g +endif +ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + STRIP =: nostrip +endif + +DIR =$(shell pwd)/debian/bglibs + +unpack: deb-checkdir unpack-gnu-stamp unpack-diet-stamp +unpack-gnu-stamp: + mkdir -p gnu + (cd gnu && tar xzf -) gnu/bglibs/conf-cc + echo 'gcc' >gnu/bglibs/conf-ld + echo '/usr/lib/bglibs' >gnu/bglibs/conf-lib + echo '/usr/include/bglibs' >gnu/bglibs/conf-include + echo '/usr/lib/bglibs/bin' >gnu/bglibs/conf-bin + echo '/usr/share/man' >gnu/bglibs/conf-man + touch unpack-gnu-stamp +unpack-diet-stamp: + mkdir -p diet + (cd diet && tar xzf -) diet/bglibs/conf-cc + echo '$(DIETCC)' >diet/bglibs/conf-ld + echo '/usr/lib/diet/bglibs' >diet/bglibs/conf-lib + echo '/usr/include/diet/bglibs' >diet/bglibs/conf-include + echo '/usr/lib/diet/bglibs/bin' >diet/bglibs/conf-bin + echo '/usr/share/man' >diet/bglibs/conf-man + touch unpack-diet-stamp + +build: deb-checkdir $(build) +build-gnu-stamp: unpack-gnu-stamp + -gcc -v + $(MAKE) -Cgnu/bglibs + touch build-gnu-stamp +build-diet-stamp: unpack-diet-stamp + -gcc -v + $(MAKE) -Cdiet/bglibs + touch build-diet-stamp + +clean: deb-checkdir deb-checkuid + rm -rf gnu diet + rm -f unpack-gnu-stamp unpack-diet-stamp build-gnu-stamp \ + build-diet-stamp + rm -rf '$(DIR)'-dev '$(DIR)'-doc + rm -f debian/files debian/substvars changelog + +install: install-indep install-arch +install-indep: deb-checkdir deb-checkuid unpack-gnu-stamp + rm -rf '$(DIR)'-doc + install -d -m0755 '$(DIR)'-doc/usr/share/doc/bglibs-doc/html + install -d -m0755 '$(DIR)'-doc/usr/share/doc/bglibs-doc/latex + install -m0644 gnu/bglibs/doc/html/* \ + '$(DIR)'-doc/usr/share/doc/bglibs-doc/html/ + install -m0644 gnu/bglibs/doc/latex/* \ + '$(DIR)'-doc/usr/share/doc/bglibs-doc/latex/ + test -r changelog || ln -s gnu/bglibs/ChangeLog changelog + +install-arch: deb-checkdir deb-checkuid $(install) +install-gnu: build-gnu-stamp + rm -rf '$(DIR)'-dev + $(MAKE) -Cgnu/bglibs install install_prefix='$(DIR)'-dev/ + gzip -f -9 '$(DIR)'-dev/usr/share/man/man1/*.1 + $(STRIP) --strip-debug '$(DIR)'-dev/usr/lib/bglibs/*.a + for i in '$(DIR)'-dev/usr/lib/bglibs/bin/*; do \ + test "`head -c2 $$i`" = '#!' || $(STRIP) -R .comment -R .note $$i; \ + done + ln -s . '$(DIR)'-dev/usr/lib/bglibs/lib + ln -s ../../include/bglibs '$(DIR)'-dev/usr/lib/bglibs/include + test -r changelog || ln -s gnu/bglibs/ChangeLog changelog +install-diet: build-diet-stamp install-gnu + $(MAKE) -Cdiet/bglibs install install_prefix='$(DIR)'-dev/ + gzip -f -9 '$(DIR)'-dev/usr/share/man/man1/*.1 + $(STRIP) --strip-debug '$(DIR)'-dev/usr/lib/diet/bglibs/*.a + for i in '$(DIR)'-dev/usr/lib/diet/bglibs/bin/*; do \ + test "`head -c2 $$i`" = '#!' || $(STRIP) -R .comment -R .note $$i; \ + done + ln -s . '$(DIR)'-dev/usr/lib/diet/bglibs/lib + ln -s ../../../include/bglibs '$(DIR)'-dev/usr/lib/diet/bglibs/include + rm -rf '$(DIR)'-dev/usr/include/diet/bglibs + ln -s ../bglibs '$(DIR)'-dev/usr/include/diet/bglibs + test -r changelog || ln -s gnu/bglibs/ChangeLog changelog + +binary-indep: install-indep bglibs-doc.deb + dpkg-gencontrol -isp -pbglibs-doc -P'$(DIR)'-doc + dpkg -b '$(DIR)'-doc .. + +binary-arch: install-arch bglibs-dev.deb + dpkg-shlibdeps '$(DIR)'-dev/usr/lib/bglibs/bin/* + dpkg-gencontrol -isp -pbglibs-dev -P'$(DIR)'-dev + dpkg -b '$(DIR)'-dev .. + +binary: binary-indep binary-arch + +.PHONY: unpack build clean binary-indep binary-arch binary install-indep \ + install-arch install-gnu install-diet install + +include debian/implicit