distribution/packages/emulators/standalone/gzdoom-sa/zmusic/package.mk

47 lines
1.4 KiB
Makefile
Raw Normal View History

2023-06-14 16:49:04 +00:00
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2021-present 351ELEC (https://github.com/351ELEC)
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
2023-06-14 16:49:04 +00:00
PKG_NAME="zmusic"
2023-12-15 16:33:23 +00:00
PKG_VERSION="5ce525efc75a97d1391b46cca4def41a13ff1619"
2023-06-14 16:49:04 +00:00
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/coelckers/ZMusic"
PKG_URL="${PKG_SITE}.git"
2023-06-17 01:41:51 +00:00
PKG_DEPENDS_HOST="toolchain"
2023-06-17 02:00:56 +00:00
PKG_DEPENDS_TARGET="toolchain zmusic:host"
2023-06-14 16:49:04 +00:00
PKG_SHORTDESC="GZDoom's music system as a standalone library"
GET_HANDLER_SUPPORT="git"
PKG_TOOLCHAIN="cmake-make"
2023-06-17 00:55:20 +00:00
make_host() {
2023-06-17 01:06:30 +00:00
[ -d "${PKG_BUILD}/build" ] && rm -rf ${PKG_BUILD}/build
2023-06-17 00:55:20 +00:00
mkdir ${PKG_BUILD}/build
cd ${PKG_BUILD}/build
2023-06-17 01:09:23 +00:00
unset HOST_CMAKE_OPTS
2023-06-17 00:55:20 +00:00
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build .
}
2023-06-14 16:49:04 +00:00
make_target() {
2023-06-17 01:06:30 +00:00
[ -d "${PKG_BUILD}/build" ] && rm -rf ${PKG_BUILD}/build
2023-06-17 00:55:20 +00:00
mkdir ${PKG_BUILD}/build
cd ${PKG_BUILD}/build
2023-06-14 16:49:04 +00:00
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build .
}
2023-06-17 00:55:20 +00:00
makeinstall_host() {
mkdir -p ${TOOLCHAIN}/usr/{lib,include}
cp -f ${PKG_BUILD}/build/source/libzmusic* ${TOOLCHAIN}/usr/lib/
cp -f ${PKG_BUILD}/include/zmusic.h ${TOOLCHAIN}/usr/include
}
2023-06-14 16:49:04 +00:00
makeinstall_target() {
2023-06-17 00:19:29 +00:00
mkdir -p ${SYSROOT_PREFIX}/usr/{lib,include}
2023-06-17 00:55:20 +00:00
cp -f ${PKG_BUILD}/build/source/libzmusic* ${SYSROOT_PREFIX}/usr/lib/
2023-06-17 00:19:29 +00:00
cp -f ${PKG_BUILD}/include/zmusic.h ${SYSROOT_PREFIX}/usr/include
mkdir -p ${INSTALL}/usr/lib
cp -f ${PKG_BUILD}/build/source/libzmusic* ${INSTALL}/usr/lib
2023-06-14 16:49:04 +00:00
}