distribution/packages/emulators/standalone/dosbox-x/package.mk

40 lines
1.4 KiB
Makefile
Raw Normal View History

2022-02-05 14:23:32 +00:00
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2020-present Shanti Gilbert (https://github.com/shantigilbert)
PKG_NAME="dosbox-x"
PKG_VERSION="684836fab51b9b4fc9d6616de126fc9a5bf21d59"
PKG_SHA256="c5caa65b39621907c417dc50633320f8a407206e46a1527b2e37c10a7baafa52"
PKG_LICENSE="GPLv2"
PKG_SITE="https://github.com/joncampbell123/dosbox-x"
2023-02-24 13:53:43 +00:00
PKG_URL="${PKG_SITE}/archive/${PKG_VERSION}.tar.gz"
2022-04-14 11:56:57 +00:00
PKG_DEPENDS_TARGET="toolchain linux glibc glib systemd dbus alsa-lib SDL2 SDL2_net SDL_sound libpng zlib libvorbis flac libogg fluidsynth munt"
2022-02-05 14:23:32 +00:00
PKG_LONGDESC="DOSBox-X fork of the DOSBox project."
PKG_TOOLCHAIN="autotools"
PKG_BUILD_FLAGS="+lto"
pre_configure_target() {
cd ${PKG_BUILD}
rm -rf .${TARGET_NAME}
PKG_CONFIGURE_OPTS_TARGET="--prefix=/usr \
--enable-core-inline \
--enable-dynrec \
--enable-unaligned_memory \
--disable-sdl \
--enable-sdl2 \
--enable-mt32 \
--with-sdl2-prefix=${SYSROOT_PREFIX}/usr"
}
pre_make_target() {
# Define DOSBox version
sed -e "s/SVN/SDL2/" -i ${PKG_BUILD}/config.h
}
post_makeinstall_target() {
# Create config directory & install config
mkdir -p ${INSTALL}/usr/config/game/configs/dosbox/
2022-02-05 14:23:32 +00:00
cp -a ${PKG_DIR}/scripts/* ${INSTALL}/usr/bin/
cp -a ${PKG_DIR}/config/* ${INSTALL}/usr/config/game/configs/dosbox/
2022-02-05 14:23:32 +00:00
}