wok-next annotate zsnes/receipt @ rev 20543

xorg-xf86-video-fbturbo: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Apr 03 11:07:12 2018 +0200 (2018-04-03)
parents 14cdf41afa35
children d6378d455338
rev   line source
al@20498 1 # SliTaz package receipt v2.
slaxemulator@6391 2
slaxemulator@6391 3 PACKAGE="zsnes"
slaxemulator@6391 4 VERSION="1.51"
slaxemulator@6391 5 CATEGORY="games"
al@20498 6 SHORT_DESC="Super Nintendo emulator"
slaxemulator@6391 7 MAINTAINER="slaxemulator@gmail.com"
pascal@15198 8 LICENSE="GPL2"
slaxemulator@6391 9 WEB_SITE="http://www.zsnes.com/"
al@20498 10
al@19001 11 TARBALL="$PACKAGE${VERSION//./}src.tar.bz2"
slaxemulator@6391 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
slaxemulator@6391 13
al@20502 14 BUILD_DEPENDS="nasm libsdl-dev libpng16-dev ncurses-dev mesa-dev \
al@19001 15 automake autoconf zlib-dev patch"
pascal@13796 16
al@20498 17 compile_rules() {
pascal@20130 18 sed -i -e '/info_ptr->color_type = /d' \
pascal@20130 19 -e 's/info_ptr->color_type/png_get_color_type(png_ptr, info_ptr)/' \
pascal@20130 20 src/zip/zpng.c
pascal@20047 21 sed -i 's/cstdio.*/&\n#include <unistd.h>/' src/tools/depbuild.cpp
al@20498 22 patch -p1 -i $stuff/zsnes.patch
al@20498 23
pascal@19960 24 cd $src/src
al@20498 25
pascal@19960 26 sed -i 's|/usr/man/|/usr/share/man/|' Makefile*
al@20498 27 ./configure \
al@20498 28 --prefix=/usr \
pascal@19960 29 --x-libraries=/usr/lib \
pascal@19960 30 --enable-release \
pascal@19960 31 force_arch=$ARCH \
pascal@19960 32 $CONFIGURE_ARGS &&
pascal@19960 33 make &&
pascal@19960 34 make -j 1 install
slaxemulator@6391 35 }
al@20498 36
al@20498 37 genpkg_rules() {
al@20498 38 copy @std
al@20498 39 # mkdir -p $fs/usr/bin
al@20498 40 # cp -a $src/src/zsnes $fs/usr/bin
al@20502 41 DEPENDS="gcc-lib-base libsdl libpng16 ncurses mesa zlib"
al@20498 42 TAGS="emulator nintendo snes"
slaxemulator@6391 43 }