57 lines
2.1 KiB
Makefile
57 lines
2.1 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2019-present Shanti Gilbert (https://github.com/shantigilbert)
|
|
|
|
PKG_NAME="advancemame"
|
|
PKG_VERSION="384e646234d17b01f89a0e3b38cfdea770d1a1d2"
|
|
PKG_SHA256="a15293ee964b951ae2f37886796ee1a7b1d14361202985e8e5644a7af170a541"
|
|
PKG_REV="1"
|
|
PKG_ARCH="any"
|
|
PKG_LICENSE="MAME"
|
|
PKG_SITE="https://github.com/amadvance/advancemame"
|
|
PKG_URL="https://github.com/amadvance/advancemame/archive/$PKG_VERSION.tar.gz"
|
|
PKG_SOURCE_DIR="advancemame-$PKG_VERSION*"
|
|
PKG_DEPENDS_TARGET="toolchain freetype slang alsa"
|
|
PKG_SECTION="emuelec/mod"
|
|
PKG_SHORTDESC="A MAME and MESS port with an advanced video support for Arcade Monitors, TVs, and PC Monitors "
|
|
PKG_LONGDESC="A MAME and MESS port with an advanced video support for Arcade Monitors, TVs, and PC Monitors "
|
|
PKG_IS_ADDON="no"
|
|
PKG_AUTORECONF="no"
|
|
PKG_TOOLCHAIN="make"
|
|
|
|
pre_configure_target() {
|
|
export CFLAGS="${CFLAGS} -fcommon"
|
|
sed -i "s|#include <slang.h>|#include <$SYSROOT_PREFIX/usr/include/slang.h>|" $PKG_BUILD/configure.ac
|
|
}
|
|
|
|
pre_make_target() {
|
|
VERSION="${PKG_VERSION:0:7}"
|
|
echo $VERSION > $PKG_BUILD/.version
|
|
}
|
|
|
|
make_target() {
|
|
cd $PKG_BUILD
|
|
./autogen.sh
|
|
./configure --prefix=/usr --datadir=/usr/share/ --datarootdir=/usr/share/ --host=armv8a-libreelec-linux --enable-fb --enable-freetype --with-freetype-prefix=$SYSROOT_PREFIX/usr/ --enable-slang
|
|
make mame
|
|
}
|
|
|
|
makeinstall_target() {
|
|
: not
|
|
}
|
|
|
|
post_make_target() {
|
|
mkdir -p $INSTALL/usr/share/advance
|
|
if [ "${DEVICE}" = "RG552" ]; then
|
|
cp -r $PKG_DIR/config/RG552/advmame.rc $INSTALL/usr/share/advance/advmame.rc
|
|
fi
|
|
mkdir -p $INSTALL/usr/bin
|
|
cp -r $PKG_DIR/bin/* $INSTALL/usr/bin
|
|
chmod +x $INSTALL/usr/bin/advmame.sh
|
|
cp -r $PKG_BUILD/obj/mame/linux/blend/advmame $INSTALL/usr/bin
|
|
cp -r $PKG_BUILD/support/category.ini $INSTALL/usr/share/advance
|
|
cp -r $PKG_BUILD/support/sysinfo.dat $INSTALL/usr/share/advance
|
|
cp -r $PKG_BUILD/support/history.dat $INSTALL/usr/share/advance
|
|
cp -r $PKG_BUILD/support/hiscore.dat $INSTALL/usr/share/advance
|
|
cp -r $PKG_BUILD/support/event.dat $INSTALL/usr/share/advance
|
|
CFLAGS=$OLDCFLAGS
|
|
}
|