mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2025-03-01 04:31:30 +00:00
*-config scripts must be installed in $TOOLCHAIN/bin to be reachable from PATH but point to sysroot.
41 lines
1.6 KiB
Makefile
41 lines
1.6 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
# Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
PKG_NAME="tntnet"
|
|
PKG_VERSION="2.2.1"
|
|
PKG_SHA256="c83170d08ef04c5868051e1c28c74b9562fe71e9e8263828e755ad5bd3547521"
|
|
PKG_LICENSE="GPL-2"
|
|
PKG_SITE="http://www.tntnet.org/"
|
|
PKG_URL="http://www.tntnet.org/download/${PKG_NAME}-${PKG_VERSION}.tar.gz"
|
|
PKG_DEPENDS_HOST="cxxtools:host zlib:host"
|
|
PKG_DEPENDS_TARGET="toolchain tntnet:host libtool cxxtools zlib"
|
|
PKG_LONGDESC="A web application server for C++."
|
|
|
|
PKG_CONFIGURE_OPTS_HOST="--disable-unittest \
|
|
--with-server=no \
|
|
--with-sdk=yes \
|
|
--with-demos=no \
|
|
--with-epoll=yes \
|
|
--with-ssl=no \
|
|
--with-stressjob=no"
|
|
|
|
PKG_CONFIGURE_OPTS_TARGET="--disable-unittest \
|
|
--with-sysroot=${SYSROOT_PREFIX} \
|
|
--with-server=no \
|
|
--with-sdk=no \
|
|
--with-demos=no \
|
|
--with-epoll=yes \
|
|
--with-ssl=no \
|
|
--with-stressjob=no"
|
|
|
|
post_makeinstall_target() {
|
|
rm -rf ${INSTALL}/usr/bin/${PKG_NAME}-config
|
|
cp ${PKG_NAME}-config ${TOOLCHAIN}/bin
|
|
sed -e "s:\(['= ]\)/usr:\\1${PKG_ORIG_SYSROOT_PREFIX}/usr:g" -i ${TOOLCHAIN}/bin/${PKG_NAME}-config
|
|
chmod +x ${TOOLCHAIN}/bin/${PKG_NAME}-config
|
|
|
|
rm -rf ${INSTALL}/usr/bin
|
|
rm -rf ${INSTALL}/usr/share
|
|
}
|