2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
# Copyright (C) 2018-present 5schatten (https://github.com/5schatten)
|
|
|
|
|
|
|
|
PKG_NAME="hatarisa"
|
2022-08-04 21:01:33 +00:00
|
|
|
PKG_VERSION="409391e3e65b1de17b849a91f8a70e393fe98566"
|
|
|
|
PKG_SHA256="0d0a71b80c90bca32303027d206888c44d1e5c603e5801e54660f50e0688dc14"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LICENSE="GPL"
|
|
|
|
PKG_SITE="https://github.com/hatari/hatari"
|
2022-03-20 12:23:52 +00:00
|
|
|
PKG_URL="https://github.com/hatari/hatari/archive/${PKG_VERSION}.tar.gz"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain linux glibc systemd alsa-lib SDL2 portaudio zlib capsimg libpng"
|
|
|
|
PKG_LONGDESC="Hatari is an Atari ST/STE/TT/Falcon emulator"
|
|
|
|
|
|
|
|
|
|
|
|
pre_configure_target() {
|
|
|
|
PKG_CMAKE_OPTS_TARGET="-DCMAKE_SKIP_RPATH=ON \
|
|
|
|
-DDATADIR="/usr/config/hatari" \
|
|
|
|
-DBIN2DATADIR="../../storage/.config/hatari" \
|
2022-03-20 12:23:52 +00:00
|
|
|
-DCAPSIMAGE_INCLUDE_DIR=${PKG_BUILD}/src/include \
|
|
|
|
-DCAPSIMAGE_LIBRARY=${PKG_BUILD}/libcapsimage.so.5.1"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
# copy IPF Support Library include files
|
2022-03-20 12:23:52 +00:00
|
|
|
mkdir -p ${PKG_BUILD}/src/includes/caps/
|
|
|
|
cp -R $(get_build_dir capsimg)/LibIPF/* ${PKG_BUILD}/src/includes/caps/
|
|
|
|
cp -R $(get_build_dir capsimg)/Core/CommonTypes.h ${PKG_BUILD}/src/includes/caps/
|
|
|
|
cp -R $(get_build_dir capsimg)/.install_pkg/usr/lib/libcapsimage.so.5.1 ${PKG_BUILD}/
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
# add library search path for loading libcapsimage library
|
2022-03-20 12:23:52 +00:00
|
|
|
LDFLAGS="$LDFLAGS -Wl,-rpath='${PKG_BUILD}'"
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_target() {
|
|
|
|
# create directories
|
2022-03-20 12:23:52 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/bin
|
|
|
|
mkdir -p ${INSTALL}/usr/config/hatari
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
# copy config files
|
2022-03-20 12:23:52 +00:00
|
|
|
touch ${INSTALL}/usr/config/hatari/hatari.nvram
|
|
|
|
cp -R ${PKG_DIR}/config/* ${INSTALL}/usr/config/hatari
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
# copy binary & start script
|
2022-03-20 12:23:52 +00:00
|
|
|
cp src/hatari ${INSTALL}/usr/bin/hatarisa
|
|
|
|
cp -R ${PKG_DIR}/scripts/start_hatarisa.sh ${INSTALL}/usr/bin/
|
|
|
|
chmod 0755 ${INSTALL}/usr/bin/start_hatarisa.sh
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|