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