--- achilles-2.orig/quicksort.cc +++ achilles-2/quicksort.cc @@ -18,7 +18,7 @@ */ using namespace std; -#include +#include #include #include"quicksort.h" --- achilles-2.orig/main.cc +++ achilles-2/main.cc @@ -20,7 +20,7 @@ using namespace std; -#include +#include #include #include"universe.h" #include --- achilles-2.orig/orglist.cc +++ achilles-2/orglist.cc @@ -18,7 +18,7 @@ */ using namespace std; -#include +#include #include"orglist.h" #include"id.h" #include"org.h" --- achilles-2.orig/gene.cc +++ achilles-2/gene.cc @@ -24,6 +24,7 @@ #include"braininfo.h" #include"defines.h" #include +#include GeneClass::GeneClass() { // randomly generate one int i; --- achilles-2.orig/opengl.cc +++ achilles-2/opengl.cc @@ -23,7 +23,7 @@ #include //#include #include -#include +#include #include"org.h" #include"vector.h" #include"gene.h" --- achilles-2.orig/org.cc +++ achilles-2/org.cc @@ -18,7 +18,7 @@ */ using namespace std; -#include +#include #include"org.h" #include"id.h" #include"energy.h" --- achilles-2.orig/debian/menu +++ achilles-2/debian/menu @@ -0,0 +1,5 @@ +?package(achilles):\ + needs="x11"\ + section="Games/Simulation"\ + title="Achilles"\ + command="achilles" --- achilles-2.orig/debian/copyright +++ achilles-2/debian/copyright @@ -0,0 +1,32 @@ +This package was debianized by Matthew Danish on +Thu, 31 May 2001 20:11:35 -0400. + +The current Debian maintainer is Manfred Lichtenstern + +It was downloaded from http://achilles.sourceforge.net/achilles-1.tar.gz + +Upstream Author: Matthew Danish + +Copyright: + +Copyright 2000-2004, Matthew Danish + +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. + +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. + +You should have received a copy of the GNU General Public License with +the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL; +if not, write to the Free Software Foundation, Inc., 51 Franklin St, +Fifth Floor, Boston, MA 02110-1301, USA. + +On Debian systems, the complete text of the GNU General Public +License, version 2, can be found in /usr/share/common-licenses/GPL-2. + +The Debian packaging is (C) 2007, Manfred Lichtenstern +and is licensed under the GPL, see above. --- achilles-2.orig/debian/compat +++ achilles-2/debian/compat @@ -0,0 +1 @@ +5 --- achilles-2.orig/debian/changelog +++ achilles-2/debian/changelog @@ -0,0 +1,160 @@ +achilles (2-8) unstable; urgency=low + + * New Maintainer. (Closes: #361167) + * Added patch from Martin Michlmayr to add missing include + required to build with GCC 4.3 (Closes: #417066). + * debian/copyright: Update. + * debian/watch: Remove. + + -- Manfred Lichtenstern Tue, 3 Apr 2007 18:56:00 +0200 + +achilles (2-7) unstable; urgency=low + + * QA upload. + * Correct programing error in EnergyClass.cc. (Closes: #397424) + + -- Mohammed Adnène Trojette Fri, 12 Jan 2007 02:59:59 +0100 + +achilles (2-6) unstable; urgency=low + + * QA Upload + * Add .desktop file and icon from ubuntu patch (Closes: #368957) + * Conforms with new Standards Version. + + -- Michael Ablassmeier Mon, 29 May 2006 10:07:55 +0200 + +achilles (2-5) unstable; urgency=low + + * QA upload. + * Package is orphaned (#361167); set maintainer to Debian QA Group. + * Acknowledge NMUs. Closes: #258481, #336370. + * Build depend on libpng12-dev instead of libpng3-dev. + * Remove redundant build dependencies on xlibmesa-gl, xlibmesa-gl-dev, + xlibs, zlib1g-dev. + * Automatically update config.sub and config.guess from autotools-dev. + * Switch to debhelper 5. + * debian/changelog: Remove obsolete Emacs local variables. + * debian/rules: Add support for DEB_BUILD_OPTIONS=noopt. + * debian/watch: Add. + * Conforms to Standards version 3.6.2. + + -- Matej Vela Tue, 25 Apr 2006 13:15:24 +0200 + +achilles (2-4.2) unstable; urgency=low + + * Non-maintainer upload. + * Build-Depend on xlibmesa-gl and -dev (Closes: #336370). + + -- Christoph Berg Sat, 29 Oct 2005 22:34:48 +0200 + +achilles (2-4.1) unstable; urgency=low + + * Non-maintainer upload. + * Apply patch by Andreas Jochens to fix FTBFS with GCC 3.4 and + 4.0. Array bounds are not allowed after a type-id in + parentheses (Closes: #258481). + + -- Christoph Berg Sat, 29 Oct 2005 12:33:40 +0200 + +achilles (2-4) unstable; urgency=low + + * Change maintainer address. + * Recompile for new g++ (Closes: #221382) + * Tracking the wild and crazy ``progress'' of C++: iostream.h -> iostream. + * Missed a ``using namespace std;'' from a file during the last C++ ``fix'' + * Updated Standards-Version. + * Build-Depend on debhelper (>> 2.0.0). + * Fixed typo in menu file. + + -- Matthew Danish Thu, 4 Mar 2004 11:00:45 -0500 + +achilles (2-3) unstable; urgency=low + + * Patch to accomodate g++ 3.2 (curse C++), thanks Jeroen Vermeulen, + (Closes: #174918) + * Bumped libpng2-dev to libpng3-dev + * Added menu entry, (Closes: #172853) + + -- Matthew Danish Thu, 23 Jan 2003 16:02:05 -0500 + +achilles (2-2) unstable; urgency=low + + * Recompiled against the new Debian libsdl packages. (Closes: #117522) + + -- Matthew Danish Fri, 9 Nov 2001 18:32:39 -0500 + +achilles (2-1) unstable; urgency=low + + * New upstream release consisting of the following changes: + * Re-arranged the AC_CHECK_LIB statements in configure.in so that it + may possibly work this time on arm (please!) as well as elsewhere. + (Closes: #100393) + * I am tired of the stupidities of C++, but I wrote this in C++ + so I have to pay for it: Added 'using namespace std;' to + the beginning of every file that needed it, to allow building + with g++ 3.0. (Closes: #107317) + Someday, I'll rewrite this in Common LISP. + * A little preventative medicine: updated config.{sub,guess} + * Updated Standards-Versions to 3.5.6.0 + + -- Matthew Danish Fri, 3 Aug 2001 16:03:58 -0400 + +achilles (1-1) unstable; urgency=low + + * New upstream release. + * Fixed Alpha build bug (Closes: #99398) + + -- Matthew Danish Thu, 31 May 2001 21:45:47 -0400 + +achilles (0.0.5-8) unstable; urgency=low + + * Updated Standards-Version + * Now Build-Depends on libsdl1.2 instead of 1.1 + + -- Matthew Danish Fri, 4 May 2001 14:09:44 -0500 + +achilles (0.0.5-7) unstable; urgency=low + + * Fixed Build-Depends, changed to xlibmesa3 | libgl1, and added xlibmesa-dev | libgl-dev (Closes: #95308) + + -- Matthew Danish Thu, 26 Apr 2001 12:31:30 -0400 + +achilles (0.0.5-6) unstable; urgency=low + + * Changed section from 'misc' to 'science' + + -- Matthew Danish Tue, 24 Apr 2001 16:06:12 -0400 + +achilles (0.0.5-5) unstable; urgency=low + + * Initial upload of package (Closes: #81693) + * Updated Standards Version + + -- Matthew Danish Tue, 24 Apr 2001 16:05:59 -0400 + +achilles (0.0.5-4) unstable; urgency=low + + * Fixed Build-Depends, removed libc6-dev, libstdc++2.10-dev + * Eliminated dh_suidregister from rules + * Updated Standards Version + + -- Matthew Danish Sat, 24 Feb 2001 19:18:10 -0500 + +achilles (0.0.5-3) unstable; urgency=low + + * Added proper Build-Depends + * Fixed small errors in man file + + -- Matthew Danish Thu, 22 Feb 2001 00:07:46 -0500 + +achilles (0.0.5-2) unstable; urgency=low + + * Bugfixes in package + + -- Matthew Danish Fri, 16 Feb 2001 18:22:35 -0500 + +achilles (0.0.5-1) unstable; urgency=low + + * Initial Release. + + -- Matthew Danish Mon, 8 Jan 2001 22:27:14 -0500 --- achilles-2.orig/debian/rules +++ achilles-2/debian/rules @@ -0,0 +1,68 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +export CXXFLAGS = -Wall -g +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CXXFLAGS += -O0 +else + CXXFLAGS += -O2 +endif + +build: build-stamp +build-stamp: + dh_testdir + + ln -sf /usr/share/misc/config.sub /usr/share/misc/config.guess . + ./configure --prefix=/usr + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + [ ! -f Makefile ] || $(MAKE) distclean + rm -f config.sub config.guess + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) install DESTDIR=$(CURDIR)/debian/achilles + +# Build architecture-independent files here. +binary-indep: build install + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs README NEWS + dh_installmenu + dh_installman debian/achilles.1 + dh_install debian/achilles.desktop usr/share/applications/ + dh_install debian/achilles.svg usr/share/pixmaps/ + dh_desktop + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- achilles-2.orig/debian/achilles.1 +++ achilles-2/debian/achilles.1 @@ -0,0 +1,55 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH ACHILLES 1 "May 31, 2001" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +achilles \- OpenGL simulation of artificial life and evolution +.SH SYNOPSIS +.B achilles [-x +.I +.B ] [-z +.I +.B ] [-f +.I +.B ] [ +.I +.B ] [-v] [-h] +.SH DESCRIPTION +This manual page documents briefly the +.B achilles +commands. It is an artificial evolution simulation based on Hebbian +neural networks and ideas set forth in Larry Yaeger's PolyWorld. +Run the +.B achilles -h +command to find out the default values for the options. +.SH OPTIONS +.IP "-x " +How big the world should be, along the x axis. +.IP "-z " +How big the world should be, along the z axis. +.IP "-f " +How many food items there should be at the start. +.IP "" +How many creatures the world should start off with. +.IP "-v" +Output the version number. +.IP "-h" +Output a help text. +.SH AUTHOR +Matthew Danish +.SH "SEE ALSO" +/usr/share/doc/achilles/README + --- achilles-2.orig/debian/achilles.svg +++ achilles-2/debian/achilles.svg @@ -0,0 +1,140 @@ + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + --- achilles-2.orig/debian/achilles.desktop +++ achilles-2/debian/achilles.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Version=1.0 +Encoding=UTF-8 +Name=Achilles Life Simulator +GenericName=Life Simulator +Comment=Watch a simulation of artificial life and evolution +Type=Application +Exec=achilles +Icon=achilles +Categories=Application;Education;Science;Biology;Simulation; --- achilles-2.orig/debian/control +++ achilles-2/debian/control @@ -0,0 +1,14 @@ +Source: achilles +Section: science +Priority: optional +Maintainer: Manfred Lichtenstern +Build-Depends: debhelper (>= 5), autotools-dev, libsdl1.2-dev, libpng12-dev +Standards-Version: 3.7.2 + +Package: achilles +Architecture: any +Depends: ${shlibs:Depends} +Description: An artificial life and evolution simulator + Achilles is an artificial life and evolution simulator that uses Hebbian + neural networks and OpenGL/SDL to simulate life in a simplified environment. + It is based on Larry Yaeger's PolyWorld. --- achilles-2.orig/energy.cc +++ achilles-2/energy.cc @@ -22,7 +22,7 @@ #include"vector.h" #include"defines.h" #include -#include +#include EnergyClass::EnergyClass() : food(0), @@ -89,8 +89,8 @@ bool EnergyClass::EatFood(double f) { food+=f; - if(f>fcap) f=fcap; - if(f<0) f=0; + if(food>fcap) food=fcap; + if(food<0) food=0; return true; } --- achilles-2.orig/hebbian.cc +++ achilles-2/hebbian.cc @@ -21,7 +21,7 @@ // Hebbian neural network simulator // This is a stand-alone class btw :) using namespace std; -#include +#include #include #include #include @@ -118,20 +118,20 @@ } return sum; } -#define E 2.7182818285 // lc is the Hebbian learning constant // alpha is a logistic coefficient. seems to work best when <0 int NeuralNet::Learn(float lc,float alpha) { int i,j; + const double E = 2.7182818285; for(i=0;i +using namespace std; +#include #include"defines.h" bool ShowLicense() { --- achilles-2.orig/universe.cc +++ achilles-2/universe.cc @@ -18,7 +18,7 @@ */ using namespace std; -#include +#include #include #include #include"universe.h"