gluon/package/gluon-mesh-olsrd/Makefile
Maciej Krüger 087a6afacf rest
2022-08-11 11:13:43 +02:00

57 lines
1.3 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=gluon-mesh-olsrd
PKG_VERSION=1
PKG_BUILD_DEPENDS += libjson-c
include ../gluon.mk
define Package/gluon-mesh-olsrd
TITLE:=olsrd mesh
DEPENDS:= \
+gluon-core \
+kmod-macvlan \
@IPV6 \
+olsrd \
+oonf-olsrd2 \
+firewall \
+libgluonutil \
+libjson-c \
+libubox +libuclient \
+olsrd-mod-jsoninfo \
+olsrd-mod-httpinfo \
+olsrd-mod-txtinfo \
+liblua \
+ip-full \
+gluon-layer3-common \
+gluon-l3roamd \
+gluon-radvd \
+lua-jsonc
PROVIDES:=gluon-mesh-provider
endef
define Package/gluon-mesh-olsrd/install
$(Gluon/Build/Install)
$(INSTALL_DIR) $(1)/usr/lib/lua/gluon
$(INSTALL_BIN) $(PKG_BUILD_DIR)/olsrd.so $(1)/usr/lib/lua/gluon/
$(INSTALL_DIR) $(1)/usr/lib/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/libolsrdhelper.so $(1)/usr/lib/
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/lib/lua/gluon
$(INSTALL_BIN) $(PKG_BUILD_DIR)/olsrd.so $(1)/usr/lib/lua/gluon/
$(INSTALL_DIR) $(1)/usr/lib/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/libolsrdhelper.so $(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/include/gluon-mesh-olsrd
$(INSTALL_BIN) $(PKG_BUILD_DIR)/libolsrdhelper.h $(1)/usr/include/gluon-mesh-olsrd/
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/libolsrdhelper.pc $(1)/usr/lib/pkgconfig/
endef
$(eval $(call BuildPackageGluon,gluon-mesh-olsrd))