Root/libhubbub/Makefile

1include $(TOPDIR)/rules.mk
2
3PKG_NAME:=libhubbub
4PKG_VERSION:=0.0.2
5PKG_RELEASE:=1
6
7PKG_SOURCE:=hubbub-$(PKG_VERSION)-src.tar.gz
8PKG_SOURCE_URL:=http://www.netsurf-browser.org/projects/releases/
9PKG_BUILD_DIR:=$(BUILD_DIR)/hubbub-$(PKG_VERSION)
10
11include $(INCLUDE_DIR)/package.mk
12
13define Package/libhubbub
14    MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc>
15    SECTION:=libs
16    CATEGORY:=Libraries
17    TITLE:=Hubbub is an HTML5 compliant parsing library
18    URL:=http://www.netsurf-browser.org/projects/hubbub/
19    DEPENDS:=+libparserutils
20endef
21
22define Package/libhubbub/description
23    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.
24endef
25
26define Build/Compile
27    rm -rf $(PKG_INSTALL_DIR)
28    $(MAKE_VARS) $(MAKE) -C $(PKG_BUILD_DIR) \
29        $(MAKE_FLAGS) \
30        COMPONENT_TYPE=lib-shared \
31        DESTDIR="$(PKG_INSTALL_DIR)" \
32        all install
33endef
34
35define Build/InstallDev
36    mkdir -p $(1)/usr/include
37    $(CP) $(PKG_INSTALL_DIR)/usr/local/include/* $(1)/usr/include/
38    mkdir -p $(1)/usr/lib
39    $(CP) $(PKG_INSTALL_DIR)/usr/local/lib/* $(1)/usr/lib/
40endef
41
42define Package/libhubbub/install
43    $(INSTALL_DIR) $(1)/usr/lib
44    $(CP) $(PKG_INSTALL_DIR)/usr/local/lib/libhubbub.so* $(1)/usr/lib/
45endef
46
47$(eval $(call BuildPackage,libhubbub))
48

Archive Download this file



interactive