wok-next annotate gens-gs/receipt @ rev 10334
gens-gs: Add $CONFIGURE_ARGS.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun May 22 01:20:15 2011 +0000 (2011-05-22) |
parents | a2ceb81a791d |
children | a0250385f2a5 |
rev | line source |
---|---|
slaxemulator@9595 | 1 # SliTaz package receipt. |
slaxemulator@9595 | 2 |
slaxemulator@9595 | 3 PACKAGE="gens-gs" |
slaxemulator@9595 | 4 VERSION="2.15.5_gs_r7" |
slaxemulator@9595 | 5 CATEGORY="games" |
slaxemulator@9595 | 6 SHORT_DESC="An emulator for Sega Genesis, Sega CD and 32X." |
slaxemulator@9595 | 7 MAINTAINER="slaxemulator@gmail.com" |
slaxemulator@9595 | 8 _VERSION=gs-r7 |
slaxemulator@9595 | 9 TARBALL="Gens-${_VERSION}.tar.gz" |
slaxemulator@9595 | 10 WEB_SITE="http://info.sonicretro.org/Gens/GS" |
slaxemulator@9595 | 11 WGET_URL="http://segaretro.org/images/6/6d/$TARBALL" |
slaxemulator@9595 | 12 |
slaxemulator@10334 | 13 DEPENDS="gtk+ libsdl libglu-mesa" |
slaxemulator@10334 | 14 BUILD_DEPENDS="gtk+-dev libsdl libsdl-dev nasm autoconf automake" |
slaxemulator@10334 | 15 |
slaxemulator@9595 | 16 # Rules to configure and make the package. |
slaxemulator@9595 | 17 compile_rules() |
slaxemulator@9595 | 18 { |
slaxemulator@9595 | 19 cd $src |
slaxemulator@9595 | 20 patch -Np1 -i $stuff/gens-gtk.patch || return 1 |
slaxemulator@9595 | 21 chmod +x install-sh |
slaxemulator@10334 | 22 ./configure $CONFIGURE_ARGS |
slaxemulator@9595 | 23 find -name "Makefile" | xargs sed -i 's|-DGTK_DISABLE_DEPRECATED||g' |
slaxemulator@9595 | 24 make -j1 && make -j1 DESTDIR=$DESTDIR install |
slaxemulator@9595 | 25 } |
slaxemulator@9595 | 26 |
slaxemulator@9595 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@9595 | 28 genpkg_rules() |
slaxemulator@9595 | 29 { |
slaxemulator@9595 | 30 mkdir -p $fs/usr/share $fs/usr/lib/mdp |
slaxemulator@9595 | 31 cp -a $_pkg/usr/bin $fs/usr |
slaxemulator@9595 | 32 cp -a $_pkg/usr/lib/mdp/*.so $fs/usr/lib/mdp |
slaxemulator@9595 | 33 cp -a $_pkg/usr/share/applications $fs/usr/share |
slaxemulator@9595 | 34 cp -a $_pkg/usr/share/gens $fs/usr/share |
slaxemulator@9595 | 35 } |
slaxemulator@9595 | 36 |