2007-08-29 13:13:39 +00:00
#
# Copyright (C) 2007 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := clearsilver
PKG_VERSION := 0.10.5
PKG_RELEASE := 1
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := http://www.clearsilver.net/downloads/
PKG_MD5SUM := b8c0c7fbe0ef5e06e0c935f134304d44
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 / c l e a r s i l v e r
SECTION:= libs
CATEGORY:= Libraries
DEPENDS:= +neon +zlib
TITLE:= ClearSilver template system
DESCRIPTION:= Clearsilver is a fast, powerful, and language-neutral HTML template system. In both static content sites and dynamic HTML applications, it provides a separation between presentation code and application logic which makes working with your project easier.
URL:= http://www.clearsilver.net/
e n d e f
CONFIGURE_ARGS += \
--disable-wdb \
--disable-apache \
--disable-python \
--disable-perl \
--disable-ruby \
--disable-java \
--disable-csharp \
--prefix= /usr
MAKE_FLAGS += \
$( TARGET_CONFIGURE_OPTS) \
AR = " $( AR) cr " \
LD = " $( TARGET_CROSS) ld -o " \
DESTDIR = " $( PKG_INSTALL_DIR) " \
all install
d e f i n e B u i l d / I n s t a l l D e v
2007-10-07 03:20:26 +00:00
$( INSTALL_DIR) $( 1) /usr/include/ClearSilver
$( INSTALL_DIR) $( 1) /usr/include/ClearSilver/cs
$( INSTALL_DIR) $( 1) /usr/include/ClearSilver/cgi
$( INSTALL_DIR) $( 1) /usr/include/ClearSilver/util
$( CP) $( PKG_BUILD_DIR) /ClearSilver.h $( 1) /usr/include/ClearSilver/
$( CP) $( PKG_BUILD_DIR) /cs_config.h $( 1) /usr/include/ClearSilver/
$( CP) $( PKG_BUILD_DIR) /cs/cs.h $( 1) /usr/include/ClearSilver/cs/
$( CP) $( PKG_BUILD_DIR) /cgi/cgi.h $( 1) /usr/include/ClearSilver/cgi/
$( CP) $( PKG_BUILD_DIR) /cgi/cgiwrap.h $( 1) /usr/include/ClearSilver/cgi/
$( CP) $( PKG_BUILD_DIR) /cgi/date.h $( 1) /usr/include/ClearSilver/cgi/
$( CP) $( PKG_BUILD_DIR) /cgi/html.h $( 1) /usr/include/ClearSilver/cgi/
$( CP) $( PKG_BUILD_DIR) /util/neo_err.h $( 1) /usr/include/ClearSilver/util/
$( CP) $( PKG_BUILD_DIR) /util/neo_files.h $( 1) /usr/include/ClearSilver/util/
$( CP) $( PKG_BUILD_DIR) /util/neo_misc.h $( 1) /usr/include/ClearSilver/util/
$( CP) $( PKG_BUILD_DIR) /util/neo_rand.h $( 1) /usr/include/ClearSilver/util/
$( CP) $( PKG_BUILD_DIR) /util/ulist.h $( 1) /usr/include/ClearSilver/util/
$( CP) $( PKG_BUILD_DIR) /util/neo_hdf.h $( 1) /usr/include/ClearSilver/util/
$( CP) $( PKG_BUILD_DIR) /util/neo_str.h $( 1) /usr/include/ClearSilver/util/
$( CP) $( PKG_BUILD_DIR) /util/neo_date.h $( 1) /usr/include/ClearSilver/util/
$( CP) $( PKG_BUILD_DIR) /util/wildmat.h $( 1) /usr/include/ClearSilver/util/
$( CP) $( PKG_BUILD_DIR) /util/neo_hash.h $( 1) /usr/include/ClearSilver/util/
$( CP) $( PKG_BUILD_DIR) /util/ulocks.h $( 1) /usr/include/ClearSilver/util/
$( CP) $( PKG_BUILD_DIR) /util/rcfs.h $( 1) /usr/include/ClearSilver/util/
$( CP) $( PKG_BUILD_DIR) /util/skiplist.h $( 1) /usr/include/ClearSilver/util/
$( CP) $( PKG_BUILD_DIR) /util/dict.h $( 1) /usr/include/ClearSilver/util/
$( CP) $( PKG_BUILD_DIR) /util/filter.h $( 1) /usr/include/ClearSilver/util/
$( CP) $( PKG_BUILD_DIR) /util/neo_net.h $( 1) /usr/include/ClearSilver/util/
$( CP) $( PKG_BUILD_DIR) /util/neo_server.h $( 1) /usr/include/ClearSilver/util/
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_BUILD_DIR) /libs/libneo_cs.a $( 1) /usr/lib/
$( CP) $( PKG_BUILD_DIR) /libs/libneo_cgi.a $( 1) /usr/lib/
$( CP) $( PKG_BUILD_DIR) /libs/libneo_utl.a $( 1) /usr/lib/
$( INSTALL_DIR) $( 1) /usr/bin
$( CP) $( PKG_BUILD_DIR) /cs/cs $( 1) /usr/bin/
$( CP) $( PKG_BUILD_DIR) /cs/cstest $( 1) /usr/bin/
$( CP) $( PKG_BUILD_DIR) /cgi/cs_static.cgi $( 1) /usr/bin/
2007-08-29 13:13:39 +00:00
e n d e f
d e f i n e B u i l d / U n i n s t a l l D e v
rm -rf \
$( STAGING_DIR) /usr/include/ClearSilver \
$( STAGING_DIR) /usr/lib/libneo_* \
$( STAGING_DIR) /usr/bin/cs \
$( STAGING_DIR) /usr/bin/cstest \
$( STAGING_DIR) /usr/bin/cs_static.cgi
e n d e f
d e f i n e P a c k a g e / c l e a r s i l v e r / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( INSTALL_BIN) $( PKG_BUILD_DIR) /libs/libneo_cs.a $( 1) /usr/lib/
$( INSTALL_BIN) $( PKG_BUILD_DIR) /libs/libneo_cgi.a $( 1) /usr/lib/
$( INSTALL_BIN) $( PKG_BUILD_DIR) /libs/libneo_utl.a $( 1) /usr/lib/
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /cs/cs $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_BUILD_DIR) /cs/cstest $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_BUILD_DIR) /cgi/cs_static.cgi $( 1) /usr/bin/
e n d e f
$( eval $ ( call BuildPackage ,clearsilver ) )