diff --git a/packages/wayland/wayland/package.mk b/packages/wayland/wayland/package.mk new file mode 100644 index 0000000000..bdb7fd3b25 --- /dev/null +++ b/packages/wayland/wayland/package.mk @@ -0,0 +1,55 @@ +################################################################################ +# This file is part of LibreELEC - https://libreelec.tv +# Copyright (C) 2016-present Team LibreELEC +# +# LibreELEC is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# LibreELEC is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with LibreELEC. If not, see . +################################################################################ + +PKG_NAME="wayland" +PKG_VERSION="1.14.0" +PKG_SHA256="ed80cabc0961a759a42092e2c39aabfc1ec9a13c86c98bbe2b812f008da27ab8" +PKG_ARCH="any" +PKG_LICENSE="OSS" +PKG_SITE="https://wayland.freedesktop.org/" +PKG_URL="https://wayland.freedesktop.org/releases/${PKG_NAME}-${PKG_VERSION}.tar.xz" +PKG_DEPENDS_TARGET="toolchain wayland:host libxml2" +PKG_DEPENDS_HOST="libffi:host expat:host libxml2:host" +PKG_SECTION="wayland" +PKG_SHORTDESC="a display server protocol" +PKG_LONGDESC="a display server protocol" + +PKG_CONFIGURE_OPTS_HOST="--enable-shared \ + --disable-static \ + --disable-libraries \ + --disable-documentation \ + --with-gnu-ld" + +PKG_CONFIGURE_OPTS_TARGET="--with-sysroot=$SYSROOT_PREFIX \ + --with-host-scanner \ + --enable-shared \ + --disable-static \ + --enable-libraries \ + --disable-documentation \ + --with-gnu-ld" + +pre_configure_target() { + strip_lto +} + +post_makeinstall_target() { + rm -rf $INSTALL/usr/bin + rm -rf $INSTALL/usr/share + + cp $TOOLCHAIN/lib/pkgconfig/wayland-scanner.pc $SYSROOT_PREFIX/usr/lib/pkgconfig/ +}