# -*-shell-script-*-
# autopackage specfile for ember

[Meta]
RootName: @worldforge.org/clients/ember:$SOFTWAREVERSION
DisplayName: Ember - a client for Worldforge
ShortName: ember
AutopackageTarget: 1.4
URL: http://www.worldforge.org/dev/eng/clients/ember
Maintainer: Erik Hjortsberg <erik.hjortsberg@gmail.com>
Packager: Erik Hjortsberg <erik.hjortsberg@gmail.com>
Summary: Ember is a client for MMORPGs using the Worldforge system. It uses the Ogre 3d engine with CEGUI.
SoftwareVersion: @VERSION@
Language: sv
DisplayName[sv]: Ember - en klient för Worldforge
Summary[sv]: Ember är en klient för MMORPGs som använder sig av Worldforgesystemet. Den använder sig av 3d motorn Ogre tillsammans med CEGUI.

[Description]
Ember is a fully usable client for the Worldforge system. It can connect to both Cyphesis and Indri servers. The world is presented in full 3d, utilizing modern features such as fragment and vertex shaders. Ember scales to lower end GPU too, but requires at the minimum a Geforce2 or equivalent graphics card.

[BuildPrepare]
#prepareBuild --enable-binreloc --enable-static

[BuildUnprepare]
#unprepareBuild

[Imports]
#rm -rf include
#find -name '*.la' | xargs rm
#echo '*' | import
import <<EOF
$source_dir/*
EOF

[Prepare]
require @freetype.org/freetype 6
require @gnu.org/libstdc++ 4
require @libsdl.org/sdl 1.2
require @libsdl.org/sdl_image 1.2
#require @libsigc.sourceforge.net/libsigc
require @opengl.org/opengl 1.4
require @opengl.org/glu 1.3
require @zlib.org/zlib 1
require @libpng.org/libpng 3
require @jig.org/libjpeg 1


[Install]
#installConfig ./etc/*
copyFiles ./etc/ember/* "$PREFIX/etc/ember"
installExe ./bin/*
copyFiles ./lib/ember/* "$PREFIX/lib/ember"
installData ./share/*
installDesktop "Games" ./share/applications/ember.desktop
#copyFiles ./share/ember/* "$PREFIX/share/ember/"
installIcon ./share/icons/worldforge/ember.png

[Uninstall]
uninstallFromLog


