wok-next annotate zsnes/receipt @ rev 20047
Up zile (2.4.14)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Oct 23 10:04:45 2017 +0200 (2017-10-23) |
parents | 466bca9334ef |
children | c649c7c1a5b0 |
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" |
slaxemulator@6391 | 9 WEB_SITE="http://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 |
slaxemulator@6391 | 18 # Rules to configure and make the package. |
slaxemulator@6391 | 19 |
pascal@19960 | 20 compile_rules() |
pascal@19960 | 21 { |
pascal@20047 | 22 sed -i 's/cstdio.*/&\n#include <unistd.h>/' src/tools/depbuild.cpp |
pascal@19960 | 23 patch -p1 -i $stuff/zsnes.patch |
pascal@19960 | 24 cd $src/src |
pascal@19960 | 25 sed -i 's|/usr/man/|/usr/share/man/|' Makefile* |
pascal@19960 | 26 ./configure --prefix=/usr \ |
pascal@19960 | 27 --x-libraries=/usr/lib \ |
pascal@19960 | 28 --enable-release \ |
pascal@19960 | 29 force_arch=$ARCH \ |
pascal@19960 | 30 $CONFIGURE_ARGS && |
pascal@19960 | 31 make && |
pascal@19960 | 32 make -j 1 install |
slaxemulator@6391 | 33 } |
slaxemulator@6391 | 34 |
slaxemulator@6391 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@6391 | 36 genpkg_rules() |
slaxemulator@6391 | 37 { |
slaxemulator@7566 | 38 mkdir -p $fs/usr/bin |
slaxemulator@6391 | 39 cp -a $src/src/zsnes $fs/usr/bin |
slaxemulator@6391 | 40 } |