2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2021-present Shanti Gilbert (https://github.com/shantigilbert)
|
2023-09-07 15:39:16 +00:00
|
|
|
# Copyright (C) 2023-present Fewtarius
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
PKG_NAME="textviewer"
|
2023-09-07 15:39:16 +00:00
|
|
|
PKG_VERSION="16d4c69"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LICENSE="MIT"
|
2023-09-07 15:39:16 +00:00
|
|
|
PKG_SITE="https://github.com/JustEnoughLinuxOS/TvTextViewer"
|
2023-02-24 13:53:43 +00:00
|
|
|
PKG_URL="${PKG_SITE}.git"
|
2023-09-04 16:18:14 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain dos2unix:host SDL2"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_SHORTDESC="Full-screen text viewer tool with gamepad controls"
|
|
|
|
PKG_TOOLCHAIN="make"
|
|
|
|
GET_HANDLER_SUPPORT="git"
|
|
|
|
|
2022-07-11 12:08:11 +00:00
|
|
|
if [ ! "${OPENGL}" = "no" ]; then
|
2022-08-27 20:22:17 +00:00
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGL} glu"
|
2022-07-11 12:08:11 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "${OPENGLES_SUPPORT}" = yes ]; then
|
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
|
|
|
|
fi
|
|
|
|
|
2022-02-05 14:23:32 +00:00
|
|
|
pre_configure_target() {
|
2022-02-12 03:47:34 +00:00
|
|
|
sed -i "s|sdl2-config|${SYSROOT_PREFIX}/usr/bin/sdl2-config|g" Makefile
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_target(){
|
2023-02-24 13:53:43 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/bin
|
|
|
|
cp text_viewer ${INSTALL}/usr/bin
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|