2018-07-16 20:45:36 +02:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
|
|
|
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
2016-01-15 23:32:41 +01:00
|
|
|
|
|
|
|
|
PKG_NAME="libdnet"
|
2021-01-09 13:13:23 +00:00
|
|
|
PKG_VERSION="1.14"
|
|
|
|
|
PKG_SHA256="592599c54a57102a177270f3a2caabda2c2ac7768b977d7458feba97da923dfe"
|
2016-01-15 23:32:41 +01:00
|
|
|
PKG_LICENSE="BSD"
|
2021-01-09 13:13:23 +00:00
|
|
|
PKG_SITE="https://github.com/ofalk/libdnet"
|
2021-01-19 19:34:12 +00:00
|
|
|
PKG_URL="https://github.com/ofalk/libdnet/archive/${PKG_NAME}-${PKG_VERSION}.tar.gz"
|
2016-01-15 23:32:41 +01:00
|
|
|
PKG_DEPENDS_TARGET="toolchain"
|
|
|
|
|
PKG_LONGDESC="A simplified, portable interface to several low-level networking routines"
|
2018-06-04 14:10:56 +02:00
|
|
|
PKG_TOOLCHAIN="autotools"
|
2018-02-23 14:02:16 +01:00
|
|
|
PKG_BUILD_FLAGS="+pic"
|
2016-01-15 23:32:41 +01:00
|
|
|
|
2023-07-22 15:04:23 +00:00
|
|
|
PKG_CONFIGURE_OPTS_TARGET="--enable-static \
|
2016-01-15 23:32:41 +01:00
|
|
|
--disable-shared \
|
2018-06-04 14:10:56 +02:00
|
|
|
--disable-python"
|
2018-06-11 18:28:03 +02:00
|
|
|
|
|
|
|
|
pre_configure_target() {
|
2021-01-19 19:34:12 +00:00
|
|
|
export CFLAGS+=" -I${PKG_BUILD}/include"
|
2018-06-11 18:28:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
post_makeinstall_target() {
|
2021-01-19 19:34:12 +00:00
|
|
|
cp ${SYSROOT_PREFIX}/usr/bin/dnet-config \
|
|
|
|
|
${TOOLCHAIN}/bin/dnet-config
|
2018-06-11 18:28:03 +02:00
|
|
|
}
|