forked from Mirrors/openclonk
Use cmake in the debian build, and add hg as a build dependency
* Mercurial as Build Dependency * Switch to cmake as build system * Fixed spacing issues in $(CURDIR)
parent
dcf8ef75f3
commit
1fd6f2f057
|
@ -1,3 +1,11 @@
|
|||
openclonk (5.1.1.0-0ubuntu1-ppa4) maverick; urgency=low
|
||||
|
||||
* Mercurial as Build Dependency
|
||||
* Switch to cmake as build system
|
||||
* Fixed spacing issues in $(CURDIR)
|
||||
|
||||
-- Sebastian Rühl <sebastian.ruehl@mni.fh-giessen.de> Sun, 31 Dec 2010 15:38:26 +0100
|
||||
|
||||
openclonk (5.1.1.0-0ubuntu1-ppa3) maverick; urgency=low
|
||||
|
||||
* Fixed Icons
|
||||
|
|
|
@ -2,7 +2,7 @@ Source: openclonk
|
|||
Section: games
|
||||
Priority: extra
|
||||
Maintainer: Sebastian Rühl <sebastian.ruehl@mni.fh-giessen.de>
|
||||
Build-Depends: debhelper (>= 7), cmake, make (>= 3.8), gcc (>= 4.3), g++ (>=4.3), automake, autoconf, libtool, libc6-dev (>= 2.9), libx11-dev, libxxf86vm-dev, libxrandr-dev, libxpm-dev, libglew1.5-dev, libgl1-mesa-dev, libpng12-dev, libssl-dev, libsdl1.2-dev, libsdl-mixer1.2-dev, libgtk2.0-dev, libjpeg62-dev, zlib1g-dev, libboost-dev
|
||||
Build-Depends: debhelper (>= 7), cmake, make (>= 3.8), gcc (>= 4.3), g++ (>=4.3), automake, autoconf, libtool, libc6-dev (>= 2.9), libx11-dev, libxxf86vm-dev, libxrandr-dev, libxpm-dev, libglew1.5-dev, libgl1-mesa-dev, libpng12-dev, libssl-dev, libsdl1.2-dev, libsdl-mixer1.2-dev, libgtk2.0-dev, libjpeg62-dev, zlib1g-dev, libboost-dev, mercurial
|
||||
Standards-Version: 3.8.0
|
||||
Homepage: http://wiki.openclonk.org/w/Project
|
||||
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
builddir/Makefile:
|
||||
dh_testdir
|
||||
# Add here commands to configure the package.
|
||||
autoreconf -i && ./configure --with-gtk --without-automatic-update
|
||||
#autoreconf -i && ./configure --with-gtk --without-automatic-update
|
||||
cmake . -DWITH_AUTOMATIC_UPDATE=0
|
||||
|
||||
build: build-stamp
|
||||
|
||||
|
@ -48,17 +49,17 @@ install: build
|
|||
# Add here commands to install the package into debian/openclonk.
|
||||
|
||||
#Make the dir where game data is stored
|
||||
mkdir -p $(CURDIR)/debian/openclonk/usr/share/games/clonk
|
||||
cp -r $(CURDIR)/planet/* $(CURDIR)/debian/openclonk/usr/share/games/clonk/
|
||||
mkdir -p "$(CURDIR)"/debian/openclonk/usr/share/games/clonk
|
||||
cp -r "$(CURDIR)"/planet/* "$(CURDIR)"/debian/openclonk/usr/share/games/clonk/
|
||||
|
||||
# Make the link
|
||||
mkdir -p $(CURDIR)/debian/openclonk/usr/games
|
||||
cp -a $(CURDIR)/clonk $(CURDIR)/debian/openclonk/usr/games/clonk.bin
|
||||
ln -s /usr/games/clonk.bin $(CURDIR)/debian/openclonk/usr/share/games/clonk/clonk
|
||||
echo '#!/bin/sh\n/usr/share/games/clonk/clonk $$@' > $(CURDIR)/debian/openclonk/usr/games/clonk
|
||||
chmod a+x $(CURDIR)/debian/openclonk/usr/games/clonk
|
||||
mkdir -p "$(CURDIR)"/debian/openclonk/usr/games
|
||||
cp -a "$(CURDIR)"/clonk "$(CURDIR)"/debian/openclonk/usr/games/clonk.bin
|
||||
ln -s /usr/games/clonk.bin "$(CURDIR)"/debian/openclonk/usr/share/games/clonk/clonk
|
||||
echo '#!/bin/sh\n/usr/share/games/clonk/clonk $$@' > "$(CURDIR)"/debian/openclonk/usr/games/clonk
|
||||
chmod a+x "$(CURDIR)"/debian/openclonk/usr/games/clonk
|
||||
$(MAKE) c4group
|
||||
./c4group $(CURDIR)/debian/openclonk/usr/share/games/clonk/* -p
|
||||
./c4group "$(CURDIR)"/debian/openclonk/usr/share/games/clonk/* -p
|
||||
|
||||
# Build architecture-independent files here.
|
||||
binary-indep: install
|
||||
|
|
Loading…
Reference in New Issue