wok-next view linapple/receipt @ rev 20474

Tiny edits... (again)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Mar 10 17:39:42 2018 +0200 (2018-03-10)
parents f4c22f009037
children 9d604775ef23
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-src_$VERSION.tar.bz2"
10 WEB_SITE="http://linapple.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 CONFIG_FILES="/etc/linapple.conf"
13 TAGS="emulator apple2"
15 DEPENDS="gcc-lib-base libsdl zlib curl libzip"
16 BUILD_DEPENDS="libsdl-dev zlib-dev curl-dev libzip-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src/src
22 sed -i 's|sys/stat.h>|&\n#include <unistd.h>|' Frame.cpp
23 sed -i 's|fcntl.h>|&\n#include <unistd.h>|' SerialComms.cpp
24 sed -i 's|sys/time.h>|&\n#include <unistd.h>|' Timer.cpp Applewin.cpp
25 grep -q /usr/share/apple2 Applewin.cpp ||
26 sed -i 's|.*REGISTRY.*|\tchdir("/usr/share/apple2");\n&|' Applewin.cpp
27 make CXXFLAGS="-O3 -I/usr/lib/libzip/include -I/usr/include/SDL"
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/share/apple2 $fs/usr/bin $fs/etc
34 cp $src/linapple $fs/usr/bin
35 cp $src/*.bmp $fs/usr/share/apple2
36 cp $src/linapple.conf $fs/etc
37 ln -s /etc/linapple.conf $fs/usr/share/apple2
38 }