1
0
forked from 0ad/0ad
This was SVN commit r7983.
This commit is contained in:
Ykkrosh 2010-08-16 01:36:22 +00:00
parent d401e8a401
commit 7a8d1f9542
15 changed files with 332 additions and 0 deletions

37
source/tools/dist/ubuntu/build.sh vendored Executable file
View File

@ -0,0 +1,37 @@
#!/bin/bash
set -e
REVISION=07970 # update all the relevant files after changing this
eval "$(gpg-agent --daemon)"
echo Make sure you updated the changelogs!
rm -rf build-0ad_lucid
rm -rf build-0ad-data
mkdir -p build-0ad_lucid
mkdir -p build-0ad-data
tar xzf 0ad-r${REVISION}-alpha-unix-build.tar.gz
cp 0ad-r${REVISION}-alpha-unix-build.tar.gz build-0ad_lucid/0ad_0.0.0+r${REVISION}.orig.tar.gz
mv 0ad-r${REVISION}-alpha build-0ad_lucid/0ad-0.0.0+r${REVISION}
pushd build-0ad_lucid/0ad-0.0.0+r${REVISION}
cp -r ../../debian-0ad debian
debuild -S
debuild -b
popd
tar xzf 0ad-r${REVISION}-alpha-unix-data.tar.gz
cp 0ad-r${REVISION}-alpha-unix-data.tar.gz build-0ad-data/0ad-data_0.0.0+r${REVISION}.orig.tar.gz
mv 0ad-r${REVISION}-alpha build-0ad-data/0ad-data-0.0.0+r${REVISION}
pushd build-0ad-data/0ad-data-0.0.0+r${REVISION}
cp -r ../../debian-0ad-data debian
debuild -S
debuild -b
popd
echo -e "To test install:\n sudo dpkg -i build-0ad_lucid/0ad_0.0.0+r${REVISION}-1~wfgppa1~lucid1_i386.deb build-0ad-data/0ad-data_0.0.0+r${REVISION}-1~wfgppa1_all.deb"
# TODO: see https://help.launchpad.net/Packaging/PPA/Copying for copying to other release series

View File

@ -0,0 +1,12 @@
0ad-data (0.0.0+r07970-1~wfgppa1) lucid; urgency=low
* New upstream version.
* Adapted for Ubuntu.
-- Philip Taylor <philip@zaynar.co.uk> Sun, 15 Aug 2010 18:26:41 +0100
0ad-data (r7732-1) unstable; urgency=low
* Initial package.
-- Stephan Kleine <bitshuffler@opensuse.org> Thu, 22 Jul 2010 02:17:34 +0200

View File

@ -0,0 +1 @@
7

View File

@ -0,0 +1,24 @@
Source: 0ad-data
Section: games
Priority: optional
Maintainer: Philip Taylor <philip@zaynar.co.uk>
Build-Depends: debhelper (>= 7.0.50)
Standards-Version: 3.8.4
Homepage: http://wildfiregames.com/0ad/
Package: 0ad-data
Architecture: all
Depends: ${misc:Depends}, 0ad
Description: real-time strategy game of ancient warfare (data files)
0 A.D. (pronounced "zero ey-dee") is a free, open-source, cross-platform real-time
strategy (RTS) game of ancient warfare. In short, it is a historically-based
war/economy game that allows players to relive or rewrite the history of Western
civilizations, focusing on the years between 500 B.C. and 500 A.D. The project is
highly ambitious, involving state-of-the-art 3D graphics, detailed artwork, sound,
and a flexible and powerful custom-built game engine.
.
The game has been in development by Wildfire Games (WFG), a group of volunteer,
hobbyist game developers, since 2001. The code and data are available under the GPL
license, and the art, sound and documentation are available under CC-BY-SA. In short,
we consider 0 A.D. an educational celebration of game development and ancient
history.

View File

@ -0,0 +1 @@
usr/share/games/0ad

View File

@ -0,0 +1,75 @@
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
config: config-stamp
config-stamp:
dh_testdir
# Add here commands to configure the package.
touch $@
build: build-stamp
build-stamp: config-stamp
dh_testdir
# Add here commands to compile the package.
touch $@
clean:
dh_testdir
dh_testroot
rm -f build-stamp config.stamp
# Add here commands to clean up after the build process.
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/tmp
mkdir -p $(CURDIR)/debian/tmp/usr/share/games
mv binaries/data $(CURDIR)/debian/tmp/usr/share/games/0ad
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
# dh_installchangelogs CHANGES
dh_installdocs
dh_install --sourcedir=debian/tmp
dh_installdebconf
dh_installlogrotate
dh_installinit -n -r -u stop 20 0 6 .
dh_installman --sourcedir=debian/tmp
dh_link
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

View File

@ -0,0 +1 @@
3.0 (quilt)

View File

@ -0,0 +1,3 @@
version=3
opts="dversionmangle=s/0\.0\.0\+r([\d]+).*/$1/" \
http://releases.wildfiregames.com/0ad-r([\d]+)-.*-unix-data\.tar\.gz

View File

@ -0,0 +1,12 @@
0ad (0.0.0+r07970-1~wfgppa1~lucid1) lucid; urgency=low
* New upstream version.
* Adapted for Ubuntu.
-- Philip Taylor <philip@zaynar.co.uk> Sun, 15 Aug 2010 18:26:41 +0100
0ad (r7732-1) unstable; urgency=low
* Initial package.
-- Stephan Kleine <bitshuffler@opensuse.org> Thu, 15 Jul 2010 00:13:30 +0200

View File

@ -0,0 +1 @@
7

View File

@ -0,0 +1,54 @@
Source: 0ad
Section: games
Priority: optional
Maintainer: Philip Taylor <philip@zaynar.co.uk>
Build-Depends: debhelper (>= 7.0.50),
libsdl1.2-dev, zlib1g-dev, libpng12-dev,
libjpeg62-dev, libgamin-dev, nasm,
libwxgtk2.8-dev, libboost-dev,
libboost-signals-dev, libopenal-dev,
libalut-dev, libvorbis-dev, libogg-dev,
binutils-dev,
libdevil-dev, libenet-dev, libxml2-dev,
pkg-config, libboost-filesystem-dev,
zip, libstdc++6-4.4-dev, python
Standards-Version: 3.8.4
Homepage: http://wildfiregames.com/0ad/
Package: 0ad
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, gamin, 0ad-data
Description: real-time strategy game of ancient warfare
0 A.D. (pronounced "zero ey-dee") is a free, open-source, cross-platform real-time
strategy (RTS) game of ancient warfare. In short, it is a historically-based
war/economy game that allows players to relive or rewrite the history of Western
civilizations, focusing on the years between 500 B.C. and 500 A.D. The project is
highly ambitious, involving state-of-the-art 3D graphics, detailed artwork, sound,
and a flexible and powerful custom-built game engine.
.
The game has been in development by Wildfire Games (WFG), a group of volunteer,
hobbyist game developers, since 2001. The code and data are available under the GPL
license, and the art, sound and documentation are available under CC-BY-SA. In short,
we consider 0 A.D. an educational celebration of game development and ancient
history.
Package: 0ad-dbg
Section: debug
Priority: extra
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, 0ad (= ${binary:Version})
Description: real-time strategy game of ancient warfare (debug symbols)
0 A.D. (pronounced "zero ey-dee") is a free, open-source, cross-platform real-time
strategy (RTS) game of ancient warfare. In short, it is a historically-based
war/economy game that allows players to relive or rewrite the history of Western
civilizations, focusing on the years between 500 B.C. and 500 A.D. The project is
highly ambitious, involving state-of-the-art 3D graphics, detailed artwork, sound,
and a flexible and powerful custom-built game engine.
.
The game has been in development by Wildfire Games (WFG), a group of volunteer,
hobbyist game developers, since 2001. The code and data are available under the GPL
license, and the art, sound and documentation are available under CC-BY-SA. In short,
we consider 0 A.D. an educational celebration of game development and ancient
history.
.
This package contains the debugging symbols.

View File

@ -0,0 +1,7 @@
usr/games/0ad
usr/games/pyrogenesis
usr/lib/games/0ad/libAtlasUI.so
usr/lib/games/0ad/libCollada.so
usr/lib/games/0ad/libmozjs-ps-release.so
usr/share/pixmaps/0ad.png
usr/share/applications/0ad.desktop

100
source/tools/dist/ubuntu/debian-0ad/rules vendored Executable file
View File

@ -0,0 +1,100 @@
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
config: config-stamp
config-stamp:
dh_testdir
# Add here commands to configure the package.
# cmake -DCMAKE_INSTALL_PREFIX=/usr -DSYSCONFDIR=/etc -DLOCALSTATEDIR=/var .
touch $@
build: build-stamp
build-stamp: config-stamp
dh_testdir
# Add here commands to compile the package.
build/workspaces/update-workspaces.sh --verbose --bindir /usr/games --datadir /usr/share/games/0ad --libdir /usr/lib/games/0ad
# NUMJOBS=1
# ifneq ("",$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
# NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
# endif
# $(MAKE) -j$(NUMJOBS) -C build/workspaces/gcc
$(MAKE) CONFIG=Release -j2 -C build/workspaces/gcc
# Run tests
LD_LIBRARY_PATH=binaries/system binaries/system/test -libdir binaries/system
touch $@
clean:
dh_testdir
dh_testroot
rm -f build-stamp config.stamp
# Add here commands to clean up after the build process.
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/tmp
# $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
install -Dm 0755 binaries/system/pyrogenesis $(CURDIR)/debian/tmp/usr/games/pyrogenesis
install -Dm 0755 binaries/system/libCollada.so $(CURDIR)/debian/tmp/usr/lib/games/0ad/libCollada.so
install -Dm 0755 binaries/system/libAtlasUI.so $(CURDIR)/debian/tmp/usr/lib/games/0ad/libAtlasUI.so
install -Dm 0755 binaries/system/libmozjs-ps-release.so $(CURDIR)/debian/tmp/usr/lib/games/0ad/libmozjs-ps-release.so
sed -i 's/\/usr\/bin/\/usr\/games/' build/resources/0ad.sh
sed -i 's/\/usr\/bin/\/usr\/games/' build/resources/0ad.desktop
install -Dm 0755 build/resources/0ad.sh $(CURDIR)/debian/tmp/usr/games/0ad
install -Dm 0644 build/resources/0ad.png $(CURDIR)/debian/tmp/usr/share/pixmaps/0ad.png
install -Dm 0644 build/resources/0ad.desktop $(CURDIR)/debian/tmp/usr/share/applications/0ad.desktop
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
# dh_installchangelogs CHANGES
dh_installdocs
dh_install --sourcedir=debian/tmp
dh_installdebconf
dh_installlogrotate
dh_installinit -n -r -u stop 20 0 6 .
dh_installman --sourcedir=debian/tmp
dh_link
dh_strip --dbg-package=0ad-dbg
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

View File

@ -0,0 +1 @@
3.0 (quilt)

View File

@ -0,0 +1,3 @@
version=3
opts="dversionmangle=s/0\.0\.0\+r([\d]+).*/$1/" \
http://releases.wildfiregames.com/0ad-r([\d]+)-.*-unix-build\.tar\.gz