wok-next view zsnes/receipt @ rev 20661

Unification of the patch system
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu May 10 21:12:00 2018 +0300 (2018-05-10)
parents c0521c689857
children baaa04032e25
line source
1 # SliTaz package receipt v2.
3 PACKAGE="zsnes"
4 VERSION="1.51"
5 CATEGORY="games"
6 SHORT_DESC="Super Nintendo emulator"
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.zsnes.com/"
11 TARBALL="$PACKAGE${VERSION//./}src.tar.bz2"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="nasm libsdl-dev libpng16-dev ncurses-dev mesa-dev \
15 automake autoconf zlib-dev patch"
17 compile_rules() {
18 sed -i -e '/info_ptr->color_type = /d' \
19 -e 's/info_ptr->color_type/png_get_color_type(png_ptr, info_ptr)/' \
20 src/zip/zpng.c
21 sed -i 's/cstdio.*/&\n#include <unistd.h>/' src/tools/depbuild.cpp
23 cd $src/src
25 sed -i 's|/usr/man/|/usr/share/man/|' Makefile*
26 ./configure \
27 --prefix=/usr \
28 --x-libraries=/usr/lib \
29 --enable-release \
30 force_arch=$ARCH \
31 $CONFIGURE_ARGS &&
32 make &&
33 make -j 1 install
34 }
36 genpkg_rules() {
37 copy @std
38 # mkdir -p $fs/usr/bin
39 # cp -a $src/src/zsnes $fs/usr/bin
40 DEPENDS="gcc-lib-base libsdl libpng16 ncurses mesa zlib"
41 TAGS="emulator nintendo snes"
42 }