distribution/packages/graphics/glew/package.mk
fewtarius 334b2168b3
* Deprecate and remove gzdoom, lzdoom, ecwolf, and raze.
* Update a few base system packages.
* Update emulators and cores.
2023-01-10 17:11:33 -05:00

32 lines
920 B
Makefile

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2022-present BrooksyTech (https://github.com/brooksytech)
PKG_NAME="glew"
PKG_VERSION="2.2.0"
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"
PKG_SHORTDESC="GLEW - The OpenGL Extension Wrangler Library"
PKG_TOOLCHAIN="cmake"
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
pre_configure() {
PKG_CMAKE_SCRIPT=${PKG_BUILD}/build/cmake/CMakeLists.txt
}
pre_configure_target() {
PKG_CMAKE_OPTS_TARGET+=" -DBUILD_UTILS=OFF \
-DGLEW_REGAL=OFF \
-DGLEW_OSMESA=OFF \
-DGLEW_EGL=ON \
-DBUILD_SHARED_LIBS=ON"
}