Commit 377aa408 authored by Markus Koschany's avatar Markus Koschany

Imported Upstream version 0.0.6.2stable

parent d01be43e
------------------------------------------------------------------------------
OpenCity credits
------------------------------------------------------------------------------
Last modified:
$Id: AUTHORS 378 2008-10-30 22:52:37Z neoneurone $
Developer:
* Duong Khang NGUYEN
neoneurone @ gmail com
Graphist & brainstormer:
* Frdric RODRIGO
f.rodrigo at free fr
Quality Assurance:
* Wolfgang Bauer
Linux beta tester
* Tymon DOUGLAS
Linux / Win32 beta tester
* Bruno DLUBAK
MacOS X beta tester and packager
Contributors:
* Stephen M. WEBB
Configure script patch
* Victor STINNER
Basic MAS library
* Bartosz DEBSKI
OpenCity site's banner
* Nicolas PASCOLI
Various 3D models
* "pucelo"
Industrial model
* Jacopo SIRIANNI
Italian documentation
* Cristian Deluxe
Spanish documentation
This diff is collapsed.
===============================================================================
O P E N C I T Y C O P Y R I G H T S
===============================================================================
Description:
OpenCity is another 3D city simulation game.
Home site:
http://www.opencity.info
Email contact:
neoneurone _at_ gmail _dot_ com
Authors:
* Duong Khang NGUYEN <neoneurone _at_ gmail _dot_ com>
* Frédéric RODRIGO <f _dot_ rodrigo _at_ free _dot_ fr>
Minor parts are from Victor Stinner, Hongli Lai, Jeff Molofee, Sam Lantinga,
Brodie Thiesfield, Angelo "Encelo" Theodorou, Yves Berquin, Lee Thomason
and Tyge Løvset.
Graphist:
* Frédéric RODRIGO <f _dot_ rodrigo _at_ free _dot_ fr>
Contributors:
* Bartosz DEBSKI
* Stephen M. WEBB
* Victor STINNER
* Nicolas PASCOLI
* "pucelo"
* Jacopo SIRIANNI
OpenCity copyrights:
Copyright (C) 2003-2008 Duong Khang NGUYEN
Copyright (C) 2003-2008 Frédéric RODRIGO
Copyright (C) 2006-2007 Brodie THIESFIELD
Copyright (C) 2006 Angelo "Encelo" THEODOROU
Copyright (C) 2002-2004 Yves BERQUIN
Copyright (C) 1999 Jeff MOLOFEE
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
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.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Please read the file COPYING for the GNU General Public License.
BinReloc copyright:
The files under "src/binreloc/" directory have been put in the public
domain by Hongli Lai <h _dot_ lai _at_ chello _dot_ nl>: This source
code is public domain. You can relicense this code under whatever
license you want. For more information, see http://autopackage.org/.
SimpleOpt copyright:
The file "src/SimpleOpt.h" is licensed under the terms of the "MIT Licence"
and copyrighted by Brodie Thiesfield. Please refer to the comments included
in the file for more information.
TinyXML copyrights:
The files under "src/tinyxml/" are licensed under the terms of a GNU GPL
compatible license and copyrighted by Yves Berquin, Lee Thomason
and Tyge Løvset. Please refer to the comments included in those files
for more information.
TinyXPath copyright:
Copyright (c) 2002-2004 Yves Berquin <yvesb _at_ users _dot_ sourceforge _dot_ net>
The files under "src/tinyxpath/" are licensed under the terms of a GNU GPL
compatible license and copyrighted by Yves Berquin. Please refer to the
comments included in those files for more information.
Last modified:
$Id: COPYRIGHT 375 2008-10-28 14:47:15Z neoneurone $
===============================================================================
E N D O F F I L E
===============================================================================
\ No newline at end of file
This diff is collapsed.
------------------------------------------------------------------------------
INSTALL/COMPILE instructions for OpenCity
------------------------------------------------------------------------------
Last modified:
$Id: INSTALL 375 2008-10-28 14:47:15Z neoneurone $
Audience:
# GNU/Linux end-users:
Read this if you are trying to compile OpenCity from sources.
# Windows end-users:
Do not read this file !
# Packagers:
This file contains installation and compilation instructions. It also
discusses about the portability of OpenCity. You are invited to
use autopackage binary for GNU/Linux and InnoSetup for
Windows systems.
------------------------------------------------------------------------------
INSTALL from sources on GNU/Linux
------------------------------------------------------------------------------
First, if you've downloaded a opencity-x.y.z.tar.bz2 file you need to extract
the sources by typing the following command at the prompt of your console:
tar xjf opencity-x.y.tar.bz2
You do not need to perform this step if you downloaded the sources from SVN.
The following commands will compile and install OpenCity on your system.
You need to be "root" when you call "make install".
mkdir obj
cd obj
../configure --enable-debug
make
make install
Refer to the configure help file for more information about the configure's
options. In case you don't have a configure script, the following command
will create one:
./autogen.sh
When the installation procedure have finished, you can launch OpenCity
from command-line with the instruction below:
opencity
That's all, folks !
------------------------------------------------------------------------------
INSTALL from a .package file on GNU/Linux
------------------------------------------------------------------------------
The installer under GNU/Linux is named as opencity-x.y.z.package. Just make
it executable then run it.
------------------------------------------------------------------------------
PACKAGE on GNU/Linux
------------------------------------------------------------------------------
Please use the autopackage system. The specification file is inside the
"autopackage" directory. For more information, see:
http://www.autopackage.org
------------------------------------------------------------------------------
PACKAGE on Windows
------------------------------------------------------------------------------
Please use the InnoSetup system. There's already the InnoSetup configuration file
called "OpenCity.iss" at the source root. For more information, see:
http://www.innosetup.com
Gook luck !
Duong Khang (neoneurone) NGUYEN.
\ No newline at end of file
#==============================================================================
# OpenCity's main automake file
#==============================================================================
SUBDIRS = \
config docs map sound src viewer
#==============================================================================
# EXTRA_DIST is used to package the files we need
# See the install-data-local target for more information
#==============================================================================
EXTRA_DIST = \
graphism \
opencity.desktop opencity.png \
autopackage/opencity.apspec
#==============================================================================
# Icon and desktop file installation
#==============================================================================
desktopdir = $(datadir)/applications
desktop_DATA = opencity.desktop
pixmapdir = $(datadir)/pixmaps
pixmap_DATA = opencity.png
#==============================================================================
# Install all the graphism directory
#==============================================================================
install-data-local:
test -z "$(pkgdatadir)" || $(mkdir_p) "$(DESTDIR)$(pkgdatadir)"
for data in $(EXTRA_DIST); do \
if [ -d "$(srcdir)/$$data" ]; then \
cp -r "$(srcdir)/$$data" "$(DESTDIR)$(pkgdatadir)"/; \
fi; \
done;
@echo -e "\n\r";
@echo "========================================================================";
@echo " OpenCity has been installed successfully in '$(DESTDIR)$(prefix)'";
@echo " Have fun !";
@echo "========================================================================";
@echo -e "\n\r";
#==============================================================================
# Uninstall = Delete everything
#==============================================================================
uninstall-local:
$(RM) -f $(DESTDIR)$(bindir)/opencity
$(RM) -rf $(DESTDIR)$(pkgdatadir)
@echo -e "\n\r";
@echo "========================================================================";
@echo " OpenCity has been uninstalled successfully ";
@echo " Thank you for trying. ";
@echo "========================================================================";
@echo -e "\n\r";
#==============================================================================
# Remove SVN directories from the distribution file
#==============================================================================
dist-hook:
for extra in $(EXTRA_DIST); do \
$(RM) -rf `find $(distdir)/$$extra -name "\.svn" -type d`; \
done;
This diff is collapsed.
Please visit http://www.opencity.info
This diff is collapsed.
This diff is collapsed.
# Configure paths for SDL
# Modified for OpenCity by neoneurone on 9th november 2007
# Sam Lantinga 9/21/99
# stolen from Manish Singh
# stolen back from Frank Belew
# stolen from Manish Singh
# Shamelessly stolen from Owen Taylor
dnl AM_PATH_SDL([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
dnl Test for SDL, and define SDL_CFLAGS and SDL_LIBS
dnl
AC_DEFUN([AM_PATH_SDL],
[
dnl
dnl Get the cflags and libraries from the sdl-config script
dnl
AC_ARG_WITH(sdl-prefix,[ --with-sdl-prefix=PFX Prefix where SDL is installed (optional)],
sdl_prefix="$withval", sdl_prefix="")
AC_ARG_WITH(sdl-exec-prefix,[ --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)],
sdl_exec_prefix="$withval", sdl_exec_prefix="")
AC_ARG_ENABLE(sdltest, [ --disable-sdltest Do not try to compile and run a test SDL program],
, enable_sdltest=yes)
if test x$sdl_exec_prefix != x ; then
sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
if test x${SDL_CONFIG+set} != xset ; then
SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
fi
fi
if test x$sdl_prefix != x ; then
sdl_args="$sdl_args --prefix=$sdl_prefix"
if test x${SDL_CONFIG+set} != xset ; then
SDL_CONFIG=$sdl_prefix/bin/sdl-config
fi
fi
AC_REQUIRE([AC_CANONICAL_TARGET])
PATH="$prefix/bin:$prefix/usr/bin:$PATH"
AC_PATH_PROG(SDL_CONFIG, sdl-config, no, [$PATH])
min_sdl_version=ifelse([$1], ,0.11.0,$1)
AC_MSG_CHECKING(for SDL - version >= $min_sdl_version)
no_sdl=""
if test "$SDL_CONFIG" = "no" ; then
no_sdl=yes
else
SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
if test "x$enable_sdltest" = "xyes" ; then
ac_save_CFLAGS="$CFLAGS"
ac_save_LIBS="$LIBS"
CFLAGS="$CFLAGS $SDL_CFLAGS"
LIBS="$LIBS $SDL_LIBS"
dnl
dnl Now check if the installed SDL is sufficiently new. (Also sanity
dnl checks the results of sdl-config to some extent
dnl
rm -f conf.sdltest
AC_TRY_RUN([
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "SDL.h"
char*
my_strdup (char *str)
{
char *new_str;
if (str)
{
new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
strcpy (new_str, str);
}
else
new_str = NULL;
return new_str;
}
int main (int argc, char *argv[])
{
int major, minor, micro;
char *tmp_version;
/* This hangs on some systems (?)
system ("touch conf.sdltest");
*/
{ FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
/* HP/UX 9 (%@#!) writes to sscanf strings */
tmp_version = my_strdup("$min_sdl_version");
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
printf("%s, bad version string\n", "$min_sdl_version");
exit(1);
}
if (($sdl_major_version > major) ||
(($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
(($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
{
return 0;
}
else
{
printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
printf("*** best to upgrade to the required version.\n");
printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
printf("*** to point to the correct copy of sdl-config, and remove the file\n");
printf("*** config.cache before re-running configure\n");
return 1;
}
}
],, no_sdl=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
fi
fi
if test "x$no_sdl" = x ; then
AC_MSG_RESULT(yes)
ifelse([$2], , :, [$2])
else
AC_MSG_RESULT(no)
if test "$SDL_CONFIG" = "no" ; then