mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2024-11-22 17:52:27 +02:00
add libparserutils
Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
This commit is contained in:
parent
0a2704cba6
commit
2b8e304533
46
libparserutils/Makefile
Normal file
46
libparserutils/Makefile
Normal file
@ -0,0 +1,46 @@
|
||||
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
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
TITLE:=LibParserUtils has some built-in charset converters
|
||||
URL:=http://www.netsurf-browser.org/projects/libparserutils/
|
||||
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)
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||
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/physfs.h $(1)/usr/include/
|
||||
mkdir -p $(1)/usr/lib
|
||||
#$(CP) $(PKG_INSTALL_DIR)/usr/local/lib/libparserutils.so* $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Package/libparserutils/install
|
||||
#$(INSTALL_DIR) $(1)/usr/lib
|
||||
#$(CP) $(PKG_BUILD_DIR)/libparserutils.so* $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,libparserutils))
|
Loading…
Reference in New Issue
Block a user