2022-03-18 20:44:14 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
# Copyright (C) 2020-present Fewtarius
|
|
|
|
|
2023-04-01 22:58:06 +00:00
|
|
|
PKG_NAME="vice-sa"
|
2023-01-10 22:11:33 +00:00
|
|
|
PKG_VERSION="3.7.1"
|
2022-03-18 20:44:14 +00:00
|
|
|
PKG_REV="1"
|
|
|
|
PKG_ARCH="any"
|
|
|
|
PKG_LICENSE="GPLv2"
|
|
|
|
PKG_SITE="https://sourceforge.net/projects/vice-emu"
|
|
|
|
PKG_URL="${PKG_SITE}/files/releases/vice-${PKG_VERSION}.tar.gz"
|
2023-09-15 12:39:31 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain xa:host SDL2 SDL2_image ncurses readline dos2unix:host"
|
2022-03-18 20:44:14 +00:00
|
|
|
PKG_PRIORITY="optional"
|
|
|
|
PKG_SECTION="emulators"
|
|
|
|
PKG_SHORTDESC="Commodore 8-bit Emulator"
|
|
|
|
PKG_LONGDESC="Commodore 8-bit Emulator"
|
2023-08-10 21:26:33 +00:00
|
|
|
PKG_CONFIGURE_OPTS_TARGET+=" --disable-pdf-docs --enable-gtk3ui=no --without-alsa --with-pulse --enable-sdl2ui"
|
2022-03-18 20:44:14 +00:00
|
|
|
|
2022-07-11 22:23:00 +00:00
|
|
|
if [ ! "${OPENGL}" = "no" ]; then
|
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGL} glu libglvnd"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "${OPENGLES_SUPPORT}" = yes ]; then
|
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
|
|
|
|
fi
|
|
|
|
|
2022-09-03 00:15:55 +00:00
|
|
|
pre_configure_target() {
|
|
|
|
export LDFLAGS="${LDFLAGS} -lreadline -lncursesw -ltinfow"
|
|
|
|
export CFLAGS="${CFLAGS} -fcommon"
|
|
|
|
}
|
|
|
|
|
2022-03-18 20:44:14 +00:00
|
|
|
post_makeinstall_target() {
|
|
|
|
mkdir -p ${INSTALL}/usr/config/vice
|
2023-08-10 21:26:33 +00:00
|
|
|
if [ -d "${PKG_DIR}/configs" ]
|
2022-03-26 21:11:38 +00:00
|
|
|
then
|
2023-08-10 21:26:33 +00:00
|
|
|
cp -f ${PKG_DIR}/configs/* ${INSTALL}/usr/config/vice
|
2022-03-26 21:11:38 +00:00
|
|
|
fi
|
2023-08-10 21:26:33 +00:00
|
|
|
|
|
|
|
for sc in x128 x64sc xplus4 xvic
|
|
|
|
do
|
|
|
|
cp -f ${PKG_DIR}/sources/start_vice.sh ${INSTALL}/usr/bin/start_${sc}.sh
|
|
|
|
sed -i "s~@EMU@~${sc}~g" ${INSTALL}/usr/bin/start_${sc}.sh
|
|
|
|
done
|
2022-03-18 20:44:14 +00:00
|
|
|
chmod 0755 ${INSTALL}/usr/bin/*
|
|
|
|
}
|