wok-next view enigma/receipt @ rev 18697
Fix pilot-link(-dev) packaging
author | Lucas Levrel <llevrel@yahoo.fr> |
---|---|
date | Mon Dec 14 09:55:05 2015 +0100 (2015-12-14) |
parents | 842dd79348e3 |
children | 14cdf41afa35 |
line source
1 # SliTaz package receipt.
3 PACKAGE="enigma"
4 VERSION="1.01"
5 REVISION="r1914"
6 CATEGORY="games"
7 SHORT_DESC="puzzle game similar to Oxyd"
8 MAINTAINER="devl547@gmail.com"
9 LICENSE="GPL2"
10 TARBALL="$PACKAGE-$VERSION-$REVISION.tar.gz"
11 WEB_SITE="http://www.nongnu.org/enigma/"
12 WGET_URL="http://download.berlios.de/enigma-game/$TARBALL"
14 DEPENDS="libsdl libsdl-ttf libsdl-mixer libsdl-image xerces-c"
15 BUILD_DEPENDS="gettext libsdl-ttf-dev libsdl-mixer-dev libsdl-image-dev libsdl-dev xerces-c-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 sed -i 's/stdexcept>/&\n#include <stddef.h>/' lib-src/zipios++/src/directory.h
22 sed -i 's/#ifndef.*/&\n#include <stddef.h>/' lib-src/enigma-core/ecl_dict.hh
23 ./configure \
24 --build=$HOST_SYSTEM \
25 --host=$HOST_SYSTEM \
26 --enable-optimize 2>&1 | grep -v 'config.rpath: No such file' &&
27 make &&
28 make DESTDIR=$DESTDIR install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/share
35 cp -a $install/usr/bin $fs/usr
36 cp -a $install/usr/lib $fs/usr
37 cp -a $install/usr/share/enigma $fs/usr/share
38 }