summaryrefslogtreecommitdiff
path: root/libhubbub/Makefile
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2011-01-02 23:27:23 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2011-01-02 23:27:23 +0100
commit9352995934adec8059077af241c35ccd1573bd80 (patch)
tree60286e266b3b31b90b952ac37e12a1ebbcdd2eb6 /libhubbub/Makefile
parentef3b84d78197acbd45d73a9b1ae44b47b5904290 (diff)
parent880bca260c4ce91554a49b2475232cf5c0ffd447 (diff)
downloadqipackages-fork-9352995934adec8059077af241c35ccd1573bd80.tar.gz
Merge branch 'master' of git://projects.qi-hardware.com/openwrt-packagesHEADmaster
Conflicts: links/Makefile
Diffstat (limited to 'libhubbub/Makefile')
-rw-r--r--libhubbub/Makefile46
1 files changed, 46 insertions, 0 deletions
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))