2023-07-15 23:22:41 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
2023-10-24 16:00:57 +00:00
|
|
|
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
2023-07-15 23:22:41 +00:00
|
|
|
|
|
|
|
PKG_NAME="gmu"
|
2023-12-15 16:33:23 +00:00
|
|
|
PKG_VERSION="3aed18be8a50873ccfb31d2b135b0d22442ded59"
|
2023-07-15 23:22:41 +00:00
|
|
|
PKG_LICENSE="GPLv2"
|
|
|
|
PKG_SITE="https://github.com/jhe2/gmu"
|
|
|
|
PKG_URL="${PKG_SITE}.git"
|
|
|
|
PKG_DEPENDS_TARGET="toolchain SDL2 opus mpg123 libvorbis flac speex"
|
|
|
|
PKG_LONGDESC="The Gmu Music Player"
|
|
|
|
PKG_TOOLCHAIN="configure"
|
|
|
|
|
2023-07-17 12:42:18 +00:00
|
|
|
if [ "${VULKAN_SUPPORT}" = "yes" ]
|
|
|
|
then
|
|
|
|
PKG_PATCH_DIRS+=" vulkan"
|
|
|
|
fi
|
|
|
|
|
2023-07-15 23:22:41 +00:00
|
|
|
configure_target() {
|
|
|
|
export LDFLAGS="${LDFLAGS} -lreadline -lncursesw -ltinfow"
|
|
|
|
export TARGET_CFLAGS="${TARGET_CFLAGS} -fcommon"
|
|
|
|
export SDL2CONFIG=${SYSROOT_PREFIX}/usr/bin/sdl2-config
|
|
|
|
cd ${PKG_BUILD}
|
|
|
|
./configure --enable=medialib
|
|
|
|
}
|
|
|
|
|
|
|
|
make_target() {
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
post_makeinstall_target() {
|
2023-07-16 20:17:01 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/config/gmu/playlists
|
2023-07-26 21:22:45 +00:00
|
|
|
cp -f ${PKG_DIR}/config/* ${INSTALL}/usr/config/gmu
|
2023-07-15 23:22:41 +00:00
|
|
|
|
|
|
|
mkdir -p ${INSTALL}/usr/bin
|
|
|
|
cp -f ${PKG_DIR}/scripts/start_gmu.sh ${INSTALL}/usr/bin
|
|
|
|
chmod +x ${INSTALL}/usr/bin/start_gmu.sh
|
2023-07-16 20:17:01 +00:00
|
|
|
|
|
|
|
ln -sf /usr/bin/start_gmu.sh "${INSTALL}/usr/config/gmu/playlists/Start Music Player.sh"
|
2023-07-15 23:22:41 +00:00
|
|
|
}
|