From 709c4d66e0b107ca606941b988bad717c0b45d9b Mon Sep 17 00:00:00 2001 From: Denys Dmytriyenko Date: Tue, 17 Mar 2009 14:32:59 -0400 Subject: 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 Acked-by: Mike Westerhof Acked-by: Philip Balister Acked-by: Khem Raj Acked-by: Marcin Juszkiewicz Acked-by: Koen Kooi Acked-by: Frans Meulenbroeks --- recipes/matrixssl/matrixssl-1.1.1/cross.patch | 55 +++++++++++++++++++++++++++ recipes/matrixssl/matrixssl.inc | 5 +++ recipes/matrixssl/matrixssl_1.1.1.bb | 17 +++++++++ 3 files changed, 77 insertions(+) create mode 100644 recipes/matrixssl/matrixssl-1.1.1/cross.patch create mode 100644 recipes/matrixssl/matrixssl.inc create mode 100644 recipes/matrixssl/matrixssl_1.1.1.bb (limited to 'recipes/matrixssl') diff --git a/recipes/matrixssl/matrixssl-1.1.1/cross.patch b/recipes/matrixssl/matrixssl-1.1.1/cross.patch new file mode 100644 index 0000000000..05ae0523e8 --- /dev/null +++ b/recipes/matrixssl/matrixssl-1.1.1/cross.patch @@ -0,0 +1,55 @@ +--- src/Makefile.porig 2004-06-10 15:03:25.000000000 -0400 ++++ src/Makefile 2004-06-11 20:16:30.701134886 -0400 +@@ -6,7 +6,7 @@ + # + + CC = gcc +-STRIP = strip ++STRIP = -s + O = .o + SO = .so + E = +@@ -37,17 +37,17 @@ + # + ifdef MATRIXSSL_DEBUG + DFLAGS = -g -Wall -DDEBUG +-STRIP = test ++STRIP = + else +-DFLAGS = -O3 ++DFLAGS = -O2 + endif + + # + # Compile options + # +-SHARED = -shared +-CFLAGS = $(DFLAGS) -DLINUX +-LDFLAGS = -nostdlib -lc -lpthread ++SHARED = -shared ++CFLAGS = $(DFLAGS) $(STRIP) -DLINUX ++LDLIBS = -nostdlib -lc -lpthread + + # + # Override variables for compilation on Mac OS X (Darwin) +@@ -57,8 +57,8 @@ + SO = .dylib + SHARED = -dynamiclib + CFLAGS += -DOSX -isystem -I/usr/include +-LDFLAGS = -flat_namespace -install_name @executable_path/../src/$(LIBRARY) +-STRIP = test ++LDLIBS = -flat_namespace -install_name @executable_path/../src/$(LIBRARY) ++STRIP = + endif + + all: compile +@@ -77,8 +77,7 @@ + # Build the library + # + $(LIBRARY): $(OBJECTS) +- $(CC) $(SHARED) -o $@ $^ $(LDFLAGS) +- $(STRIP) $(LIBRARY) ++ $(CC) $(SHARED) -o $@ $^ $(LDFLAGS) $(LDLIBS) + + # + # Clean up all generated files diff --git a/recipes/matrixssl/matrixssl.inc b/recipes/matrixssl/matrixssl.inc new file mode 100644 index 0000000000..bb6b8e0bdc --- /dev/null +++ b/recipes/matrixssl/matrixssl.inc @@ -0,0 +1,5 @@ +def define_os (d): + import bb + if bb.data.getVar('TARGET_OS', d, 1).startswith('linux'): + return "-DLINUX" + return "" diff --git a/recipes/matrixssl/matrixssl_1.1.1.bb b/recipes/matrixssl/matrixssl_1.1.1.bb new file mode 100644 index 0000000000..b90ef341c0 --- /dev/null +++ b/recipes/matrixssl/matrixssl_1.1.1.bb @@ -0,0 +1,17 @@ +DESCRIPTION = "A secure sockets library" +SECTION = "libs" +LICENSE = "GPL" +PR = "r1" +SRC_URI = "http://wiki.openembedded.org/dl/matrixssl-1-1-1.tar.gz \ + file://cross.patch;patch=1" +S = "${WORKDIR}/matrixssl/src" + +require matrixssl.inc + +CFLAGS_append = " ${@define_os(d)}" + +do_install () { + install -d ${D}${includedir} + install -m 0644 ${S}/../matrixSsl.h ${D}${includedir}/ + oe_libinstall -so libmatrixssl ${D}${libdir}/ +} -- cgit 1.2.3-korg