Root/libcss/Makefile

1include $(TOPDIR)/rules.mk
2
3PKG_NAME:=libcss
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/libcss
14    MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc>
15    SECTION:=libs
16    CATEGORY:=Libraries
17    TITLE:=LibCSS is a CSS parser and selection engine, written in C
18    URL:=http://www.netsurf-browser.org/projects/libcss/
19    DEPENDS:=+libparserutils +libwapcaplet
20endef
21
22define Package/libcss/description
23    LibCSS is a CSS parser and selection engine, written in C. It aims to parse the forward compatible CSS grammar. It was developed as part of the NetSurf project
24endef
25
26define Build/Compile
27    rm -rf $(PKG_INSTALL_DIR)
28    $(MAKE_VARS) $(MAKE) -C $(PKG_BUILD_DIR) \
29        $(MAKE_FLAGS) \
30        WARNFLAGS="" \
31        COMPONENT_TYPE=lib-shared \
32        DESTDIR="$(PKG_INSTALL_DIR)" \
33        all install
34endef
35
36define Build/InstallDev
37    mkdir -p $(1)/usr/include
38    $(CP) $(PKG_INSTALL_DIR)/usr/local/include/* $(1)/usr/include/
39    mkdir -p $(1)/usr/lib
40    $(CP) $(PKG_INSTALL_DIR)/usr/local/lib/* $(1)/usr/lib/
41endef
42
43define Package/libcss/install
44    $(INSTALL_DIR) $(1)/usr/lib
45    $(CP) $(PKG_INSTALL_DIR)/usr/local/lib/libcss.so* $(1)/usr/lib/
46endef
47
48$(eval $(call BuildPackage,libcss))
49

Archive Download this file



interactive