mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
53 lines
1.2 KiB
Plaintext
53 lines
1.2 KiB
Plaintext
# Contributor: Taner Tas <taner76@gmail.com>
|
|
# Maintainer: Taner Tas <taner76@gmail.com>
|
|
pkgname=snes9x
|
|
pkgver=1.55
|
|
pkgrel=0
|
|
pkgdesc="Super NES Emulator"
|
|
url="http://www.snes9x.com"
|
|
arch="all"
|
|
license="custom"
|
|
makedepends="nasm autoconf automake libpng-dev zlib-dev libxml2-dev
|
|
alsa-lib-dev minizip-dev portaudio-dev gtk+3.0-dev sdl-dev"
|
|
subpackages="$pkgname-lang $pkgname-doc"
|
|
source="${pkgname}-${pkgver}.tar.gz::https://github.com/${pkgname}git/${pkgname}/archive/${pkgver}.tar.gz"
|
|
|
|
prepare() {
|
|
cd "$builddir"
|
|
default_prepare
|
|
cd gtk
|
|
./autogen.sh
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"/gtk
|
|
make check
|
|
}
|
|
|
|
build() {
|
|
cd "$builddir"/gtk
|
|
export ZLIB=1
|
|
export UNZIP_SUPPORT=1
|
|
export JMA_SUPPORT=1
|
|
export RIGHTSHIFT_IS_SAR=1
|
|
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--with-netplay \
|
|
--with-opengl \
|
|
--with-gtk3 \
|
|
--without-pulseaudio
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"/gtk
|
|
make DESTDIR="$pkgdir" install
|
|
ln -s snes9x-gtk "$pkgdir"/usr/bin/snes9x
|
|
install -D -m644 "$builddir"/docs/snes9x-license.txt "$pkgdir"/usr/share/doc/${pkgname}/snes9x-license.txt
|
|
}
|
|
|
|
sha512sums="61d1d6f9c1fc4fbf6253ac7a7d214c771563d7d60238197b2f1525a58f8f9011446f400767d39ec464c69d80574a7dcd78557c8f47605df992af28cb107c0f6e snes9x-1.55.tar.gz"
|