mirror of https://github.com/FreeCol/freecol.git
Remove outdated packaging examples
This commit is contained in:
parent
a350f072ef
commit
cf6e1be8a5
|
@ -1,7 +1,7 @@
|
|||
#! /bin/sh
|
||||
# Generic freecol start script.
|
||||
# Please customize this for your distribution.
|
||||
# Look at the ../debian script for other ideas, they are clueful.
|
||||
# Look at the debian scripts for other ideas, they are clueful.
|
||||
#
|
||||
# Things this script needs to do:
|
||||
# - Find the freecol data directory.
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
freecol for Debian
|
||||
------------------
|
||||
|
||||
Java version 1.4 or better is required in order to run FreeCol.
|
||||
|
||||
A manual page and an executable have been added to the original sources to
|
||||
conform to the Debian Policy. The executable script looks for a JVM in the
|
||||
following directories (if JAVA_HOME is not set):
|
||||
- /usr/lib/j2se/1.4
|
||||
- /usr/lib/j2sdk1.4
|
||||
- /usr/local/lib/jdk
|
||||
- /usr/local/lib/j2sdk1.4
|
||||
- /usr/local/lib/j2se/1.4
|
||||
|
||||
If your JVM isn't found, you can set the JAVA_HOME variable with the command:
|
||||
$ export JAVA_HOME="path_to_your_JVM"
|
||||
Note that this command only works if you use BASH.
|
||||
|
||||
To run the game, type freecol in a term. The Jar file which contains the game
|
||||
is in /usr/share/java.
|
||||
|
||||
-- Jean Lepropre <jean_lepropre@users.sourceforge.net>, Wed, 28 Jul 2004 16:39:25 +0200
|
|
@ -1,6 +0,0 @@
|
|||
freecol (0.3.0-1) unstable; urgency=low
|
||||
|
||||
* Initial Release.
|
||||
|
||||
-- Jean Lepropre <jean_lepropre@users.sourceforge.net> Tue, 27 Jul 2004 15:52:29 +0200
|
||||
|
|
@ -1 +0,0 @@
|
|||
4
|
|
@ -1,18 +0,0 @@
|
|||
Source: freecol
|
||||
Section: contrib/games
|
||||
Priority: optional
|
||||
Maintainer: Jean Lepropre <jean_lepropre@users.sourceforge.net>
|
||||
Build-Depends-Indep: debhelper (>= 4.1.46), cdbs (>= 0.4.21-0.1), j2sdk1.4 | java2-compiler, ant (>= 1.6)
|
||||
Standards-Version: 3.6.1.1
|
||||
|
||||
Package: freecol
|
||||
Architecture: all
|
||||
Depends: j2re1.4 | java-virtual-machine, j2re1.4 | java2-runtime
|
||||
Description: Colonization turn based strategy game
|
||||
FreeCol is a free clone of the turn based strategy game Colonization.
|
||||
In this game, each player becomes leader of an European nation, fighting
|
||||
to obtain the independence of the mother country.
|
||||
.
|
||||
A multiplayer mode has been added to the original game.
|
||||
.
|
||||
Homepage: http://freecol.sourceforge.net/
|
|
@ -1,14 +0,0 @@
|
|||
This package was debianized by Jean Lepropre <jean_lepropre@users.sourceforge.net> on
|
||||
Tue, 27 Jul 2004 15:52:29 +0200.
|
||||
|
||||
It was downloaded from http://freecol.sourceforge.net/
|
||||
|
||||
Upstream Author: The FreeCol Team.
|
||||
See http://sourceforge.net/project/memberlist.php?group_id=43225 for more details.
|
||||
|
||||
This software is Copyright (C) 2002-2015 by The FreeCol Team.
|
||||
|
||||
You are free to distribute this software under the terms of
|
||||
the GNU General Public License.
|
||||
On Debian systems, the complete text of the GNU General Public
|
||||
License can be found in the file `/usr/share/common-licenses/GPL'.
|
|
@ -1,4 +0,0 @@
|
|||
usr/bin
|
||||
usr/share/man/man6
|
||||
usr/share/java
|
||||
usr/share/freecol
|
|
@ -1,3 +0,0 @@
|
|||
javadoc/
|
||||
doc/FreeCol/
|
||||
packaging/common/README
|
|
@ -1,66 +0,0 @@
|
|||
.\" 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 FREECOL 6 "July 28, 2004" GNU "FreeCol's Manpage"
|
||||
.\" 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 <n> insert n+1 empty lines
|
||||
.\" for manpage-specific macros, see man(7)
|
||||
.SH NAME
|
||||
freecol \- A free clone of Colonization
|
||||
.SH SYNOPSIS
|
||||
.B freecol
|
||||
.RI [OPTIONS]
|
||||
.SH DESCRIPTION
|
||||
This manual page documents briefly the
|
||||
.B freecol
|
||||
command.
|
||||
This manual page was written for the Debian distribution
|
||||
because the original program does not have a manual page.
|
||||
.PP
|
||||
.\" TeX users may be more comfortable with the \fB<whatever>\fP and
|
||||
.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
|
||||
.\" respectively.
|
||||
\fBfreecol\fP is a free clone of the famous game Colonization. It's a
|
||||
turn based strategy game in which each player becomes leader of an
|
||||
European nation, fighting to obtain the independence of the mother country.
|
||||
.PP
|
||||
A multiplayer mode has been added to the original game.
|
||||
.SH OPTIONS
|
||||
A summary of options is included below.
|
||||
.TP
|
||||
.B \-\-freecol\-data DIR
|
||||
DIR should be the directory with FreeCol's data files, it
|
||||
has a subdirectory called
|
||||
.B images.
|
||||
.TP
|
||||
.B \-\-windowed
|
||||
Runs FreeCol in windowed mode instead of full screen mode.
|
||||
.TP
|
||||
.B \-\-no\-sound
|
||||
Runs FreeCol without sound.
|
||||
.TP
|
||||
.B \-\-usage
|
||||
Shows summary of options.
|
||||
.TP
|
||||
.B \-\-version
|
||||
Shows version of program.
|
||||
.TP
|
||||
.B \-\-server PORT
|
||||
Starts a stand-alone server on the specified port.
|
||||
.SH LICENSE
|
||||
FreeCol is available under GPL license terms.
|
||||
.SH SEE ALSO
|
||||
Homepage: http://freecol.sourceforge.net/
|
||||
.SH AUTHOR
|
||||
This manual page was written by Jean Lepropre <jean_lepropre@users.sourceforge.net>,
|
||||
for the Debian project (but may be used by others).
|
|
@ -1,40 +0,0 @@
|
|||
#!/bin/sh
|
||||
# simple script used to run FreeCol in Debian
|
||||
# copied from the Debian package argouml
|
||||
|
||||
# The first existing directory is used for JAVA_HOME (if JAVA_HOME is not
|
||||
# defined in $DEFAULT)
|
||||
JDK_DIRS="$JAVA_HOME /usr/lib/j2se/1.4 /usr/lib/j2sdk1.4 /usr/local/lib/jdk /usr/local/lib/j2sdk1.4 /usr/local/lib/j2se/1.4"
|
||||
|
||||
# Look for the right JVM to use
|
||||
for jdir in $JDK_DIRS; do
|
||||
if [ -r "$jdir/bin/java" -a -z "${JAVA_HOME}" ]; then
|
||||
JAVA_HOME="$jdir"
|
||||
fi
|
||||
done
|
||||
export JAVA_HOME
|
||||
|
||||
if [ "$JAVA_HOME" ] ; then
|
||||
if [ -z "$JAVACMD" ]; then
|
||||
JAVACMD="$JAVA_HOME/bin/java"
|
||||
fi
|
||||
|
||||
FOUND="false"
|
||||
for X in $@; do
|
||||
if [ "$X" == "--freecol-data" ]; then
|
||||
FOUND="true"
|
||||
fi
|
||||
done
|
||||
|
||||
if [ "$FOUND" == "true" ]; then
|
||||
$JAVACMD -cp /usr/share/java/freecol.jar net.sf.freecol.FreeCol "$@"
|
||||
else
|
||||
$JAVACMD -cp /usr/share/java/freecol.jar net.sf.freecol.FreeCol "$@" --freecol-data /usr/share/freecol/data
|
||||
fi
|
||||
|
||||
else
|
||||
echo "No JVM found to run FreeCol."
|
||||
echo "Please install a JVM (>= 1.4) to run FreeCol or "
|
||||
echo "set JAVA_HOME if it's not a JVM from a Debian Package."
|
||||
exit 1
|
||||
fi
|
|
@ -1 +0,0 @@
|
|||
debian/freecol.6
|
|
@ -1,2 +0,0 @@
|
|||
?package(freecol):needs="X11" section="Games/Strategy"\
|
||||
title="Freecol" command="/usr/bin/freecol"
|
|
@ -1,27 +0,0 @@
|
|||
#!/usr/bin/make -f
|
||||
# debian/rules for freecol (uses CDBS)
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
# This is the debhelper compatibility version to use.
|
||||
#export DH_COMPAT=4
|
||||
|
||||
include /usr/share/cdbs/1/rules/debhelper.mk
|
||||
include /usr/share/cdbs/1/class/ant.mk
|
||||
|
||||
JAVA_HOME_DIRS := /usr/local/lib/jdk /usr/local/lib/j2sdk1.4.2 /usr/local/lib/j2se/1.4 /usr/lib/jdk /usr/lib/j2sdk1.4.2 /usr/lib/j2se/1.4
|
||||
ANT_HOME := /usr/share/ant1.6
|
||||
DEB_ANT_BUILD_TARGET := package javadoc
|
||||
DEB_ANT_CLEAN_TARGET := clean
|
||||
DEB_ANT_ARGS += -Dnodata=true -Dnojars=true
|
||||
DEB_JARS := $(ANT_HOME)/lib/ant-launcher.jar
|
||||
|
||||
SOFTWARE := freecol
|
||||
VERSION := 0.3.0
|
||||
|
||||
install/freecol::
|
||||
install -m 644 FreeCol.jar debian/$(cdbs_curpkg)/usr/share/java/$(SOFTWARE)-$(VERSION).jar
|
||||
ln -s $(SOFTWARE)-$(VERSION).jar debian/$(cdbs_curpkg)/usr/share/java/$(SOFTWARE).jar
|
||||
install debian/$(SOFTWARE).sh debian/$(cdbs_curpkg)/usr/bin/$(SOFTWARE)
|
||||
cp -r data/ debian/$(cdbs_curpkg)/usr/share/freecol/
|
|
@ -1,52 +0,0 @@
|
|||
# Copyright 1999-2004 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
inherit games
|
||||
|
||||
DESCRIPTION="An open source clone of the game Colonization"
|
||||
HOMEPAGE="http://freecol.sf.net"
|
||||
SRC_URI="http://freecol.sf.net/download/${PN}-${PV}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="x86"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="|| (
|
||||
>=virtual/jdk-1.4
|
||||
>=virtual/jre-1.4 )"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-java/ant-1.4.1"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if [ -z "$JAVA_HOME" ]; then
|
||||
einfo
|
||||
einfo "\$JAVA_HOME not set!"
|
||||
einfo "Please use java-config to configure your JVM and try again."
|
||||
einfo
|
||||
die "\$JAVA_HOME not set."
|
||||
fi
|
||||
|
||||
cd ${WORKDIR}/${PN}
|
||||
ant -Dnodata=true || die "compile problem"
|
||||
}
|
||||
|
||||
src_install () {
|
||||
cd ${T}
|
||||
|
||||
echo "#!/bin/sh" > ${PN}
|
||||
echo "cd '${GAMES_DATADIR}/${PN}'" >> ${PN}
|
||||
echo "'${JAVA_HOME}'/bin/java -jar FreeCol.jar --freecol-data '${GAMES_DATADIR}/${PN}/data'" >> ${PN}
|
||||
|
||||
dogamesbin "${T}/${PN}" || die "dogamesbin failed"
|
||||
dodir "${GAMES_DATADIR}/${PN}"
|
||||
|
||||
cp "${WORKDIR}/${PN}/FreeCol.jar" "${D}${GAMES_DATADIR}/${PN}" || die "cp jar file failed"
|
||||
cp -r "${WORKDIR}/${PN}/data" "${D}${GAMES_DATADIR}/${PN}" || die "cp data dir failed"
|
||||
|
||||
prepgamesdirs
|
||||
}
|
Loading…
Reference in New Issue