wok annotate zsnes/receipt @ rev 24605

Add zmap
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 02 15:59:03 2022 +0000 (2022-03-02)
parents dd9b0bdf9963
children fbe88431f963
rev   line source
slaxemulator@6391 1 # SliTaz package receipt.
slaxemulator@6391 2
slaxemulator@6391 3 PACKAGE="zsnes"
slaxemulator@6391 4 VERSION="1.51"
slaxemulator@6391 5 CATEGORY="games"
slaxemulator@6391 6 MAINTAINER="slaxemulator@gmail.com"
pascal@15198 7 LICENSE="GPL2"
slaxemulator@6391 8 SHORT_DESC="Super Nintendo emulator"
pascal@23174 9 WEB_SITE="https://www.zsnes.com/"
al@19001 10 TARBALL="$PACKAGE${VERSION//./}src.tar.bz2"
slaxemulator@6391 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@13041 12 TAGS="emulator nintendo snes"
slaxemulator@6391 13
pascal@13796 14 DEPENDS="gcc-lib-base libsdl libpng ncurses mesa zlib"
al@19001 15 BUILD_DEPENDS="$DEPENDS nasm libsdl-dev libpng-dev ncurses-dev mesa-dev \
al@19001 16 automake autoconf zlib-dev patch"
pascal@13796 17
pascal@24105 18 current_version()
pascal@24105 19 {
pascal@24105 20 wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \
pascal@24105 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24105 22 sed '/zip/!d;s|.*ZSNES v||;s|/.*||;q'
pascal@24105 23 }
pascal@24105 24
slaxemulator@6391 25 # Rules to configure and make the package.
pascal@24105 26 compile_rules()
pascal@24105 27 {
pascal@17672 28 export LDFLAGS="$LDFLAGS -ltinfo"
slaxemulator@6391 29 cd $src
pascal@8974 30 patch -p1 -i $stuff/zsnes.patch
slaxemulator@6391 31 cd $src/src
pascal@19295 32 sed -i 's|/usr/man/|/usr/share/man/|' Makefile*
slaxemulator@6391 33 ./configure --prefix=/usr \
slaxemulator@6391 34 --x-libraries=/usr/lib \
slaxemulator@6391 35 --enable-release \
pascal@13878 36 force_arch=$ARCH \
slaxemulator@10038 37 $CONFIGURE_ARGS &&
slaxemulator@8262 38 make &&
slaxemulator@8261 39 make -j 1 install
slaxemulator@6391 40 }
slaxemulator@6391 41
slaxemulator@6391 42 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@6391 43 genpkg_rules()
slaxemulator@6391 44 {
slaxemulator@7566 45 mkdir -p $fs/usr/bin
slaxemulator@6391 46 cp -a $src/src/zsnes $fs/usr/bin
slaxemulator@6391 47 }