diff options
author | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
---|---|---|
committer | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
commit | 709c4d66e0b107ca606941b988bad717c0b45d9b (patch) | |
tree | 37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/clearsilver | |
parent | fa6cd5a3b993f16c27de4ff82b42684516d433ba (diff) |
rename packages/ to recipes/ per earlier agreement
See links below for more details:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Acked-by: Mike Westerhof <mwester@dls.net>
Acked-by: Philip Balister <philip@balister.org>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Marcin Juszkiewicz <hrw@openembedded.org>
Acked-by: Koen Kooi <koen@openembedded.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/clearsilver')
-rw-r--r-- | recipes/clearsilver/clearsilver_0.10.3.bb | 31 | ||||
-rw-r--r-- | recipes/clearsilver/files/crosscompile.patch | 59 |
2 files changed, 90 insertions, 0 deletions
diff --git a/recipes/clearsilver/clearsilver_0.10.3.bb b/recipes/clearsilver/clearsilver_0.10.3.bb new file mode 100644 index 0000000000..6c41497ef4 --- /dev/null +++ b/recipes/clearsilver/clearsilver_0.10.3.bb @@ -0,0 +1,31 @@ +# Clearsilver +SECTION = "net" +DESCRIPTION = "Clearsilver is a fast, powerful, and language-neutral HTML template system" +LICENSE = "Neotonic ClearSilver License" +DEPENDS = "python" +PR = "r1" + +SRC_URI = "http://www.clearsilver.net/downloads/${P}.tar.gz \ + file://crosscompile.patch;patch=1" + +EXTRA_OECONF = "--disable-apache --disable-perl --disable-ruby --disable-java --disable-csharp --enable-gettext --with-python=${STAGING_BINDIR_NATIVE}/python" + +inherit autotools + +FILES_${PN} += "/usr/lib/python*" + +do_compile() { + BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} oe_runmake +} + +do_configure() { + gnu-configize + oe_runconf +} + +do_stage() { + autotools_stage_includes + for i in libs/libneo_cgi.a libs/libneo_cs.a libs/libneo_utl.a; do + install -m 644 $i ${STAGING_LIBDIR} + done +} diff --git a/recipes/clearsilver/files/crosscompile.patch b/recipes/clearsilver/files/crosscompile.patch new file mode 100644 index 0000000000..1b73bd5576 --- /dev/null +++ b/recipes/clearsilver/files/crosscompile.patch @@ -0,0 +1,59 @@ +Index: clearsilver-0.10.3/cgi/Makefile +=================================================================== +--- clearsilver-0.10.3.orig/cgi/Makefile ++++ clearsilver-0.10.3/cgi/Makefile +@@ -30,13 +30,13 @@ $(CGI_LIB): $(CGI_OBJ) + $(RANLIB) $@ + + $(STATIC_EXE): $(STATIC_OBJ) $(DEP_LIBS) +- $(LD) $@ $(STATIC_OBJ) -L$(LIB_DIR) $(DLIBS) $(LIBS) ++ $(LD) $@ $(STATIC_OBJ) -L$(LIB_DIR) $(DLIBS) $(LIBS) $(LDFLAGS) + + $(STATIC_CSO): $(STATIC_OBJ) $(DEP_LIBS) +- $(LDSHARED) -o $@ $(STATIC_OBJ) -L$(LIB_DIR) $(DLIBS) $(LIBS) ++ $(LDSHARED) -o $@ $(STATIC_OBJ) -L$(LIB_DIR) $(DLIBS) $(LIBS) $(LDFLAGS) + + $(CGICSTEST_EXE): $(CGICSTEST_OBJ) $(DEP_LIBS) +- $(LD) $@ $(CGICSTEST_OBJ) -L$(LIB_DIR) $(DLIBS) $(LIBS) ++ $(LD) $@ $(CGICSTEST_OBJ) -L$(LIB_DIR) $(DLIBS) $(LIBS) $(LDFLAGS) + + install: all + $(NEOTONIC_ROOT)/mkinstalldirs $(DESTDIR)$(cs_includedir)/cgi +Index: clearsilver-0.10.3/cs/Makefile +=================================================================== +--- clearsilver-0.10.3.orig/cs/Makefile ++++ clearsilver-0.10.3/cs/Makefile +@@ -22,9 +22,9 @@ CSDUMP_EXE = csdump + CSDUMP_SRC = csdump.c + CSDUMP_OBJ = $(CSDUMP_SRC:%.c=%.o) + +-LIBS += -L$(LIB_DIR) -lneo_cs -lneo_utl # -lefence ++LIBS += -L$(LIB_DIR) -lneo_cs -lneo_utl $(LDFLAGS) # -lefence + +-TARGETS = $(CS_LIB) $(CSTEST_EXE) $(CSR_EXE) test ++TARGETS = $(CS_LIB) $(CSR_EXE) $(CSTEST_EXE) + + CS_TESTS = test.cs test2.cs test3.cs test4.cs test5.cs test6.cs test7.cs \ + test8.cs test9.cs test10.cs test11.cs test12.cs test13.cs \ +Index: clearsilver-0.10.3/python/Makefile +=================================================================== +--- clearsilver-0.10.3.orig/python/Makefile ++++ clearsilver-0.10.3/python/Makefile +@@ -11,7 +11,7 @@ NEO_UTIL_PYD = neo_cgi.pyd + NEO_UTIL_SRC = neo_cgi.c neo_util.c neo_cs.c + NEO_UTIL_OBJ = $(NEO_UTIL_SRC:%.c=%.o) + +-CFLAGS += $(PYTHON_INC) ++#CFLAGS += $(PYTHON_INC) + DLIBS += -lneo_cgi -lneo_cs -lneo_utl + LIBS += -L$(LIB_DIR) $(DLIBS) $(DB2_LIB) + +@@ -21,6 +21,8 @@ else + TARGETS = $(NEO_UTIL_SO) + endif + ++PYTHON_SITE = /usr/lib/python2.4/site-packages/ ++ + all: $(TARGETS) + + $(NEO_UTIL_SO): setup.py $(NEO_UTIL_SRC) $(DEP_LIBS) |