distribution/packages/graphics/glew/package.mk

30 lines
1,022 B
Makefile
Raw Normal View History

2022-02-05 14:23:32 +00:00
# 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"
2022-07-01 18:56:04 +00:00
PKG_VERSION="2.2.0"
PKG_SHA256="d4fc82893cfb00109578d0a1a2337fb8ca335b3ceccf97b97e5cc7f08e4353e1"
2022-02-05 14:23:32 +00:00
PKG_LICENSE="BSD"
PKG_SITE="http://glew.sourceforge.net/"
2022-07-01 18:56:04 +00:00
PKG_URL="${SOURCEFORGE_SRC}/glew/glew/${PKG_VERSION}/${PKG_NAME}-${PKG_VERSION}.tgz"
2022-02-05 14:23:32 +00:00
PKG_DEPENDS_TARGET="toolchain libX11"
PKG_LONGDESC="A cross-platform C/C++ extension loading library."
make_target() {
2022-07-01 18:56:04 +00:00
make CC="${CC}" LD="${CC}" AR="${AR}" \
POPT="${CFLAGS}" LDFLAGS.EXTRA="${LDFLAGS}" \
2022-02-05 14:23:32 +00:00
GLEW_DEST="/usr" LIBDIR="/usr/lib" lib/libGLEW.a glew.pc
}
makeinstall_target() {
2022-07-01 18:56:04 +00:00
mkdir -p ${SYSROOT_PREFIX}/usr/lib
cp -PR lib/libGLEW.a ${SYSROOT_PREFIX}/usr/lib
2022-02-05 14:23:32 +00:00
2022-07-01 18:56:04 +00:00
mkdir -p ${SYSROOT_PREFIX}/usr/lib/pkgconfig
cp -PR glew.pc ${SYSROOT_PREFIX}/usr/lib/pkgconfig
2022-02-05 14:23:32 +00:00
2022-07-01 18:56:04 +00:00
mkdir -p ${SYSROOT_PREFIX}/usr/include
cp -PR include/GL ${SYSROOT_PREFIX}/usr/include
2022-02-05 14:23:32 +00:00
}