libdnet: update to 1.14
Clean up the Makefile to modern standards. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
67830e8077
commit
f9d67865be
2 changed files with 13 additions and 50 deletions
|
@ -8,28 +8,28 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=libdnet
|
PKG_NAME:=libdnet
|
||||||
PKG_VERSION:=1.12
|
PKG_VERSION:=1.14
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://github.com/dugsong/libdnet/archive
|
PKG_SOURCE_URL:=https://codeload.github.com/ofalk/libdnet/tar.gz/$(PKG_NAME)-$(PKG_VERSION)?
|
||||||
PKG_HASH:=b6360659c93fa2e3cde9e0a1fc9c07bc4111f3448c5de856e095eb98315dd424
|
PKG_HASH:=592599c54a57102a177270f3a2caabda2c2ac7768b977d7458feba97da923dfe
|
||||||
|
|
||||||
PKG_FIXUP:=autoreconf
|
|
||||||
PKG_INSTALL:=1
|
|
||||||
|
|
||||||
PKG_LICENSE:=BSD
|
|
||||||
PKG_MAINTAINER:=Luka Perkov <luka@openwrt.org>
|
|
||||||
|
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_NAME)-$(PKG_VERSION)
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_NAME)-$(PKG_VERSION)
|
||||||
|
|
||||||
|
PKG_MAINTAINER:=Luka Perkov <luka@openwrt.org>
|
||||||
|
PKG_LICENSE:=BSD-3-Clause
|
||||||
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
|
|
||||||
|
PKG_INSTALL:=1
|
||||||
|
PKG_BUILD_PARALLEL:=1
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/libdnet
|
define Package/libdnet
|
||||||
SECTION:=libs
|
SECTION:=libs
|
||||||
CATEGORY:=Libraries
|
CATEGORY:=Libraries
|
||||||
TITLE:=Low-level network library
|
TITLE:=Low-level network library
|
||||||
URL:=http://sourceforge.net/projects/libdnet/
|
URL:=https://github.com/ofalk/libdnet
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/libdnet/description
|
define Package/libdnet/description
|
||||||
|
@ -37,19 +37,10 @@ define Package/libdnet/description
|
||||||
networking routines.
|
networking routines.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
TARGET_CFLAGS += $(FPIC)
|
|
||||||
|
|
||||||
CONFIGURE_ARGS += \
|
CONFIGURE_ARGS += \
|
||||||
--enable-shared \
|
|
||||||
--enable-static \
|
|
||||||
--without-check \
|
--without-check \
|
||||||
--without-python
|
--without-python \
|
||||||
|
--without-wpdpack
|
||||||
CONFIGURE_VARS += \
|
|
||||||
ac_cv_dnet_bsd_bpf=no
|
|
||||||
|
|
||||||
MAKE_FLAGS += \
|
|
||||||
CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE"
|
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
$(INSTALL_DIR) $(2)/bin
|
$(INSTALL_DIR) $(2)/bin
|
||||||
|
@ -79,11 +70,6 @@ define Package/libdnet/install
|
||||||
$(CP) \
|
$(CP) \
|
||||||
$(PKG_INSTALL_DIR)/usr/lib/libdnet.so.* \
|
$(PKG_INSTALL_DIR)/usr/lib/libdnet.so.* \
|
||||||
$(1)/usr/lib/
|
$(1)/usr/lib/
|
||||||
|
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
|
||||||
$(INSTALL_BIN) \
|
|
||||||
$(PKG_INSTALL_DIR)/usr/sbin/dnet \
|
|
||||||
$(1)/usr/sbin/
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,libdnet))
|
$(eval $(call BuildPackage,libdnet))
|
||||||
|
|
|
@ -1,23 +0,0 @@
|
||||||
--- a/dnet-config.in
|
|
||||||
+++ b/dnet-config.in
|
|
||||||
@@ -45,10 +45,18 @@ while test $# -gt 0; do
|
|
||||||
done
|
|
||||||
|
|
||||||
if test "$echo_cflags" = "yes"; then
|
|
||||||
- echo -I@includedir@
|
|
||||||
+ includes=
|
|
||||||
+ if test "@includedir@" != "/usr/include" ; then
|
|
||||||
+ includes=-I@includedir@
|
|
||||||
+ fi
|
|
||||||
+ echo $includes
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "$echo_libs" = "yes"; then
|
|
||||||
- echo -L@libdir@ -ldnet @LIBS@
|
|
||||||
+ libs=
|
|
||||||
+ if test "@libdir@" != "/usr/lib" ; then
|
|
||||||
+ libs=-I@libdir@
|
|
||||||
+ fi
|
|
||||||
+ echo $libs -ldnet @LIBS@
|
|
||||||
fi
|
|
||||||
|
|
Loading…
Reference in a new issue