wok-next view linapple/receipt @ rev 21595

updated dokuwiki (2012-01-25 -> 2018-04-22c)
author Hans-G?nter Theisgen
date Wed Jun 24 13:53:45 2020 +0100 (2020-06-24)
parents 0f2575775b2d
children
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="sdl-dev zlib-dev curl-dev libzip-dev"
15 DEPENDS="gcc-lib-base sdl zlib curl libzip"
17 CONFIG_FILES="/etc/linapple.conf"
18 TAGS="emulator apple2"
20 compile_rules() {
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
28 make CXXFLAGS="-O3 -I/usr/lib/libzip/include -I/usr/include/SDL" || return 1
30 install -Dm755 $src/linapple $install/usr/bin/linapple
31 install -Dm644 $src/linapple.conf $install/etc/linapple.conf
32 mkdir -p $install/usr/share/apple2/
33 install -m644 $src/*.bmp $install/usr/share/apple2/
34 ln -s ../../../etc/linapple.conf $install/usr/share/apple2/linapple.conf
35 }