2007-08-29 13:13:39 +00:00
#
2009-05-26 15:09:29 +00:00
# Copyright (C) 2006-2009 OpenWrt.org
2007-08-29 13:13:39 +00:00
#
# 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
2009-05-26 15:09:29 +00:00
PKG_RELEASE := 2
2007-08-29 13:13:39 +00:00
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
TITLE:= ClearSilver template system
2009-04-07 15:03:13 +00:00
URL:= http://www.clearsilver.net/
2009-05-26 15:09:29 +00:00
MENU:= 1
2007-08-29 13:13:39 +00:00
e n d e f
2007-10-14 04:32:56 +00:00
d e f i n e P a c k a g e / c l e a r s i l v e r / d e s c r i p t i o n
2009-05-26 15:09:29 +00:00
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.
2007-10-14 04:32:56 +00:00
e n d e f
2008-08-06 22:43:15 +00:00
TARGET_CFLAGS += $( FPIC)
2007-08-29 13:13:39 +00:00
CONFIGURE_ARGS += \
2009-05-26 15:09:29 +00:00
--disable-wdb \
--disable-apache \
--disable-python \
--disable-perl \
--disable-ruby \
--disable-java \
--disable-csharp \
--prefix= /usr
i f n e q ( $( SDK ) $( CONFIG_CLEARSILVER_ENABLE_COMPRESSION ) , y )
CONFIGURE_ARGS += \
--disable-compression
e l s e
CONFIGURE_ARGS += \
--enable-compression
e n d i f
i f n e q ( $( SDK ) $( CONFIG_CLEARSILVER_ENABLE_REMOTE_DEBUGGER ) , y )
CONFIGURE_ARGS += \
--disable-remote-debugger
e l s e
CONFIGURE_ARGS += \
--enable-remote-debugger
e n d i f
i f n e q ( $( SDK ) $( CONFIG_CLEARSILVER_ENABLE_GETTEXT ) , y )
CONFIGURE_ARGS += \
--disable-gettext
e l s e
CONFIGURE_ARGS += \
--enable-gettext
e n d i f
2007-08-29 13:13:39 +00:00
MAKE_FLAGS += \
$( TARGET_CONFIGURE_OPTS) \
AR = " $( AR) cr " \
2009-05-26 15:09:29 +00:00
LD = " $( TARGET_CC) -o " \
2007-08-29 13:13:39 +00:00
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
2009-05-26 15:09:29 +00:00
$( INSTALL_DIR) $( 1) /usr/include
$( CP) $( PKG_INSTALL_DIR) /usr/include/ClearSilver $( 1) /usr/include/
2007-10-07 03:20:26 +00:00
$( INSTALL_DIR) $( 1) /usr/lib
2009-05-26 15:09:29 +00:00
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libneo_*.a $( 1) /usr/lib/
2007-10-07 03:20:26 +00:00
$( INSTALL_DIR) $( 1) /usr/bin
2009-05-26 15:09:29 +00:00
$( CP) $( PKG_INSTALL_DIR) /usr/bin/* $( 1) /usr/bin/
2007-08-29 13:13:39 +00:00
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
2009-05-26 15:09:29 +00:00
$( CP) $( PKG_BUILD_DIR) /libs/libneo_*.a $( 1) /usr/lib/
2007-08-29 13:13:39 +00:00
e n d e f
$( eval $ ( call BuildPackage ,clearsilver ) )