2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
2023-10-24 13:59:09 +00:00
|
|
|
# Copyright (C) 2022-present - The JELOS Project (https://github.com/JustEnoughLinuxOS)
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
PKG_NAME="glew"
|
2022-07-01 18:56:04 +00:00
|
|
|
PKG_VERSION="2.2.0"
|
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-10-05 21:52:20 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain"
|
2022-09-15 20:59:11 +00:00
|
|
|
PKG_SHORTDESC="GLEW - The OpenGL Extension Wrangler Library"
|
|
|
|
PKG_TOOLCHAIN="cmake"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2022-10-06 09:59:09 +00:00
|
|
|
if [ "${DISPLAYSERVER}" = "wl" ]; then
|
|
|
|
PKG_DEPENDS_TARGET+=" wayland ${WINDOWMANAGER} xorg-server xrandr libXi libX11"
|
|
|
|
PKG_CMAKE_OPTS_TARGET+=" -DGLEW_X11=ON"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! "${OPENGL}" = "no" ]; then
|
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGL} glu libglvnd"
|
|
|
|
fi
|
|
|
|
|
2022-09-15 20:59:11 +00:00
|
|
|
pre_configure() {
|
|
|
|
PKG_CMAKE_SCRIPT=${PKG_BUILD}/build/cmake/CMakeLists.txt
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|
|
|
|
|
2022-09-15 20:59:11 +00:00
|
|
|
pre_configure_target() {
|
2022-10-05 21:52:20 +00:00
|
|
|
PKG_CMAKE_OPTS_TARGET+=" -DBUILD_UTILS=OFF \
|
|
|
|
-DGLEW_REGAL=OFF \
|
|
|
|
-DGLEW_OSMESA=OFF \
|
|
|
|
-DGLEW_EGL=ON \
|
|
|
|
-DBUILD_SHARED_LIBS=ON"
|
|
|
|
}
|