wok-next view visualboyadvance/receipt @ rev 21045
Up cookutils (1094)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Nov 26 12:14:47 2018 +0200 (2018-11-26) |
parents | f48456621a9d |
children | 0f2575775b2d |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="visualboyadvance"
4 VERSION="1.7.2"
5 CATEGORY="games"
6 SHORT_DESC="An emulator for Gameboy and GameboyAdvance systems"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://vba.ngemu.com/"
11 TARBALL="VisualBoyAdvance-src-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/vba/$TARBALL"
14 BUILD_DEPENDS="libglademm-dev libglademm libsdl-dev patch nasm gtk2-dev gtkmm-dev \
15 cairomm-dev libglade-dev libxml2-dev zlib-dev bison flex"
16 SPLIT="$PACKAGE-gtk $PACKAGE"
18 compile_rules() {
19 sed -i 's/png_ptr->jmpbuf/png_jmpbuf(png_ptr)/' src/Util.cpp
20 sed -i 's/int i = 0; i < 16; i++/int ii = 0; ii < 16; ii++/' \
21 src/sdl/debugger.cpp
22 sed -i 's/void \*,void \*/gzFile, void */' src/Util.cpp
24 ./configure \
25 --disable-profiling \
26 --enable-gtk=2.4 \
27 --disable-dev \
28 $CONFIGURE_ARGS &&
29 make $MAKEFLAGS &&
30 make DESTDIR=$install install || return 1
32 install -Dm644 $stuff/visualboyadvance-gtk.desktop \
33 $install/usr/share/applications/visualboyadvance-gtk.desktop
34 }
36 genpkg_rules() {
37 case $PACKAGE in
38 visualboyadvance-gtk)
39 copy gvba visualboyadvance-gtk.desktop vba-64.png vba.glade *.mo
40 DEPENDS="libglademm visualboyadvance"
41 CAT="games|GTK frontend"
42 TAGS="emulator gameboy"
43 ;;
44 visualboyadvance)
45 copy @std @rm
46 CONFIG_FILES="/etc/VisualBoyAdvance.cfg"
47 TAGS="emulator gameboy"
48 DEPENDS="libsdl"
49 ;;
50 esac
51 }