2010-11-18 16:55:31 +02:00
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := libcss
PKG_VERSION := 0.0.2
PKG_RELEASE := 1
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) -src.tar.gz
PKG_SOURCE_URL := http://www.netsurf-browser.org/projects/releases/
PKG_BUILD_DIR := $( BUILD_DIR) /$( PKG_NAME) -$( PKG_VERSION)
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
d e f i n e P a c k a g e / l i b c s s
2011-01-17 05:39:00 +02:00
MAINTAINER:= "Xiangfu Liu" <xiangfu@sharism.cc>
2010-11-18 16:55:31 +02:00
SECTION:= libs
CATEGORY:= Libraries
TITLE:= LibCSS is a CSS parser and selection engine, written in C
URL:= http://www.netsurf-browser.org/projects/libcss/
2010-11-19 05:46:00 +02:00
DEPENDS:= +libparserutils +libwapcaplet
2010-11-18 16:55:31 +02:00
e n d e f
d e f i n e P a c k a g e / l i b c s s / d e s c r i p t i o n
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
e n d e f
2010-11-19 05:46:00 +02:00
d e f i n e B u i l d / C o m p i l e
rm -rf $( PKG_INSTALL_DIR)
2010-11-20 13:44:08 +02:00
$( MAKE_VARS) $( MAKE) -C $( PKG_BUILD_DIR) \
$( MAKE_FLAGS) \
WARNFLAGS = "" \
2010-11-19 05:46:00 +02:00
COMPONENT_TYPE = lib-shared \
DESTDIR = " $( PKG_INSTALL_DIR) " \
all install
e n d e f
2010-11-18 16:55:31 +02:00
d e f i n e B u i l d / I n s t a l l D e v
mkdir -p $( 1) /usr/include
2010-11-19 05:46:00 +02:00
$( CP) $( PKG_INSTALL_DIR) /usr/local/include/* $( 1) /usr/include/
2010-11-18 16:55:31 +02:00
mkdir -p $( 1) /usr/lib
2010-11-19 05:46:00 +02:00
$( CP) $( PKG_INSTALL_DIR) /usr/local/lib/* $( 1) /usr/lib/
2010-11-18 16:55:31 +02:00
e n d e f
d e f i n e P a c k a g e / l i b c s s / i n s t a l l
2010-11-19 05:46:00 +02:00
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/local/lib/libcss.so* $( 1) /usr/lib/
2010-11-18 16:55:31 +02:00
e n d e f
$( eval $ ( call BuildPackage ,libcss ) )