PKG_NAME:=clearsilver
PKG_VERSION:=0.10.5
-PKG_RELEASE:=3
+PKG_RELEASE:=4
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.clearsilver.net/downloads/
PKG_MD5SUM:=b8c0c7fbe0ef5e06e0c935f134304d44
+PKG_CONFIG_DEPENDS:= \
+ CONFIG_CLEARSILVER_ENABLE_COMPRESSION \
+ CONFIG_CLEARSILVER_ENABLE_REMOTE_DEBUGGER \
+ CONFIG_CLEARSILVER_ENABLE_GETTEXT
+
+PKG_FIXUP:=libtool
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
CATEGORY:=Libraries
TITLE:=ClearSilver template system
URL:=http://www.clearsilver.net/
- MENU:=1
+ MAINTAINER:=Raphaël HUCK <rhk@cksum.org>
+ DEPENDS:=+CLEARSILVER_ENABLE_COMPRESSION:zlib
endef
-define Package/clearsilver/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.
+define Package/clearsilver/config
+ menu "Configuration"
+ depends on PACKAGE_clearsilver
+ source "$(SOURCE)/Config.in"
+ endmenu
endef
-TARGET_CFLAGS += $(FPIC)
+define Package/clearsilver/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.
+endef
-CONFIGURE_ARGS += \
+CONFIGURE_ARGS+= \
--disable-wdb \
--disable-apache \
--disable-python \
--disable-csharp \
--prefix=/usr
-ifneq ($(SDK)$(CONFIG_CLEARSILVER_ENABLE_COMPRESSION),y)
- CONFIGURE_ARGS+= \
- --disable-compression
+ifeq ($(SDK)$(CONFIG_CLEARSILVER_ENABLE_COMPRESSION),y)
+ CONFIGURE_ARGS+= \
+ --enable-compression
else
- CONFIGURE_ARGS+= \
- --enable-compression
+ CONFIGURE_ARGS+= \
+ --disable-compression
endif
-ifneq ($(SDK)$(CONFIG_CLEARSILVER_ENABLE_REMOTE_DEBUGGER),y)
- CONFIGURE_ARGS+= \
- --disable-remote-debugger
+ifeq ($(SDK)$(CONFIG_CLEARSILVER_ENABLE_REMOTE_DEBUGGER),y)
+ CONFIGURE_ARGS+= \
+ --enable-remote-debugger
else
- CONFIGURE_ARGS+= \
- --enable-remote-debugger
+ CONFIGURE_ARGS+= \
+ --disable-remote-debugger
endif
-ifneq ($(SDK)$(CONFIG_CLEARSILVER_ENABLE_GETTEXT),y)
- CONFIGURE_ARGS+= \
- --disable-gettext
+ifeq ($(SDK)$(CONFIG_CLEARSILVER_ENABLE_GETTEXT),y)
+ CONFIGURE_ARGS+= \
+ --enable-gettext
else
- CONFIGURE_ARGS+= \
- --enable-gettext
+ CONFIGURE_ARGS+= \
+ --disable-gettext
endif
-MAKE_FLAGS += \
+TARGET_CFLAGS+=$(FPIC)
+
+MAKE_FLAGS+= \
$(TARGET_CONFIGURE_OPTS) \
AR="$(AR) cr" \
LD="$(TARGET_CC) -o"
-diff -pruN clearsilver-0.10.5.orig/cgi/cgi.c clearsilver-0.10.5/cgi/cgi.c
---- clearsilver-0.10.5.orig/cgi/cgi.c 2007-07-12 04:38:03.000000000 +0200
-+++ clearsilver-0.10.5/cgi/cgi.c 2008-01-28 12:04:50.000000000 +0100
-@@ -698,7 +700,7 @@ NEOERR *cgi_parse (CGI *cgi)
+--- a/cgi/cgi.c
++++ b/cgi/cgi.c
+@@ -698,7 +698,7 @@ NEOERR *cgi_parse (CGI *cgi)
x = 0;
while (x < len)
{
cgiwrap_read (buf, sizeof(buf), &r);
else
cgiwrap_read (buf, len - x, &r);
-@@ -1363,6 +1365,8 @@ void cgi_neo_error (CGI *cgi, NEOERR *er
+@@ -1363,6 +1363,8 @@ void cgi_neo_error (CGI *cgi, NEOERR *er
{
STRING str;
string_init(&str);
cgiwrap_writef("Status: 500\n");
cgiwrap_writef("Content-Type: text/html\n\n");
-@@ -1377,6 +1381,8 @@ void cgi_error (CGI *cgi, const char *fm
+@@ -1377,6 +1379,8 @@ void cgi_error (CGI *cgi, const char *fm
{
va_list ap;
cgiwrap_writef("Status: 500\n");
cgiwrap_writef("Content-Type: text/html\n\n");
cgiwrap_writef("<html><body>\nAn error occured:<pre>");
-@@ -1536,6 +1542,8 @@ NEOERR *cgi_cookie_set (CGI *cgi, const
+@@ -1536,6 +1540,8 @@ NEOERR *cgi_cookie_set (CGI *cgi, const
STRING str;
char my_time[256];
if (path == NULL) path = "/";
string_init(&str);
-@@ -1584,6 +1592,8 @@ NEOERR *cgi_cookie_set (CGI *cgi, const
+@@ -1584,6 +1590,8 @@ NEOERR *cgi_cookie_set (CGI *cgi, const
NEOERR *cgi_cookie_clear (CGI *cgi, const char *name, const char *domain,
const char *path)
{
if (path == NULL) path = "/";
if (domain)
{
-diff -pruN clearsilver-0.10.5.orig/cgi/cgiwrap.c clearsilver-0.10.5/cgi/cgiwrap.c
---- clearsilver-0.10.5.orig/cgi/cgiwrap.c 2006-12-19 05:36:20.000000000 +0100
-+++ clearsilver-0.10.5/cgi/cgiwrap.c 2008-01-28 12:02:32.000000000 +0100
+--- a/cgi/cgiwrap.c
++++ b/cgi/cgiwrap.c
@@ -14,6 +14,9 @@
#if HAVE_FEATURES_H
#include <features.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
-diff -pruN clearsilver-0.10.5.orig/cgi/date.c clearsilver-0.10.5/cgi/date.c
---- clearsilver-0.10.5.orig/cgi/date.c 2006-11-03 17:56:22.000000000 +0100
-+++ clearsilver-0.10.5/cgi/date.c 2008-01-28 12:01:53.000000000 +0100
+--- a/cgi/date.c
++++ b/cgi/date.c
@@ -94,7 +94,7 @@ NEOERR *export_date_tm (HDF *data, const
if (err) return nerr_pass(err);
err = hdf_set_int_value (obj, "wday", ttm->tm_wday);
return nerr_pass (export_date_tm (data, prefix, &ttm));
}
-diff -pruN clearsilver-0.10.5.orig/cgi/date.h clearsilver-0.10.5/cgi/date.h
---- clearsilver-0.10.5.orig/cgi/date.h 2005-07-01 03:21:30.000000000 +0200
-+++ clearsilver-0.10.5/cgi/date.h 2008-01-28 11:36:10.000000000 +0100
+--- a/cgi/date.h
++++ b/cgi/date.h
@@ -17,7 +17,7 @@
__BEGIN_DECLS
time_t tt);
__END_DECLS
-diff -pruN clearsilver-0.10.5.orig/cgi/html.c clearsilver-0.10.5/cgi/html.c
---- clearsilver-0.10.5.orig/cgi/html.c 2006-10-20 01:26:35.000000000 +0200
-+++ clearsilver-0.10.5/cgi/html.c 2008-01-28 11:36:10.000000000 +0100
+--- a/cgi/html.c
++++ b/cgi/html.c
@@ -774,7 +774,7 @@ NEOERR *html_strip_alloc(const char *src
}
else
amp[ampl++] = tolower(src[x]);
else
{
-diff -pruN clearsilver-0.10.5.orig/cgi/rfc2388.c clearsilver-0.10.5/cgi/rfc2388.c
---- clearsilver-0.10.5.orig/cgi/rfc2388.c 2006-08-29 10:44:50.000000000 +0200
-+++ clearsilver-0.10.5/cgi/rfc2388.c 2008-01-28 12:01:13.000000000 +0100
+--- a/cgi/rfc2388.c
++++ b/cgi/rfc2388.c
@@ -155,14 +155,14 @@ static NEOERR * _read_line (CGI *cgi, ch
ofs = cgi->readlen - cgi->nl;
memmove(cgi->buf, cgi->buf + cgi->nl, ofs);
to_read = cgi->buflen - ofs;
if (cgi->data_expected && (to_read > cgi->data_expected - cgi->data_read))
{
-diff -pruN clearsilver-0.10.5.orig/cs/csparse.c clearsilver-0.10.5/cs/csparse.c
---- clearsilver-0.10.5.orig/cs/csparse.c 2007-07-12 04:37:34.000000000 +0200
-+++ clearsilver-0.10.5/cs/csparse.c 2008-01-28 12:18:32.000000000 +0100
+--- a/cs/csparse.c
++++ b/cs/csparse.c
@@ -59,7 +59,7 @@ typedef enum
ST_DEF = 1<<6,
ST_LOOP = 1<<7,
my_parse->locals = parent->locals;
my_parse->parent = parent;
-diff -pruN clearsilver-0.10.5.orig/util/dict.c clearsilver-0.10.5/util/dict.c
---- clearsilver-0.10.5.orig/util/dict.c 2005-07-01 02:48:26.000000000 +0200
-+++ clearsilver-0.10.5/util/dict.c 2008-01-28 12:16:35.000000000 +0100
+--- a/util/dict.c
++++ b/util/dict.c
@@ -87,6 +87,8 @@ static NEOERR *dictNewItem(dictCtx dict,
{
dictItemPtr my_item;
if (item != NULL)
*item = NULL;
-diff -pruN clearsilver-0.10.5.orig/util/neo_date.h clearsilver-0.10.5/util/neo_date.h
---- clearsilver-0.10.5.orig/util/neo_date.h 2005-06-30 20:58:48.000000000 +0200
-+++ clearsilver-0.10.5/util/neo_date.h 2008-01-28 11:36:14.000000000 +0100
+--- a/util/neo_date.h
++++ b/util/neo_date.h
@@ -17,10 +17,10 @@
__BEGIN_DECLS
/* To be portable... in seconds */
long neo_tz_offset(struct tm *ttm);
-diff -pruN clearsilver-0.10.5.orig/util/neo_files.c clearsilver-0.10.5/util/neo_files.c
---- clearsilver-0.10.5.orig/util/neo_files.c 2007-07-12 04:14:23.000000000 +0200
-+++ clearsilver-0.10.5/util/neo_files.c 2008-01-28 11:53:39.000000000 +0100
+--- a/util/neo_files.c
++++ b/util/neo_files.c
@@ -35,7 +35,7 @@ NEOERR *ne_mkdirs (const char *path, mod
strncpy (mypath, path, sizeof(mypath));
{
mypath[x] = '/';
mypath[x+1] = '\0';
-diff -pruN clearsilver-0.10.5.orig/util/neo_hash.c clearsilver-0.10.5/util/neo_hash.c
---- clearsilver-0.10.5.orig/util/neo_hash.c 2006-10-19 01:57:24.000000000 +0200
-+++ clearsilver-0.10.5/util/neo_hash.c 2008-01-28 11:53:09.000000000 +0100
+--- a/util/neo_hash.c
++++ b/util/neo_hash.c
@@ -57,7 +57,7 @@ void ne_hash_destroy (NE_HASH **hash)
my_hash = *hash;
{
if (prev)
{
-diff -pruN clearsilver-0.10.5.orig/util/neo_hdf.c clearsilver-0.10.5/util/neo_hdf.c
---- clearsilver-0.10.5.orig/util/neo_hdf.c 2007-07-12 03:52:37.000000000 +0200
-+++ clearsilver-0.10.5/util/neo_hdf.c 2008-01-28 12:24:48.000000000 +0100
+--- a/util/neo_hdf.c
++++ b/util/neo_hdf.c
@@ -54,7 +54,7 @@ static UINT32 hash_hdf_hash(const void *
}
{
buf[x++] = *st;
if (*st++ == '\n') break;
-@@ -1398,17 +1400,17 @@ static NEOERR *_copy_line_advance(const
+@@ -1398,17 +1400,17 @@ static NEOERR *_copy_line_advance(const
char *_strndup(const char *s, int len) {
int x;
}
/* attributes are of the form [key1, key2, key3=value, key4="repr"] */
-diff -pruN clearsilver-0.10.5.orig/util/neo_misc.c clearsilver-0.10.5/util/neo_misc.c
---- clearsilver-0.10.5.orig/util/neo_misc.c 2005-12-06 05:20:13.000000000 +0100
-+++ clearsilver-0.10.5/util/neo_misc.c 2008-01-28 11:48:48.000000000 +0100
-@@ -34,7 +34,7 @@ void ne_vwarn (const char *fmt, va_list
+--- a/util/neo_misc.c
++++ b/util/neo_misc.c
+@@ -34,7 +34,7 @@ void ne_vwarn (const char *fmt, va_list
localtime_r(&now, &my_tm);
vsnprintf (buf, sizeof(buf), fmt, ap);
len = strlen(buf);
-diff -pruN clearsilver-0.10.5.orig/util/neo_misc.h clearsilver-0.10.5/util/neo_misc.h
---- clearsilver-0.10.5.orig/util/neo_misc.h 2007-07-12 04:36:32.000000000 +0200
-+++ clearsilver-0.10.5/util/neo_misc.h 2008-01-28 11:36:14.000000000 +0100
+--- a/util/neo_misc.h
++++ b/util/neo_misc.h
@@ -106,6 +106,10 @@ typedef char BOOL;
#define MIN(x,y) (((x) < (y)) ? (x) : (y))
#endif
#ifndef TRUE
#define TRUE 1
#endif
-diff -pruN clearsilver-0.10.5.orig/util/neo_net.c clearsilver-0.10.5/util/neo_net.c
---- clearsilver-0.10.5.orig/util/neo_net.c 2005-12-06 05:17:08.000000000 +0100
-+++ clearsilver-0.10.5/util/neo_net.c 2008-01-28 11:46:42.000000000 +0100
+--- a/util/neo_net.c
++++ b/util/neo_net.c
@@ -489,7 +489,7 @@ static NEOERR *_ne_net_read_int(NSOCK *s
char buf[32];
char *ep = NULL;
{
while (sock->il - sock->ib > 0)
{
-diff -pruN clearsilver-0.10.5.orig/util/neo_server.c clearsilver-0.10.5/util/neo_server.c
---- clearsilver-0.10.5.orig/util/neo_server.c 2005-06-30 20:52:00.000000000 +0200
-+++ clearsilver-0.10.5/util/neo_server.c 2008-01-28 11:45:38.000000000 +0100
+--- a/util/neo_server.c
++++ b/util/neo_server.c
@@ -104,6 +104,8 @@ static int ShutdownPending = 0;
static void sig_term(int sig)
ShutdownPending = 1;
ne_net_shutdown();
}
-diff -pruN clearsilver-0.10.5.orig/util/neo_str.c clearsilver-0.10.5/util/neo_str.c
---- clearsilver-0.10.5.orig/util/neo_str.c 2007-07-12 03:24:00.000000000 +0200
-+++ clearsilver-0.10.5/util/neo_str.c 2008-01-28 12:21:31.000000000 +0100
+--- a/util/neo_str.c
++++ b/util/neo_str.c
@@ -592,11 +592,11 @@ char *repr_string_alloc (const char *s)
return rs;
}
string_init(&out_s);
err = string_append (&out_s, "#");
if (err) return nerr_pass (err);
-diff -pruN clearsilver-0.10.5.orig/util/skiplist.c clearsilver-0.10.5/util/skiplist.c
---- clearsilver-0.10.5.orig/util/skiplist.c 2005-06-30 20:52:10.000000000 +0200
-+++ clearsilver-0.10.5/util/skiplist.c 2008-01-28 12:22:54.000000000 +0100
-@@ -409,7 +409,7 @@ NEOERR *skipNewList(skipList *skip, int
+--- a/util/skiplist.c
++++ b/util/skiplist.c
+@@ -409,7 +409,7 @@ NEOERR *skipNewList(skipList *skip, int
if (err != STATUS_OK) break;
for(i = 0; /* init header and tail */