1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-28 19:44:04 +02:00
openwrt-packages/libhubbub/Makefile

48 lines
1.3 KiB
Makefile
Raw Normal View History

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
2011-01-17 05:39:00 +02:00
MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc>
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Hubbub is an HTML5 compliant parsing library
URL:=http://www.netsurf-browser.org/projects/hubbub/
2010-11-20 13:44:08 +02:00
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)
2010-11-20 13:44:08 +02:00
$(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))