aboutsummaryrefslogblamecommitdiffstats
path: root/testing/fs-uae/APKBUILD
blob: a3415ab3d15315b814349c91d992ce98a92d78fb (plain) (tree)
1
2
3
4
5
6
7
8


                                            

            

                         
                                                                         








                                                                                                                        
                          
                             







                                                              






                                         
                              








                                      
                                                                                                                                                                  
# Contributor: Taner Tas <taner76@gmail.com>
# Maintainer: Taner Tas <taner76@gmail.com>
pkgname=fs-uae
pkgver=2.8.4
pkgrel=0
pkgdesc="Amiga emulator."
url="https://fs-uae.net/"
arch="all !armhf !aarch64"  # --enable-jit not supported for these arches
license="GPL-2.0-only"
makedepends="zip clang-dev sdl2-dev libpng-dev libx11-dev libxi-dev openal-soft-dev linux-headers libmpeg2-dev glib-dev"
subpackages="$pkgname-lang"
source="https://fs-uae.net/stable/${pkgver}/${pkgname}-${pkgver}.tar.gz"
options="!check"

build() {
	export CC=clang
	export CXX=clang++
	local _jitoptions=
	unset CFLAGS CXXFLAGS
	case "$CARCH" in
		ppc64le)
			_jitoptions="--disable-jit"
			export CFLAGS="-g -O2 -U__ALTIVEC__"
			export CXXFLAGS="-g -O2 -U__ALTIVEC__"
		;;
	esac

	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		$_jitoptions \
		--enable-sdl2
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	rm -rf "$pkgdir"/usr/share/doc
}
sha512sums="4fc2c90c87420db2fb3008758b9787416aafd4dbf651d890c16a9c785876b50a00afcb237d7c6bbdda8ec0a1c695d0f1e5a16fce2798347609b04f4d0df5466d  fs-uae-2.8.4.tar.gz"