Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=netifd
  3. PKG_VERSION:=2015-12-16
  4. PKG_RELEASE=$(PKG_SOURCE_VERSION)
  5. PKG_SOURCE_PROTO:=git
  6. PKG_SOURCE_URL:=http://git.openwrt.org/project/netifd.git
  7. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  8. PKG_SOURCE_VERSION:=245527193e90906451be35c2b8e972b8712ea6ab
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  10. PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
  11. # PKG_MIRROR_MD5SUM:=
  12. # CMAKE_INSTALL:=1
  13. PKG_LICENSE:=GPL-2.0
  14. PKG_LICENSE_FILES:=
  15. PKG_BUILD_PARALLEL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. include $(INCLUDE_DIR)/cmake.mk
  18. define Package/netifd
  19. SECTION:=base
  20. CATEGORY:=Base system
  21. DEPENDS:=+libuci +libnl-tiny +libubus +ubus +ubusd +jshn +libubox
  22. TITLE:=OpenWrt Network Interface Configuration Daemon
  23. endef
  24. TARGET_CFLAGS += \
  25. -I$(STAGING_DIR)/usr/include/libnl-tiny \
  26. -I$(STAGING_DIR)/usr/include
  27. CMAKE_OPTIONS += \
  28. -DLIBNL_LIBS=-lnl-tiny \
  29. -DDEBUG=1
  30. define Package/netifd/install
  31. $(INSTALL_DIR) $(1)/sbin
  32. $(INSTALL_BIN) $(PKG_BUILD_DIR)/netifd $(1)/sbin/
  33. $(CP) ./files/* $(1)/
  34. $(CP) $(PKG_BUILD_DIR)/scripts/* $(1)/lib/netifd/
  35. endef
  36. $(eval $(call BuildPackage,netifd))