OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Commit Details
Date: | 2010-11-18 15:50:43 (13 years 4 months ago) |
---|---|
Author: | Xiangfu Liu |
Commit: | 2b8e304533c1ed0cb318d05275255ec68cdf316e |
Message: | add libparserutils Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc> |
Files: |
libparserutils/Makefile (1 diff) |
Change Details
libparserutils/Makefile | ||
---|---|---|
1 | include $(TOPDIR)/rules.mk | |
2 | ||
3 | ||
4 | PKG_NAME:=libparserutils | |
5 | PKG_VERSION:=0.0.2 | |
6 | PKG_RELEASE:=1 | |
7 | ||
8 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-src.tar.gz | |
9 | PKG_SOURCE_URL:=http://www.netsurf-browser.org/projects/releases/ | |
10 | PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) | |
11 | ||
12 | include $(INCLUDE_DIR)/package.mk | |
13 | ||
14 | define Package/libparserutils | |
15 | SECTION:=libs | |
16 | CATEGORY:=Libraries | |
17 | TITLE:=LibParserUtils has some built-in charset converters | |
18 | URL:=http://www.netsurf-browser.org/projects/libparserutils/ | |
19 | endef | |
20 | ||
21 | define Package/libparserutils/description | |
22 | LibParserUtils has the following built-in charset converters. UTF-8, UTF-16 (platform-native endian), ISO-8859-n, Windows-125n, US-ASCII. | |
23 | endef | |
24 | ||
25 | define Build/Compile | |
26 | rm -rf $(PKG_INSTALL_DIR) | |
27 | $(MAKE) -C $(PKG_BUILD_DIR) \ | |
28 | COMPONENT_TYPE=lib-shared \ | |
29 | DESTDIR="$(PKG_INSTALL_DIR)" \ | |
30 | all install | |
31 | endef | |
32 | ||
33 | ||
34 | define Build/InstallDev | |
35 | mkdir -p $(1)/usr/include | |
36 | #$(CP) $(PKG_INSTALL_DIR)/usr/local/include/physfs.h $(1)/usr/include/ | |
37 | mkdir -p $(1)/usr/lib | |
38 | #$(CP) $(PKG_INSTALL_DIR)/usr/local/lib/libparserutils.so* $(1)/usr/lib/ | |
39 | endef | |
40 | ||
41 | define Package/libparserutils/install | |
42 | #$(INSTALL_DIR) $(1)/usr/lib | |
43 | #$(CP) $(PKG_BUILD_DIR)/libparserutils.so* $(1)/usr/lib/ | |
44 | endef | |
45 | ||
46 | $(eval $(call BuildPackage,libparserutils)) |