mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-11-22 02:16:19 +00:00
dc28cd2250
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
30 lines
1022 B
Makefile
30 lines
1022 B
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
PKG_NAME="glew"
|
|
PKG_VERSION="2.2.0"
|
|
PKG_SHA256="d4fc82893cfb00109578d0a1a2337fb8ca335b3ceccf97b97e5cc7f08e4353e1"
|
|
PKG_LICENSE="BSD"
|
|
PKG_SITE="http://glew.sourceforge.net/"
|
|
PKG_URL="${SOURCEFORGE_SRC}/glew/glew/${PKG_VERSION}/${PKG_NAME}-${PKG_VERSION}.tgz"
|
|
PKG_DEPENDS_TARGET="toolchain libX11"
|
|
PKG_LONGDESC="A cross-platform C/C++ extension loading library."
|
|
|
|
make_target() {
|
|
make CC="${CC}" LD="${CC}" AR="${AR}" \
|
|
POPT="${CFLAGS}" LDFLAGS.EXTRA="${LDFLAGS}" \
|
|
GLEW_DEST="/usr" LIBDIR="/usr/lib" lib/libGLEW.a glew.pc
|
|
}
|
|
|
|
makeinstall_target() {
|
|
mkdir -p ${SYSROOT_PREFIX}/usr/lib
|
|
cp -PR lib/libGLEW.a ${SYSROOT_PREFIX}/usr/lib
|
|
|
|
mkdir -p ${SYSROOT_PREFIX}/usr/lib/pkgconfig
|
|
cp -PR glew.pc ${SYSROOT_PREFIX}/usr/lib/pkgconfig
|
|
|
|
mkdir -p ${SYSROOT_PREFIX}/usr/include
|
|
cp -PR include/GL ${SYSROOT_PREFIX}/usr/include
|
|
}
|