Makefile 871 B

1234567891011121314151617181920212223242526272829303132
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=l3roamd
  3. PKG_VERSION:=1
  4. PKG_SOURCE_PROTO:=git
  5. PKG_SOURCE_URL=https://github.com/tcatm/l3roamd.git
  6. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  7. # this is master from april 14th
  8. PKG_SOURCE_VERSION:=master
  9. #PKG_SOURCE_VERSION:=14e87caa275be2432ae0fcc7242742946851d327
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  11. #PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
  12. CMAKE_OPTIONS += I-DCMAKE_BUILD_TYPE:STRING=MINSIZEREL
  13. include $(INCLUDE_DIR)/package.mk
  14. include $(INCLUDE_DIR)/cmake.mk
  15. define Package/l3roamd
  16. SECTION:=net
  17. CATEGORY:=Network
  18. TITLE:=The layer 3 roaming daemon
  19. DEPENDS:=+libnl-tiny +kmod-tun +librt +libpthread
  20. endef
  21. define Package/l3roamd/install
  22. $(INSTALL_DIR) $(1)/usr/bin
  23. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/l3roamd $(1)/usr/bin/
  24. endef
  25. $(eval $(call BuildPackage,l3roamd))