Root/libparserutils/Makefile

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

Archive Download this file



interactive