distribution/packages/textproc/textviewer/package.mk

31 lines
863 B
Makefile
Raw Normal View History

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)
# Copyright (C) 2023-present - The JELOS Project (https://github.com/JustEnoughLinuxOS)
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"
PKG_DEPENDS_TARGET="toolchain 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"
if [ ! "${OPENGL}" = "no" ]; then
2022-08-27 20:22:17 +00:00
PKG_DEPENDS_TARGET+=" ${OPENGL} glu"
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
}