2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2021-present 351ELEC (https://github.com/351ELEC)
|
2022-03-18 10:50:46 +00:00
|
|
|
# Copyright (C) 2022-present Fewtarius
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
PKG_NAME="freej2me"
|
2022-06-30 10:41:38 +00:00
|
|
|
PKG_VERSION="c960ac26cf97123b772fd2b392bde044df5753fa"
|
|
|
|
PKG_SHA256="6ca3125fd1ade0b8053f965ef358765e1abdfe74b4b81332849a7629dd5346e9"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_REV="1"
|
|
|
|
PKG_ARCH="any"
|
|
|
|
PKG_SITE="https://github.com/hex007/freej2me"
|
2022-03-18 10:50:46 +00:00
|
|
|
PKG_URL="${PKG_SITE}/archive/${PKG_VERSION}.tar.gz"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain apache-ant:host"
|
|
|
|
PKG_PRIORITY="optional"
|
|
|
|
PKG_SECTION="libretro"
|
|
|
|
PKG_SHORTDESC="A free J2ME emulator with libretro, awt and sdl2 frontends."
|
|
|
|
PKG_LONGDESC="A free J2ME emulator with libretro, awt and sdl2 frontends."
|
|
|
|
PKG_TOOLCHAIN="make"
|
|
|
|
|
|
|
|
pre_configure_target() {
|
|
|
|
${TOOLCHAIN}/bin/ant
|
|
|
|
}
|
|
|
|
|
|
|
|
make_target() {
|
|
|
|
make -C ${PKG_BUILD}/src/libretro
|
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_target() {
|
2022-03-18 10:50:46 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/lib/libretro
|
|
|
|
cp ${PKG_BUILD}/src/libretro/freej2me_libretro.so ${INSTALL}/usr/lib/libretro/
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2022-03-18 10:50:46 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/config/game/freej2me
|
|
|
|
cp ${PKG_BUILD}/build/freej2me-lr.jar ${INSTALL}/usr/config/game/freej2me
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2022-03-18 10:50:46 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/bin
|
|
|
|
cp ${PKG_DIR}/freej2me.sh ${INSTALL}/usr/bin
|
|
|
|
chmod 0755 ${INSTALL}/usr/bin/freej2me.sh
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|