wok-next annotate visualboyadvance/receipt @ rev 21020

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