2010-07-13 12:15:46 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2012-10-12 11:10:31 +00:00
|
|
|
PKG_NAME:=servald
|
2010-07-13 12:15:46 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_VERSION:=1
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2012-10-12 11:10:31 +00:00
|
|
|
define Package/servald
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=servald
|
2010-07-13 12:15:46 +00:00
|
|
|
endef
|
|
|
|
|
2012-10-12 11:10:31 +00:00
|
|
|
define Package/servald/description
|
|
|
|
Serval Distributed Numbering Architecture Reference Implementation
|
2010-07-13 12:15:46 +00:00
|
|
|
endef
|
|
|
|
|
2012-10-12 11:10:31 +00:00
|
|
|
define Build/Compile
|
|
|
|
mkdir -p $(PKG_BUILD_DIR)
|
|
|
|
$(CP) ./src/* $(PKG_BUILD_DIR)/
|
|
|
|
$(TARGET_CC) $(PKG_BUILD_DIR)/*.c -o $(PKG_BUILD_DIR)/servald
|
|
|
|
# $(MAKE) CC=$(TARGET_CC) -C $(PKG_BUILD_DIR)
|
2010-07-13 12:15:46 +00:00
|
|
|
endef
|
|
|
|
|
2012-10-12 11:10:31 +00:00
|
|
|
define Package/servald/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/servald $(1)/usr/bin
|
|
|
|
endef
|
2010-07-13 12:15:46 +00:00
|
|
|
|
2012-10-12 11:10:31 +00:00
|
|
|
$(eval $(call BuildPackage,servald))
|