wok view linapple/receipt @ rev 13638
Up: embryo (1.7.1)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Nov 16 00:04:15 2012 +0100 (2012-11-16) |
parents | 9bb4e660579f |
children | f4c22f009037 |
line source
1 # SliTaz package receipt.
3 PACKAGE="linapple"
4 VERSION="2a"
5 CATEGORY="misc"
6 SHORT_DESC="Apple //e emulator."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-src_$VERSION.tar.bz2"
9 WEB_SITE="http://linapple.sourceforge.net/"
10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
11 BUILD_DEPENDS="libsdl-dev zlib-dev curl-dev libzip-dev"
12 DEPENDS="gcc-lib-base libsdl zlib curl libzip"
13 CONFIG_FILES="/etc/linapple.conf"
14 TAGS="emulator apple2"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src/src
20 grep -q /usr/share/apple2 Applewin.cpp ||
21 sed -i 's|.*REGISTRY.*|\tchdir("/usr/share/apple2");\n&|' Applewin.cpp
22 make CXXFLAGS="-O3 -I/usr/lib/libzip/include -I/usr/include/SDL"
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr/share/apple2 $fs/usr/bin $fs/etc
29 cp $src/linapple $fs/usr/bin
30 cp $src/*.bmp $fs/usr/share/apple2
31 cp $src/linapple.conf $fs/etc
32 ln -s /etc/linapple.conf $fs/usr/share/apple2
33 }