wok-next annotate visualboyadvance/receipt @ rev 20141
visualboyadvance: receipt v2
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Nov 01 10:38:37 2017 +0100 (2017-11-01) |
parents | f375934fce59 |
children | 757d032c55c7 |
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" |
gokhlayeh@7031 | 7 MAINTAINER="gokhlayeh@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
al@18580 | 9 TARBALL="VisualBoyAdvance-src-$VERSION.tar.gz" |
gokhlayeh@7031 | 10 WEB_SITE="http://vba.ngemu.com/" |
gokhlayeh@7031 | 11 WGET_URL="http://downloads.sourceforge.net/sourceforge/vba/$TARBALL" |
gokhlayeh@7031 | 12 |
al@18580 | 13 BUILD_DEPENDS="libglademm-dev libglademm libsdl-dev patch nasm gtk+-dev gtkmm-dev \ |
al@18580 | 14 cairomm-dev libglade-dev libxml2-dev zlib-dev bison flex" |
pascal@20141 | 15 SPLIT="visualboyadvance visualboyadvance-gtk" |
pascal@15000 | 16 |
gokhlayeh@7031 | 17 # Rules to configure and make the package. |
gokhlayeh@7031 | 18 compile_rules() |
gokhlayeh@7031 | 19 { |
pascal@20141 | 20 sed -i 's/png_ptr->jmpbuf/png_jmpbuf(png_ptr)/' src/Util.cpp |
pascal@20006 | 21 sed -i 's/int i = 0; i < 16; i++/int ii = 0; ii < 16; ii++/' \ |
pascal@20006 | 22 src/sdl/debugger.cpp |
pascal@13043 | 23 sed -i 's/void \*,void \*/gzFile, void */' src/Util.cpp |
pascal@8974 | 24 for i in $stuff/$VERSION-*.patch; do |
gokhlayeh@7031 | 25 patch -Np0 < $i |
gokhlayeh@7031 | 26 done |
gokhlayeh@7031 | 27 ./configure \ |
gokhlayeh@7031 | 28 --prefix=/usr \ |
gokhlayeh@7031 | 29 --sysconfdir=/etc \ |
al@18580 | 30 --disable-profiling \ |
gokhlayeh@7031 | 31 --enable-gtk=2.4 \ |
al@18580 | 32 --disable-dev \ |
gokhlayeh@7031 | 33 $CONFIGURE_ARGS && |
pascal@15000 | 34 make $MAKEFLAGS && make DESTDIR=$DESTDIR install |
gokhlayeh@7031 | 35 } |
gokhlayeh@7031 | 36 |
gokhlayeh@7031 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
gokhlayeh@7031 | 38 genpkg_rules() |
gokhlayeh@7031 | 39 { |
pascal@20141 | 40 case $PACKAGE in |
pascal@20141 | 41 visualboyadvance) |
pascal@20141 | 42 CONFIG_FILES="/etc/VisualBoyAdvance.cfg" |
pascal@20141 | 43 TAGS="emulator gameboy" |
pascal@20141 | 44 DEPENDS="libsdl" |
pascal@20141 | 45 cp -a $install/* $fs |
pascal@20141 | 46 ;; |
pascal@20141 | 47 visualboyadvance-gtk) |
pascal@20141 | 48 CAT="games|An emulator for Gameboy and Gameboy Advance systems (GTK frontend)." |
pascal@20141 | 49 TAGS="emulator gameboy" |
pascal@20141 | 50 DEPENDS="libglademm visualboyadvance" |
pascal@20141 | 51 mkdir -p $fs/usr/bin $fs/usr/share/applications |
pascal@20141 | 52 cp -a $install/usr/bin/gvba $fs/usr/bin |
pascal@20141 | 53 cp $stuff/visualboyadvance-gtk.desktop $fs/usr/share/applications |
pascal@20141 | 54 ;; |
pascal@20141 | 55 esac |
gokhlayeh@7031 | 56 } |