From 9aaeb4623d3ff5746e665bc17914eefd292b7dcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20K=C3=BChling?= Date: Sun, 2 Jan 2011 15:19:00 +0100 Subject: New OpenWrt package for GNU Octave. Experimental/probably still broken. Work in progress. Committing it as compilation seems to take forever. Not sure whether I can finish this within a few days. --- libhubbub/Makefile | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 libhubbub/Makefile (limited to 'libhubbub/Makefile') diff --git a/libhubbub/Makefile b/libhubbub/Makefile new file mode 100644 index 0000000..89466cb --- /dev/null +++ b/libhubbub/Makefile @@ -0,0 +1,46 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=libhubbub +PKG_VERSION:=0.0.2 +PKG_RELEASE:=1 + +PKG_SOURCE:=hubbub-$(PKG_VERSION)-src.tar.gz +PKG_SOURCE_URL:=http://www.netsurf-browser.org/projects/releases/ +PKG_BUILD_DIR:=$(BUILD_DIR)/hubbub-$(PKG_VERSION) + +include $(INCLUDE_DIR)/package.mk + +define Package/libhubbub + SECTION:=libs + CATEGORY:=Libraries + TITLE:=Hubbub is an HTML5 compliant parsing library + URL:=http://www.netsurf-browser.org/projects/hubbub/ + DEPENDS:=+libparserutils +endef + +define Package/libhubbub/description + Hubbub is an HTML5 compliant parsing library, written in C. It was developed as part of the NetSurf project and is available for use by other software under the MIT licence. +endef + +define Build/Compile + rm -rf $(PKG_INSTALL_DIR) + $(MAKE_VARS) $(MAKE) -C $(PKG_BUILD_DIR) \ + $(MAKE_FLAGS) \ + COMPONENT_TYPE=lib-shared \ + DESTDIR="$(PKG_INSTALL_DIR)" \ + all install +endef + +define Build/InstallDev + mkdir -p $(1)/usr/include + $(CP) $(PKG_INSTALL_DIR)/usr/local/include/* $(1)/usr/include/ + mkdir -p $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/local/lib/* $(1)/usr/lib/ +endef + +define Package/libhubbub/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/local/lib/libhubbub.so* $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,libhubbub)) -- cgit v1.2.3