include $(TOPDIR)/rules.mk PKG_NAME:=uthash PKG_VERSION:=2.0.2 PKG_RELEASE=$(PKG_SOURCE_VERSION) PKG_SOURCE_PROTO:=git PKG_SOURCE_URL=https://github.com/troydhanson/uthash.git PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) PKG_SOURCE_VERSION:=30eb2ea184e369febebf147594b4ded432d21a5e PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz PKG_MIRROR_MD5SUM:= CMAKE_INSTALL:=1 PKG_LICENSE:=BSD PKG_LICENSE_FILES:=LICENSE PKG_MAINTAINER:=Troy D. Hanson, Arthur O'Dwyer include $(BUILD_DIR)/package.mk CMAKE_OPTIONS = define Package/uthash SECTION:=uthash CATEGORY:=Libraries TITLE:=A simple linux c hash table support many data structs ABI_VERSION:=$(PKG_VERSION) DEPENDS:= endef define Package/uthash/description This software supports these operations on items in a hash table: 1. add/replace 2. find 3. delete 4. count 5. iterate 6. sort endef define Build/Compile endef define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include/uthash $(INSTALL_DATA) $(COMPILE_DIR)/$(PKG_SOURCE_SUBDIR)/include/*.h $(1)/usr/include/uthash endef define Package/uthash/install endef $(eval $(call BuildPackage,uthash))