wok-next view zsnes/receipt @ rev 20227

gesftpserver, icewm-xdgmenu, man2html: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Nov 05 23:23:24 2017 +0100 (2017-11-05)
parents 4c3300d8140f
children dd145c435e4b
line source
1 # SliTaz package receipt.
3 PACKAGE="zsnes"
4 VERSION="1.51"
5 CATEGORY="games"
6 MAINTAINER="slaxemulator@gmail.com"
7 LICENSE="GPL2"
8 SHORT_DESC="Super Nintendo emulator"
9 WEB_SITE="http://www.zsnes.com/"
10 TARBALL="$PACKAGE${VERSION//./}src.tar.bz2"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 TAGS="emulator nintendo snes"
14 DEPENDS="gcc-lib-base libsdl libpng ncurses mesa zlib"
15 BUILD_DEPENDS="$DEPENDS nasm libsdl-dev libpng-dev ncurses-dev mesa-dev \
16 automake autoconf zlib-dev patch"
18 # Rules to configure and make the package.
20 compile_rules()
21 {
22 sed -i -e '/info_ptr->color_type = /d' \
23 -e 's/info_ptr->color_type/png_get_color_type(png_ptr, info_ptr)/' \
24 src/zip/zpng.c
25 sed -i 's/cstdio.*/&\n#include <unistd.h>/' src/tools/depbuild.cpp
26 patch -p1 -i $stuff/zsnes.patch
27 cd $src/src
28 sed -i 's|/usr/man/|/usr/share/man/|' Makefile*
29 ./configure --prefix=/usr \
30 --x-libraries=/usr/lib \
31 --enable-release \
32 force_arch=$ARCH \
33 $CONFIGURE_ARGS &&
34 make &&
35 make -j 1 install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/bin
42 cp -a $src/src/zsnes $fs/usr/bin
43 }