distribution/packages/games/tools/libgo2/package.mk

30 lines
961 B
Makefile
Raw Normal View History

2022-02-05 14:23:32 +00:00
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2020-present Shanti Gilbert (https://github.com/shantigilbert)
PKG_NAME="libgo2"
PKG_VERSION="bc992566bb86f2fe0c8d981d4db46e2e2beb5b0e"
PKG_SHA256="89ad1cf229d581fa8e4498f4f4c526215176e79885e935bd7dc48c5872655f92"
PKG_ARCH="arm aarch64"
PKG_LICENSE="LGPL"
PKG_DEPENDS_TARGET="toolchain libevdev librga openal-soft"
2022-02-05 14:23:32 +00:00
PKG_SITE="https://github.com/OtherCrashOverride/libgo2"
PKG_URL="${PKG_SITE}/archive/${PKG_VERSION}.tar.gz"
2022-02-05 14:23:32 +00:00
PKG_LONGDESC="Support library for the ODROID-GO Advance "
PKG_TOOLCHAIN="make"
2022-02-12 22:33:21 +00:00
PKG_PATCH_DIRS+="${DEVICE}"
2022-02-05 14:23:32 +00:00
PKG_MAKE_OPTS_TARGET=" config=release ARCH= INCLUDES=-I${SYSROOT_PREFIX}/usr/include/libdrm -I${SYSROOT_PREFIX}/usr/include "
2022-02-05 14:23:32 +00:00
makeinstall_target() {
mkdir -p ${INSTALL}/usr/lib
cp libgo2.so ${INSTALL}/usr/lib
2022-02-05 14:23:32 +00:00
mkdir -p ${SYSROOT_PREFIX}/usr/include/go2
cp src/*.h ${SYSROOT_PREFIX}/usr/include/go2
2022-02-05 14:23:32 +00:00
mkdir -p ${SYSROOT_PREFIX}/usr/lib
cp libgo2.so ${SYSROOT_PREFIX}/usr/lib
2022-02-05 14:23:32 +00:00
}