29 lines
961 B
Makefile
29 lines
961 B
Makefile
# 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"
|
|
PKG_SITE="https://github.com/OtherCrashOverride/libgo2"
|
|
PKG_URL="${PKG_SITE}/archive/${PKG_VERSION}.tar.gz"
|
|
PKG_LONGDESC="Support library for the ODROID-GO Advance "
|
|
PKG_TOOLCHAIN="make"
|
|
|
|
PKG_PATCH_DIRS+="${DEVICE}"
|
|
|
|
PKG_MAKE_OPTS_TARGET=" config=release ARCH= INCLUDES=-I${SYSROOT_PREFIX}/usr/include/libdrm -I${SYSROOT_PREFIX}/usr/include "
|
|
|
|
makeinstall_target() {
|
|
mkdir -p ${INSTALL}/usr/lib
|
|
cp libgo2.so ${INSTALL}/usr/lib
|
|
|
|
mkdir -p ${SYSROOT_PREFIX}/usr/include/go2
|
|
cp src/*.h ${SYSROOT_PREFIX}/usr/include/go2
|
|
|
|
mkdir -p ${SYSROOT_PREFIX}/usr/lib
|
|
cp libgo2.so ${SYSROOT_PREFIX}/usr/lib
|
|
}
|
|
|