Root/libcss/Makefile

1include $(TOPDIR)/rules.mk
2
3PKG_NAME:=libcss
4PKG_VERSION:=0.1.2
5PKG_RELEASE:=1
6
7PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-src.tar.gz
8PKG_SOURCE_URL:=http://download.netsurf-browser.org/libs/releases/
9PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
10PKG_MD5SUM:=6e9dd7ed53113fc42fa1d20b3d202475
11
12include $(INCLUDE_DIR)/package.mk
13
14define Package/libcss
15    MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc>
16    SECTION:=libs
17    CATEGORY:=Libraries
18    TITLE:=LibCSS is a CSS parser and selection engine, written in C
19    URL:=http://www.netsurf-browser.org/projects/libcss/
20    DEPENDS:=+libparserutils +libwapcaplet
21endef
22
23define Package/libcss/description
24    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
25endef
26
27define Build/Compile
28    rm -rf $(PKG_INSTALL_DIR)
29    $(MAKE_VARS) $(MAKE) -C $(PKG_BUILD_DIR) \
30        $(MAKE_FLAGS) \
31        WARNFLAGS="" \
32        COMPONENT_TYPE=lib-shared \
33        DESTDIR="$(PKG_INSTALL_DIR)" \
34        HOST_CC="$(HOSTCC)" \
35        all install
36endef
37
38define Build/InstallDev
39    mkdir -p $(1)/usr/include
40    $(CP) $(PKG_INSTALL_DIR)/usr/local/include/* $(1)/usr/include/
41    mkdir -p $(1)/usr/lib
42    $(CP) $(PKG_INSTALL_DIR)/usr/local/lib/* $(1)/usr/lib/
43endef
44
45define Package/libcss/install
46    $(INSTALL_DIR) $(1)/usr/lib
47    $(CP) $(PKG_INSTALL_DIR)/usr/local/lib/libcss.so* $(1)/usr/lib/
48endef
49
50$(eval $(call BuildPackage,libcss))
51

Archive Download this file



interactive