Attached a debian package build. At least csi and csc do their job for me. Maybe some things are missing or at the wrong place?
/Jörg
>From c46f71552758d5ac60f2dde34c50c4dab7bd661e Mon Sep 17 00:00:00 2001 From: Jörg F. Wittenberger <joerg.wittenber...@softeyes.net> Date: Sat, 13 Jun 2015 15:34:05 +0200 Subject: [PATCH] a debian package build --- debian/README.Debian | 17 ++ debian/changelog | 439 ++++++++++++++++++++++++++++++++++++++++++ debian/chicken-bin.dirs | 2 + debian/chicken-bin.docs | 3 + debian/chicken-bin.install | 2 + debian/chicken-bin.manpages | 5 + debian/compat | 1 + debian/control | 50 +++++ debian/copyright | 41 ++++ debian/libchicken-dev.dirs | 2 + debian/libchicken-dev.install | 3 + debian/libchicken7.install | 2 + debian/rules | 91 +++++++++ 13 files changed, 658 insertions(+) create mode 100644 debian/README.Debian create mode 100644 debian/changelog create mode 100644 debian/chicken-bin.dirs create mode 100644 debian/chicken-bin.docs create mode 100644 debian/chicken-bin.install create mode 100644 debian/chicken-bin.manpages create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/libchicken-dev.dirs create mode 100644 debian/libchicken-dev.install create mode 100644 debian/libchicken7.install create mode 100755 debian/rules diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..72fd8b1 --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,17 @@ +Since version 2.2-1 I decided to drop the old packaging scheme with chicken +and chicken-dev packages and now we have a libchickenX package, with runtime +libs, a libchicken-dev package, with header and static libs and, finally, a +chicken-bin package that contains the tools. +chicken-bin needs to depend on both libchickenX (the compiler is linked against +it) and on libchicken-dev to be able to compile scm files into C ones: I know +that this is not a real common approach, but the alternative (merge -bin and +-dev package) would be probably uglier because we will need to depend on both +libpcre3 and libpcre3-dev! +If you want to discuss a better approach feel free to contact me. + +Davide Puricelli <e...@debian.org> + +I (Joerg Wittenberger's) am not an experienced debian package guru. I +changed only what I found really neccessary. Since pcre is no longer +a dependancy, please feel free to return or move forward to a better +packaging. diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..86f5b70 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,439 @@ +chicken (4.9.1u-2) unstable; urgency=low + + * Follow git to current state. + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Sat, 13 Jun 2015 13:10:00 +0200 + +chicken (4.9.1u-1) unstable; urgency=low + + * Follow git to current state. + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Sun, 04 May 2014 14:56:00 +0200 + +chicken (4.8.4-2) unstable; urgency=low + + * Cherrypick todays optimization from Peter Bex's regarding the mutation stack. + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Mon, 06 Apr 2014 11:44:00 +0200 + +chicken (4.8.4-1) unstable; urgency=low + + * Follow git. + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Mon, 20 Mar 2014 16:48:00 +0200 + +chicken (4.8.3-1) unstable; urgency=low + + * Follow git - might be tricky this time. Many changes, partially crazy. + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Mon, 05 Nov 2013 15:34:00 +0200 + +chicken (4.8.2-5) unstable; urgency=low + + * Follow git. + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Mon, 23 Jul 2013 11:32:00 +0200 + +chicken (4.8.2-4) unstable; urgency=low + + * Switch to the syntax-rules based implementation of llrb trees. + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Mon, 21 Jun 2013 10:36:15 +0200 + +chicken (4.8.2-3exp) unstable; urgency=low + + * Follow git + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Mon, 17 Jun 2013 17:54:39 +0200 + +chicken (4.8.2-2exp) unstable; urgency=low + + * Follow git (accidentely) + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Fri, 2 Mar 2013 13:36:53 +0200 + +chicken (4.8.2-1exp) unstable; urgency=low + + * Follow git + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Sun, 03 Mar 2013 13:24:18 +0200 + +chicken (4.7.5-19exp) unstable; urgency=low + + * Follow git + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Thu, 03 Jul 2012 19:51:00 +0200 + +chicken (4.7.5-18exp) unstable; urgency=low + + * Wait via poll + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Thu, 13 May 2012 15:53:00 +0200 + +chicken (4.7.5-17dbg) unstable; urgency=low + + * Try to follow git + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Thu, 12 May 2012 13:18:00 +0200 + +chicken (4.7.5-16dbg) unstable; urgency=low + + * Try to follow git + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Thu, 09 Feb 2012 12:14:00 +0200 + +chicken (4.7.4-15dbg) unstable; urgency=low + + * Modify to track down the segfault + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Thu, 12 Jan 2012 18:21:00 +0200 + +chicken (4.7.4-14sig) unstable; urgency=low + + * Fixed symbol->string "Ensure we C_alloc enough stack space in C_string_to_symbol." + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Fri, 29 Oct 2011 21:30:00 +0200 + +chicken (4.7.4-13sig) unstable; urgency=low + + * Change (fix) scheduling policy: waiting threads could starve on heavy i/o. + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Fri, 29 Oct 2011 21:30:00 +0200 + +chicken (4.7.4-12sig) unstable; urgency=low + + * Try to inline C_mutate somewhat. + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Fri, 26 Oct 2011 20:07:12 +0200 + +chicken (4.7.4-11sig) unstable; urgency=low + + * Follow git + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Fri, 26 Oct 2011 18:51:10 +0200 + +chicken (4.7.4-10sig) unstable; urgency=low + + * Play with inlining + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Fri, 20 Oct 2011 22:09:10 +0200 + +chicken (4.7.4-0.9sig) unstable; urgency=low + + * Follow git + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Fri, 14 Oct 2011 18:38:10 +0200 + +chicken (4.7.4-0.8sig) unstable; urgency=low + + * Same C_word as in 4.7.4-0.6sig; valgrind complaint fixed. + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Tue, 11 Oct 2011 20:12:10 +0200 + +chicken (4.7.4-0.7sig) unstable; urgency=low + + * Continue with double cast in C_make_character and C_uchar in C_subchar + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Tue, 11 Oct 2011 11:34:36 +0200 + +chicken (4.7.4-0.6sig) unstable; urgency=low + + * Continue with C_word C_make_character and C_uchar in C_subchar + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Mon, 10 Oct 2011 21:34:36 +0200 + +chicken (4.7.4-0.5sig) unstable; urgency=low + + * Keep a snapshot on #define C_make_character(c) ((((C_word)(c) & C_CHAR_BIT_MASK) << C_CHAR_SHIFT) | C_CHARACTER_BITS) and C_subchar internally casting to C_char. + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Mon, 10 Oct 2011 15:20:55 +0200 + +chicken (4.7.4-0.4sig) unstable; urgency=low + + * Keep a snapshot on #define C_make_character(c) ((((C_uword)(c) & C_CHAR_BIT_MASK) << C_CHAR_SHIFT) | C_CHARACTER_BITS) + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Sun, 09 Oct 2011 20:20:55 +0200 + +chicken (4.7.4-0.3sig) unstable; urgency=low + + * Fiddle with the Chicken char representation in that one. + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Sun, 09 Oct 2011 14:04:00 +0200 + +chicken (4.7.4-0.2sig) unstable; urgency=low + + * Experimental: follow git again while trying to change signal handling. + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Fri, 20 Sep 2011 22:30:00 +0200 + +chicken (4.7.4-0.1sig) unstable; urgency=low + + * Experimental: follow git while trying to change signal handling. + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Mon, 24 Sep 2011 21:34:00 +0200 + +chicken (4.7.3-0.2sig) unstable; urgency=low + + * Experimental: try to change signal handling. + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Mon, 02 Sep 2011 13:33:00 +0200 + +chicken (4.7.3-0.1) unstable; urgency=low + + * New upstream version + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Mon, 19 Aug 2011 21:21:00 +0200 + +chicken (4.7.1-0.1) unstable; urgency=low + + * New upstream version + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Mon, 23 Jun 2011 20:13:00 +0200 + +chicken (4.6.5-0.1) unstable; urgency=low + + * New upstream version + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Mon, 21 Mar 2011 15:26:00 +0200 + +chicken (4.6.3-0.1) unstable; urgency=low + + * New upstream version + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Thu, 17 Nov 2010 16:54:00 +0200 + +chicken (4.6.1-0.2) unstable; urgency=low + + * New upstream version + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Thu, 23 Sep 2010 18:53:00 +0200 + +chicken (4.5.6-0.2) unstable; urgency=low + + * New upstream version + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Thu, 24 Jul 2010 13:41:00 +0200 + +chicken (4.5.6-0.1) unstable; urgency=low + + * New upstream version + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Thu, 11 Jul 2010 16:39:00 +0200 + +chicken (4.5.2-0.1) unstable; urgency=low + + * New upstream version + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Thu, 11 Jun 2010 14:17:00 +0200 + +chicken (4.3.7-0.1) unstable; urgency=low + + * New upstream version + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Thu, 10 Mar 2009 21:24:00 +0200 + +chicken (4.3.5-0.1) unstable; urgency=low + + * New version + + -- Joerg F. Wittenberger <joerg.wittenber...@softeyes.net> Thu, 13 Feb 2009 14:08:00 +0200 + +chicken (3.2.0-0.2) unstable; urgency=low + + * Added directory information to texi documentation file. + + -- Ivan Raikov <rai...@oist.jp> Thu, 01 May 2008 10:06:00 +0900 + +chicken (3.2.0-0.1) unstable; urgency=low + + * New upstream version. + + -- Ivan Raikov <rai...@oist.jp> Wed, 30 Apr 2008 13:43:22 +0900 + +chicken (3.1.0-0.3) unstable; urgency=low + + * Chicken shared library moved to libchicken0 package. + + -- Ivan Raikov <rai...@oist.jp> Sun, 20 Apr 2008 16:02:55 +0900 + +chicken (3.1.0-0.2) unstable; urgency=low + + * rules changed to link against host PCRE library. + + -- Ivan Raikov <rai...@oist.jp> Sun, 20 Apr 2008 14:18:24 +0900 + +chicken (3.1.0-0.1) unstable; urgency=low + + * New upstream version. + + -- Ivan Raikov <rai...@oist.jp> Mon, 24 Mar 2008 14:29:38 +0900 + +chicken (3.0.0-0.1) unstable; urgency=low + + * New upstream version. + + -- Ivan Raikov <rai...@oist.jp> Fri, 01 Feb 2008 14:26:42 +0900 + +chicken (2.732-0.1) unstable; urgency=low + + * New upstream version. + + -- Ivan Raikov <rai...@oist.jp> Sat, 01 Dec 2007 14:30:55 +0900 + +chicken (2.703-0.1) unstable; urgency=low + + * Minor updates from upstream. + * Changed Debian package version to avoid conflicts with official Debian package. + + -- Ivan Raikov <rai...@oist.jp> Tue, 04 Sep 2007 21:22:01 +0900 + +chicken (2.7-1) unstable; urgency=low + + * New upstream version. + + -- Ivan Raikov <rai...@oist.jp> Mon, 03 Sep 2007 12:02:18 +0900 + +chicken (2.5-1) unstable; urgency=low + + * New upstream version; closes: #388632. + * Installing eggs into /var/lib/chicken, not /usr/lib/chicken. + closes: #388644. + + -- Davide Puricelli (evo) <e...@debian.org> Sun, 7 Jan 2007 17:13:09 +0100 + +chicken (2.3-1) unstable; urgency=medium + + * New upstream version. + * Fixed nursery size test to let chicken build on ia64 and alpha, too; + closes: #356996. + + -- Davide Puricelli (evo) <e...@debian.org> Sun, 23 Apr 2006 12:28:15 +0200 + +chicken (2.2-1) unstable; urgency=high + + * New upstream version; closes: #282956. + * Repackaged from scratch: + - removed chicken and chicken-dev packages. + - three new packages, see README.Debian for details. + closes: #270827, #339028. + * Added /usr/lib/chicken directory to support external eggs; + closes: #337392, #277866. + * Added support for ppc64 architecture, closes: #322444. + * libchicken-dev now depends on libpcre3-dev, closes: #276981. + * Fixed a wrong path into chicken manpage, closes: #328193. + + -- Davide Puricelli (evo) <e...@debian.org> Tue, 14 Feb 2006 21:56:39 +0100 + +chicken (1.63-2) unstable; urgency=high + + * Fixed issues with doc-base; closes: #267152, #267148, #267218. + + -- Davide Puricelli (evo) <e...@debian.org> Sat, 21 Aug 2004 11:12:18 +0200 + +chicken (1.63-1) unstable; urgency=high + + * New upstream version; closes: #247517, #227115. + * Acknowledge NMU, thanks Tollef; closes: #260392, #249340. + * Enhanced description; closes: #209441, #251210. + * Executed libtoolize before build process; closes: #263089. + * Removed useless manpages; closes: #259452. + * Added chicken-setup script; closes: #248558. + + -- Davide Puricelli (evo) <e...@debian.org> Fri, 20 Aug 2004 18:46:00 +0200 + +chicken (1.22-1.1) unstable; urgency=low + + * NMU + * Add amd64 support (closes: #249340) + + -- Tollef Fog Heen <tfh...@debian.org> Tue, 20 Jul 2004 11:28:05 +0200 + +chicken (1.22-1) unstable; urgency=low + + * New upstream version. + + -- Davide Puricelli (evo) <e...@debian.org> Mon, 19 Jan 2004 18:41:54 +0100 + +chicken (1.17-2) unstable; urgency=medium + + * Applied patch suggested by Matthias Klose to fix build failures + on m68k, mips and mipsel, closes: #208932. + + -- Davide Puricelli (evo) <e...@debian.org> Sat, 6 Sep 2003 14:19:00 +0200 + +chicken (1.17-1) unstable; urgency=low + + * New upstream version, closes: #199560. + + -- Davide Puricelli (evo) <e...@debian.org> Sat, 6 Sep 2003 11:51:39 +0200 + +chicken (1.10-2) unstable; urgency=high + + * Running libtoolize before build process should fix all those + horrible build failures on archs != i386. + + -- Davide Puricelli (evo) <e...@debian.org> Sun, 8 Jun 2003 12:17:29 +0200 + +chicken (1.10-1) unstable; urgency=low + + * New upstream version. + * debian/control: fixed a spelling error, closes: #195119. + * chicken.doc-base: it's "manual.html", not "index.html", thanks Laurent. + closes: #189742. + + -- Davide Puricelli (evo) <e...@debian.org> Sat, 7 Jun 2003 12:08:59 +0200 + +chicken (1.0-1) unstable; urgency=low + + * New upstream version. + * Documentation is now installed with install-docs; closes: #181542. + + -- Davide Puricelli (evo) <e...@debian.org> Sat, 12 Apr 2003 15:42:22 +0200 + +chicken (0.1082-1) unstable; urgency=low + + * New upstream version. + * Removing hacks for hppa and arm, now gcc 3.2 is the default compiler + on all the archs, so we shouldn't need them anymore. + + -- Davide Puricelli (evo) <e...@debian.org> Fri, 14 Feb 2003 14:47:38 +0100 + +chicken (0.1072-2) unstable; urgency=low + + * Removing useless hack for mips and mipsel; we need gcc-3.2, so we + just have to wait. + * Moving /usr/include/* to chicken package; closes: #157841. + + -- Davide Puricelli (evo) <e...@debian.org> Thu, 12 Sep 2002 13:11:22 +0200 + +chicken (0.1072-1) unstable; urgency=low + + * New upstream version. + * Added highlevel-macros.scm, moremacros.scm and chicken.init; + closes: #156700. + * hppa, mips and mipsel need -ffunction-sections to build; + closes: #150901. + + -- Davide Puricelli (evo) <e...@debian.org> Sat, 17 Aug 2002 12:16:36 +0200 + +chicken (0.1071-1) unstable; urgency=low + + * New upstream version. + * Now it should compile fine on Alpha; closes: #144373. + + -- Davide Puricelli (evo) <e...@debian.org> Mon, 29 Jul 2002 23:07:36 +0200 + +chicken (0.990-2) unstable; urgency=low + + * New maintainer. + * Config.guess and config.sub are updated before building the package. + closes: #143490. + + -- Davide Puricelli (evo) <e...@debian.org> Wed, 19 Jun 2002 20:10:09 +0200 + +chicken (0.990-1) unstable; urgency=low + + * Initial release. + + -- zhaoway <z...@debian.org> Mon, 21 Jan 2002 20:40:17 +0800 + diff --git a/debian/chicken-bin.dirs b/debian/chicken-bin.dirs new file mode 100644 index 0000000..db63588 --- /dev/null +++ b/debian/chicken-bin.dirs @@ -0,0 +1,2 @@ +var/lib/chicken +usr/share/chicken diff --git a/debian/chicken-bin.docs b/debian/chicken-bin.docs new file mode 100644 index 0000000..f6b59ad --- /dev/null +++ b/debian/chicken-bin.docs @@ -0,0 +1,3 @@ +README +NEWS + diff --git a/debian/chicken-bin.install b/debian/chicken-bin.install new file mode 100644 index 0000000..877118c --- /dev/null +++ b/debian/chicken-bin.install @@ -0,0 +1,2 @@ +usr/bin +usr/share/chicken/*.defaults diff --git a/debian/chicken-bin.manpages b/debian/chicken-bin.manpages new file mode 100644 index 0000000..82996d9 --- /dev/null +++ b/debian/chicken-bin.manpages @@ -0,0 +1,5 @@ +csc.1 +csi.1 +chicken.1 +chicken-profile.1 +chicken-bug.1 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +5 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..b2bdcc9 --- /dev/null +++ b/debian/control @@ -0,0 +1,50 @@ +Source: chicken +Homepage: http://www.call-with-current-continuation.org/ +Section: interpreters +Priority: optional +Maintainer: Davide Puricelli (evo) <e...@debian.org> +Build-Depends: debhelper (>> 4.0.0) +Standards-Version: 3.7.3 + +Package: chicken-bin +Section: interpreters +Architecture: any +Conflicts: chicken, chicken-dev +Depends: ${shlibs:Depends}, libchicken-dev (= ${binary:Version}) +Replaces: chicken, chicken-dev +Description: A practical and portable Scheme system - compiler + CHICKEN is a Scheme compiler which compiles a subset of R5RS into C. + It uses the ideas presented in Baker's paper "Cheney on the MTA", and + has a small core and is easily extendable. + . + This package contains the compiler. + + +Package: libchicken7 +Architecture: any +Section: libs +Priority: optional +Depends: ${shlibs:Depends} +Description: A practical and portable Scheme system - runtime + CHICKEN is a Scheme compiler which compiles a subset of R5RS into C. + It uses the ideas presented in Baker's paper "Cheney on the MTA", and + has a small core and is easily extendable. + . + This package contains the shared library needed to run programs using + chicken. + + +Package: libchicken-dev +Architecture: any +Section: libdevel +Priority: optional +Depends: libchicken7 (= ${binary:Version}) +Replaces: chicken-dev, libchicken6 +Description: A practical and portable Scheme system - development + CHICKEN is a Scheme compiler which compiles a subset of R5RS into C. + It uses the ideas presented in Baker's paper "Cheney on the MTA", and + has a small core and is easily extendable. + . + This package contains the header file and static library for developing + with chicken. + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..311d90e --- /dev/null +++ b/debian/copyright @@ -0,0 +1,41 @@ +This package was debianized by Jörg F. Wittenberger <joerg.wittenber...@softeyes.net> on Wed, 10 Mar +2010 21:40:17 +0200 +updating debianisation by zhaoway <z...@debian.org> on Mon, 21 Jan +2002 20:40:17 +0800 + +Davide Puricelli (evo) <e...@debian.org> is the actual maintainer. + +It was downloaded from http://www.call-with-current-continuation.org + +Upstream Author: Felix L. Winkelmann +<fe...@call-with-current-continuation.org>. + +Copyright (c) 2000-2007, Felix L. Winkelmann +Copyright (c) 2008-2015, The CHICKEN Team +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. Redistributions +in binary form must reproduce the above copyright notice, this list of +conditions and the following disclaimer in the documentation and/or +other materials provided with the distribution. Neither the name of +the author nor the names of its contributors may be used to endorse or +promote products derived from this software without specific prior +written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS +OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR +TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE +USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH +DAMAGE. diff --git a/debian/libchicken-dev.dirs b/debian/libchicken-dev.dirs new file mode 100644 index 0000000..4418816 --- /dev/null +++ b/debian/libchicken-dev.dirs @@ -0,0 +1,2 @@ +usr/lib +usr/include diff --git a/debian/libchicken-dev.install b/debian/libchicken-dev.install new file mode 100644 index 0000000..d1bffed0 --- /dev/null +++ b/debian/libchicken-dev.install @@ -0,0 +1,3 @@ +usr/include/* +usr/lib/lib*.a +usr/lib/lib*.so diff --git a/debian/libchicken7.install b/debian/libchicken7.install new file mode 100644 index 0000000..bc16161 --- /dev/null +++ b/debian/libchicken7.install @@ -0,0 +1,2 @@ +usr/lib/lib*.so.7 +usr/lib/chicken/* diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..b40fb4a --- /dev/null +++ b/debian/rules @@ -0,0 +1,91 @@ +#!/usr/bin/make -f + +BUILD_ARCH = $(shell dpkg --print-installation-architecture) + +CFLAGS= -g +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 + else + CFLAGS += -O2 -fno-strict-aliasing +endif + +MAKE:=$(MAKE) PLATFORM=linux +PREFIX=/usr +BINARYVERSION=7 + +CURDIR=`pwd` + +build: build-stamp +build-stamp: + dh_testdir + $(MAKE) -f GNUmakefile C_COMPILER=clang \ + CFLAGS="$(CFLAGS)" \ + PREFIX="$(PREFIX)" + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + $(MAKE) -f GNUmakefile clean + $(MAKE) -f GNUmakefile distclean + rm -f c_defaults.h + rm -f chicken_defaults.h + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs +# The directories here have to be prefixed by $(CURDIR)/debian/tmp +# because that is the location where the binary package files are +# placed by dpkg-buildpackage. If absolute files are specified, +# i.e. /var/lib/chicken, then those files will be installed on the +# build system, but will not end up in the package. + $(MAKE) -f GNUmakefile \ + install \ + DESTDIR="$(CURDIR)/debian/tmp" \ + CFLAGS="$(CFLAGS)" \ + PREFIX="/usr" \ + ILIBDIR="/usr/lib" \ + ISHAREDIR="/usr/share" \ + IEGGDIR="/usr/lib/chicken/$(BINARYVERSION)" \ + ICHICKENINCDIR="/usr/include" \ + IMAN1DIR="/usr/share/man/man1" \ + INFODIR="/usr/share/info" \ + HOSTNAME=debian + +binary-common: + dh_testdir + dh_testroot + dh_installdocs + dh_installman +# The asterisk in chicken.info* is necessary, because Debian makeinfo +# is very different from the standard makeinfo, and it is incredibly +# difficult to convince it to produce standalone Texinfo files. +# dh_installinfo chicken.info* + dh_install --sourcedir=debian/tmp + dh_link +ifeq "$(findstring nostrip,$(DEB_BUILD_OPTIONS))" "" + dh_strip +endif + dh_compress + dh_fixperms + dh_makeshlibs -V + dh_installdeb + dh_shlibdeps -l debian/libchicken7/usr/lib + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-indep: build install + +binary-arch: build install + $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common + +binary-%: build install + make -f debian/rules binary-common DH_OPTIONS=-p$* + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install -- 2.1.4
_______________________________________________ Chicken-hackers mailing list Chicken-hackers@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-hackers