enable netifd by default and add its config variable to PKG_CONFIG_DEPENDS in a few...
[openwrt/svn-archive/archive.git] / package / netifd / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=netifd
4 PKG_VERSION:=2012-05-14
5 PKG_RELEASE=$(PKG_SOURCE_VERSION)
6
7 PKG_SOURCE_PROTO:=git
8 PKG_SOURCE_URL:=git://nbd.name/luci2/netifd.git
9 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
10 PKG_SOURCE_VERSION:=3d49dba94c7a2ebaa8626acf81ca74a22c7784f7
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
12 # PKG_MIRROR_MD5SUM:=
13 # CMAKE_INSTALL:=1
14
15 include $(INCLUDE_DIR)/package.mk
16 include $(INCLUDE_DIR)/cmake.mk
17
18 define Package/netifd
19 SECTION:=base
20 CATEGORY:=Base system
21 DEPENDS:=+libuci +libnl-tiny +libubus +ubus +ubusd +jshn @!DISABLE_NETIFD
22 TITLE:=OpenWrt Network Interface Configuration Daemon
23 endef
24
25 TARGET_CFLAGS += \
26 -I$(STAGING_DIR)/usr/include/libnl-tiny \
27 -I$(STAGING_DIR)/usr/include
28
29 CMAKE_OPTIONS += \
30 -DLIBNL_LIBS=-lnl-tiny \
31 -DDEBUG=1
32
33 define Package/netifd/install
34 $(INSTALL_DIR) $(1)/sbin
35 $(INSTALL_BIN) $(PKG_BUILD_DIR)/netifd $(1)/sbin/
36 $(CP) ./files/* $(1)/
37 $(CP) $(PKG_BUILD_DIR)/dummy/netifd-proto.sh $(1)/lib/netifd/
38 endef
39
40 $(eval $(call BuildPackage,netifd))