Bladeren bron

jshon and jansson Makefiles

Danja Vasiliev 9 jaren geleden
bovenliggende
commit
015094a833
2 gewijzigde bestanden met toevoegingen van 88 en 0 verwijderingen
  1. 47 0
      customfeed/jansson/Makefile
  2. 41 0
      customfeed/jshon/Makefile

+ 47 - 0
customfeed/jansson/Makefile

@@ -0,0 +1,47 @@
+#
+# Copyright (C) 2015 Superglue
+#
+
+include $(TOPDIR)/rules.mk
+
+SOURCE_ROOT_DIR:=$(TOPDIR)/..
+
+PKG_NAME:=jansson
+PKG_VERSION:=2.2
+PKG_RELEASE:=1
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+PKG_BUILD_PARALLEL:=1
+
+include $(INCLUDE_DIR)/package.mk
+
+PKG_INSTALL=1
+
+# Custom variable in order to copy straight from source tree into build tree
+PKG_LOCAL_SOURCE_DIR:=$(TOPDIR)/../jansson
+PKG_UNPACK:=$(CP) -r $(PKG_LOCAL_SOURCE_DIR)/* $(PKG_BUILD_DIR)
+
+define Package/jansson
+	SECTION:=jansson
+	CATEGORY:=Superglue
+	TITLE:=jansson
+	MAINTAINER:=Superglue
+endef
+
+CONFIGURE_ARGS+= LIBS="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib"
+
+define Package/jansson/description
+  jansson - C library for encoding, decoding and manipulating JSON data
+endef
+
+define Build/InstallDev
+	$(INSTALL_DIR) $(1)/usr/{lib,include}
+	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libjansson* $(1)/usr/lib
+	$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
+endef
+
+define Package/jansson/install
+	$(INSTALL_DIR) $(1)/usr/lib/
+	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libjansson*so* $(1)/usr/lib/
+endef
+
+$(eval $(call BuildPackage,jansson))

+ 41 - 0
customfeed/jshon/Makefile

@@ -0,0 +1,41 @@
+#
+# Copyright (C) 2015 Superglue
+#
+
+include $(TOPDIR)/rules.mk
+
+SOURCE_ROOT_DIR:=$(TOPDIR)/..
+
+PKG_NAME:=jshon
+PKG_VERSION:=0.1
+PKG_RELEASE:=1
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+PKG_BUILD_PARALLEL:=1
+
+PKG_BUILD_DEPENDS:=jansson
+
+include $(INCLUDE_DIR)/package.mk
+
+# Custom variable in order to copy straight from source tree into build tree
+PKG_LOCAL_SOURCE_DIR:=$(TOPDIR)/../jshon/
+PKG_UNPACK:=$(CP) -r $(PKG_LOCAL_SOURCE_DIR)/* $(PKG_BUILD_DIR)
+
+define Package/jshon
+  SECTION:=jshon
+  CATEGORY:=Superglue
+  TITLE:=jshon
+  DEPENDS:=+jansson
+  MAINTAINER:=Superglue
+endef
+
+
+define Package/jshon/description
+   jshon - parses, reads and creates JSON
+endef
+
+define Package/jshon/install
+	$(INSTALL_DIR) $(1)/usr/bin/
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/jshon $(1)/usr/bin/
+endef
+
+$(eval $(call BuildPackage,jshon,+jansson))