2010-11-18 16:50:43 +02:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libparserutils
|
|
|
|
PKG_VERSION:=0.0.2
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-src.tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://www.netsurf-browser.org/projects/releases/
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libparserutils
|
2011-01-17 05:39:00 +02:00
|
|
|
MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc>
|
2010-11-18 16:50:43 +02:00
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=LibParserUtils has some built-in charset converters
|
|
|
|
URL:=http://www.netsurf-browser.org/projects/libparserutils/
|
2010-11-20 13:44:08 +02:00
|
|
|
DEPENDS:=
|
2010-11-18 16:50:43 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libparserutils/description
|
|
|
|
LibParserUtils has the following built-in charset converters. UTF-8, UTF-16 (platform-native endian), ISO-8859-n, Windows-125n, US-ASCII.
|
|
|
|
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) \
|
2010-11-18 16:50:43 +02:00
|
|
|
COMPONENT_TYPE=lib-shared \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
mkdir -p $(1)/usr/include
|
2010-11-19 05:07:47 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/local/include/* $(1)/usr/include/
|
2010-11-18 16:50:43 +02:00
|
|
|
mkdir -p $(1)/usr/lib
|
2010-11-19 05:07:47 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/local/lib/* $(1)/usr/lib/
|
2010-11-18 16:50:43 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libparserutils/install
|
2010-11-19 05:07:47 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/local/lib/libparserutils.so* $(1)/usr/lib/
|
2010-11-18 16:50:43 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libparserutils))
|