1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-12-20 12:35:30 +02:00
openwrt-packages/libcss/Makefile

51 lines
1.4 KiB
Makefile
Raw Normal View History

include $(TOPDIR)/rules.mk
PKG_NAME:=libcss
2012-04-04 07:50:31 +03:00
PKG_VERSION:=0.1.2
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-src.tar.gz
2012-10-12 13:46:57 +03:00
PKG_SOURCE_URL:=http://download.netsurf-browser.org/libs/releases/
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
2012-04-04 07:50:31 +03:00
PKG_MD5SUM:=6e9dd7ed53113fc42fa1d20b3d202475
include $(INCLUDE_DIR)/package.mk
define Package/libcss
2011-01-17 05:39:00 +02:00
MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc>
SECTION:=libs
CATEGORY:=Libraries
TITLE:=LibCSS is a CSS parser and selection engine, written in C
URL:=http://www.netsurf-browser.org/projects/libcss/
DEPENDS:=+libparserutils +libwapcaplet
endef
define Package/libcss/description
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
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
2010-11-20 13:44:08 +02:00
$(MAKE_VARS) $(MAKE) -C $(PKG_BUILD_DIR) \
$(MAKE_FLAGS) \
WARNFLAGS="" \
COMPONENT_TYPE=lib-shared \
DESTDIR="$(PKG_INSTALL_DIR)" \
2012-04-04 07:50:31 +03:00
HOST_CC="$(HOSTCC)" \
all install
endef
define Build/InstallDev
mkdir -p $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/local/include/* $(1)/usr/include/
mkdir -p $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/local/lib/* $(1)/usr/lib/
endef
define Package/libcss/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/local/lib/libcss.so* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libcss))