### this file is sourced not run

# source: SFR
PKGVER=2.4.29
TARBALL=vice-${PKGVER}.tar.gz
MD5SUM=ced735acb3dc89d43fb23fd328816aab
SRC_URL=https://sourceforge.net/projects/vice-emu/files/development-releases/$TARBALL
BUNDLE=


SLACKDESC='vice: vice 2.4.29 (the Versatile Commodore Emulator)  
vice:  
vice: VICE is a program that runs on a Unix, MS-DOS, Win32,
vice: OS/2, Acorn RISC OS, BeOS, QNX 4.x, QNX 6.x, Amiga, GP2X,
vice: Dingoo, Syllable or Mac OS X machine and executes programs
vice: intended for the old 8-bit computers.
vice: The current version emulates the C64, the C64DTV,
vice: the C128, the VIC20, almost all PET models,
vice: the PLUS4 and the CBM-II (aka C610).
vice: 
vice: 
'

SLACKREQ='libgtkglext
libvte'

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	CONFFLAGS="${CONFFLAGS} --enable-gnomeui --enable-external-ffmpeg --enable-ethernet"
	CC=gcc
	CXX=g++
	cd tmp/vice* &&
	cp src/arch/amigaos/cw.h src/arch/unix/cw.h &&
	sed -i 's/test -n "$FCCACHE" || FCCACHE="false"/FCCACHE="false"/' configure &&
	pkg_build_autoconf &&
	cp ../pkg/vice.desktop /usr/share/applications &&
	cp ../pkg/vice.png /usr/share/pixmaps &&
	cp ../pkg/vice /usr/bin &&
	pkg_build_slackdesc
}
