wok-next view linapple/receipt @ rev 20674
Up putty (0.70)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat May 12 05:17:48 2018 +0300 (2018-05-12) |
parents | 27bfe81dc6bd |
children | 0f2575775b2d |
line source
1 # SliTaz package receipt v2.
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 WEB_SITE="http://linapple.sourceforge.net/"
11 TARBALL="$PACKAGE-src_$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="libsdl-dev zlib-dev curl-dev libzip-dev"
16 compile_rules() {
17 cd $src/src
18 sed -i 's|sys/stat.h>|&\n#include <unistd.h>|' Frame.cpp
19 sed -i 's|fcntl.h>|&\n#include <unistd.h>|' SerialComms.cpp
20 sed -i 's|sys/time.h>|&\n#include <unistd.h>|' Timer.cpp Applewin.cpp
21 grep -q /usr/share/apple2 Applewin.cpp ||
22 sed -i 's|.*REGISTRY.*|\tchdir("/usr/share/apple2");\n&|' Applewin.cpp
24 make CXXFLAGS="-O3 -I/usr/lib/libzip/include -I/usr/include/SDL" || return 1
26 mkdir -p \
27 $install/usr/share/apple2 \
28 $install/usr/bin \
29 $install/etc
30 cp $src/linapple $install/usr/bin
31 cp $src/*.bmp $install/usr/share/apple2
32 cp $src/linapple.conf $install/etc
33 ln -s /etc/linapple.conf $install/usr/share/apple2
34 }
36 genpkg_rules() {
37 copy @std
38 DEPENDS="gcc-lib-base libsdl zlib curl libzip"
39 CONFIG_FILES="/etc/linapple.conf"
40 TAGS="emulator apple2"
41 }