distribution/packages/multimedia/gmu/package.mk

40 lines
1 KiB
Makefile
Raw Normal View History

2023-07-15 23:22:41 +00:00
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2023-present Fewtarius
PKG_NAME="gmu"
PKG_VERSION="cf21c3f"
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"
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() {
mkdir -p ${INSTALL}/usr/config/gmu/playlists
2023-07-15 23:22:41 +00:00
cp -f ${PKG_DIR}/config/gmu.conf ${INSTALL}/usr/config/gmu
mkdir -p ${INSTALL}/usr/bin
cp -f ${PKG_DIR}/scripts/start_gmu.sh ${INSTALL}/usr/bin
chmod +x ${INSTALL}/usr/bin/start_gmu.sh
ln -sf /usr/bin/start_gmu.sh "${INSTALL}/usr/config/gmu/playlists/Start Music Player.sh"
2023-07-15 23:22:41 +00:00
}