waylandpp: added host build & OpenGL/OpenGLES dependencies

This commit is contained in:
SupervisedThinking 2021-11-04 16:04:08 +01:00
parent af89c0fb66
commit 302c3c7f37

View File

@ -7,9 +7,18 @@ PKG_SHA256="e7f486165d3568c3558b5c7099133aea4a285b82820eeafad329fc10271c654d"
PKG_LICENSE="GPL" PKG_LICENSE="GPL"
PKG_SITE="https://github.com/NilsBrause/waylandpp" PKG_SITE="https://github.com/NilsBrause/waylandpp"
PKG_URL="https://github.com/NilsBrause/waylandpp/archive/${PKG_VERSION}.tar.gz" PKG_URL="https://github.com/NilsBrause/waylandpp/archive/${PKG_VERSION}.tar.gz"
PKG_DEPENDS_HOST="toolchain:host pugixml:host"
PKG_DEPENDS_TARGET="toolchain pugixml:host waylandpp:host" PKG_DEPENDS_TARGET="toolchain pugixml:host waylandpp:host"
PKG_LONGDESC="Wayland C++ bindings" PKG_LONGDESC="Wayland C++ bindings"
configure_package() {
if [ "${OPENGL_SUPPORT}" = "yes" ]; then
PKG_DEPENDS_TARGET+=" ${OPENGL}"
elif [ "${OPENGLES_SUPPORT}" = "yes" ]; then
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
fi
}
PKG_CMAKE_OPTS_HOST="-DBUILD_SCANNER=ON \ PKG_CMAKE_OPTS_HOST="-DBUILD_SCANNER=ON \
-DBUILD_LIBRARIES=OFF" -DBUILD_LIBRARIES=OFF"