207f8d8f69
* box64, a5200-lr, atari800-lr, beetle-pce-fast-lr, beetle-pce-lr, beetle-psx-lr, bsnes-lr, package.mk, desmume-lr, dosbox-pure-lr, fbneo-lr, flycast-lr, genesis-plus-gx-lr, genesis-plus-gx-wide-lr, handy-lr, package.mk, mame-lr, mame2003-plus-lr, mupen64plus-nx-lr, opera-lr, pcsx_rearmed-lr, picodrive-lr, play-lr, ppsspp-lr, stella-lr, swanstation-lr, tic80-lr, cemu-sa, duckstation-sa, hatarisa, package.mk, ppsspp-sa, primehack, retroarch, scummvmsa, yuzu-sa, glsl-shaders, slang-shaders, and retroarch-joypads. * Fix pipewire package oops.
43 lines
1.7 KiB
Makefile
43 lines
1.7 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (C) 2018-present 5schatten (https://github.com/5schatten)
|
|
|
|
PKG_NAME="hatarisa"
|
|
PKG_VERSION="a3e4b6da1cdd75e74532ed79050b920a6df94301"
|
|
PKG_LICENSE="GPL"
|
|
PKG_SITE="https://github.com/hatari/hatari"
|
|
PKG_URL="https://github.com/hatari/hatari/archive/${PKG_VERSION}.tar.gz"
|
|
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" \
|
|
-DCAPSIMAGE_INCLUDE_DIR=${PKG_BUILD}/src/include \
|
|
-DCAPSIMAGE_LIBRARY=${PKG_BUILD}/libcapsimage.so.5.1"
|
|
|
|
# copy IPF Support Library include files
|
|
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}/
|
|
|
|
# add library search path for loading libcapsimage library
|
|
LDFLAGS="${LDFLAGS} -Wl,-rpath='${PKG_BUILD}'"
|
|
}
|
|
|
|
makeinstall_target() {
|
|
# create directories
|
|
mkdir -p ${INSTALL}/usr/bin
|
|
mkdir -p ${INSTALL}/usr/config/hatari
|
|
|
|
# copy config files
|
|
touch ${INSTALL}/usr/config/hatari/hatari.nvram
|
|
cp -R ${PKG_DIR}/config/* ${INSTALL}/usr/config/hatari
|
|
|
|
# copy binary & start script
|
|
cp src/hatari ${INSTALL}/usr/bin/hatarisa
|
|
cp -R ${PKG_DIR}/scripts/start_hatari.sh ${INSTALL}/usr/bin/
|
|
chmod 0755 ${INSTALL}/usr/bin/start_hatari.sh
|
|
}
|