wok-next view linapple/receipt @ rev 14442

Up dropbear (2013.58)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 26 13:24:00 2013 +0200 (2013-04-26)
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 }