forked from mirrors/linphone-iphone
reorganized the openembedded repo and imported the oe-lite rules from Linphone buildbots
This commit is contained in:
parent
dc57145484
commit
13bd720656
32 changed files with 158 additions and 1 deletions
12
build/openembedded/antlr3/antlr3c-linphone/library.patch
Normal file
12
build/openembedded/antlr3/antlr3c-linphone/library.patch
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
diff -urN a/runtime/C/Makefile.am b/runtime/C/Makefile.am
|
||||
--- a/runtime/C/Makefile.am 2013-07-30 09:46:20.000000000 +0200
|
||||
+++ b/runtime/C/Makefile.am 2013-07-30 09:52:08.000000000 +0200
|
||||
@@ -62,7 +62,7 @@
|
||||
include/antlr3treeparser.h \
|
||||
antlr3config.h
|
||||
|
||||
-libantlr3c_la_LDFLAGS = -no-undefined -avoid-version
|
||||
+libantlr3c_la_LDFLAGS = -no-undefined
|
||||
libantlr3c_la_LIBADD = $(ANTLR_LIBS)
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/include
|
||||
23
build/openembedded/antlr3/antlr3c.inc
Normal file
23
build/openembedded/antlr3/antlr3c.inc
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
DESCRIPTION = "Linphone version of antlr3"
|
||||
LICENSE = "GPL"
|
||||
|
||||
RECIPE_TYPES = "machine native"
|
||||
|
||||
DEPENDS = ""
|
||||
|
||||
S = "${SRCDIR}/antlr3"
|
||||
B = "${SRCDIR}/antlr3/runtime/C"
|
||||
CONFIGURE_SCRIPT = "${B}/configure"
|
||||
|
||||
inherit autotools-autoreconf pkgconfig library c
|
||||
|
||||
do_autoreconf () {
|
||||
pushd runtime/C
|
||||
./autogen.sh
|
||||
popd
|
||||
}
|
||||
|
||||
EXTRA_OECONF:>TARGET_CPU_x86_64 = " --enable-64bit"
|
||||
|
||||
DEPENDS_${PN} += "${DEPENDS}"
|
||||
RDEPENDS_${PN} += "${DEPENDS}"
|
||||
4
build/openembedded/antlr3/antlr3c_linphone.oe
Normal file
4
build/openembedded/antlr3/antlr3c_linphone.oe
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
require antlr3c.inc
|
||||
|
||||
SRC_URI = "git://git.linphone.org/antlr3.git;commit=f0dbcbbcd22a7fd9a479ff68d4daa9225fb2f3b1"
|
||||
SRC_URI += "file://library.patch"
|
||||
18
build/openembedded/belle-sip/belle-sip.inc
Normal file
18
build/openembedded/belle-sip/belle-sip.inc
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
DESCRIPTION = "SIP stack from Belledonne Communications"
|
||||
LICENSE = "GPL"
|
||||
|
||||
RECIPE_TYPES = "machine native"
|
||||
|
||||
DEPENDS = "polarssl antlr3c libm"
|
||||
|
||||
EXTRA_OECONF += "--with-antlr=${BUILD_SYSROOT}${target_prefix} --with-polarssl=${BUILD_SYSROOT}${target_prefix}"
|
||||
|
||||
inherit autotools-autoreconf pkgconfig library c
|
||||
|
||||
do_autoreconf () {
|
||||
./autogen.sh
|
||||
}
|
||||
|
||||
DEPENDS_${PN} += "${DEPENDS}"
|
||||
RDEPENDS_${PN} += "${DEPENDS}"
|
||||
RDEPENDS_${PN}-dev += "polarssl-dev antlr3c-dev"
|
||||
5
build/openembedded/belle-sip/belle-sip_master.oe
Normal file
5
build/openembedded/belle-sip/belle-sip_master.oe
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
require belle-sip.inc
|
||||
|
||||
S = "${SRCDIR}/belle-sip/"
|
||||
|
||||
SRC_URI = "git://git.linphone.org/belle-sip.git;commit=e5a2ddc4456fa15114fd986aadaf9e45a5b1072b"
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
BBPATH .= ":${LAYERDIR}"
|
||||
|
||||
# We have a recipes directory, add to BBFILES
|
||||
BBFILES += "${LAYERDIR}/*.bb ${LAYERDIR}/libgsm/*.bb ${LAYERDIR}/images/*.bb"
|
||||
BBFILES += "${LAYERDIR}/*.bb ${LAYERDIR}/*/*.bb"
|
||||
|
||||
BBFILE_COLLECTIONS += "linphone-layer"
|
||||
BBFILE_PATTERN_linphone-layer := "^${LAYERDIR}/"
|
||||
|
|
|
|||
14
build/openembedded/polarssl/polarssl-linphone/darwin.patch
Normal file
14
build/openembedded/polarssl/polarssl-linphone/darwin.patch
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
diff -urN a/library/Makefile b/library/Makefile
|
||||
--- a/library/Makefile 2013-07-29 17:26:14.000000000 +0200
|
||||
+++ b/library/Makefile 2013-07-29 17:26:58.000000000 +0200
|
||||
@@ -26,7 +26,9 @@
|
||||
|
||||
DLEXT=so
|
||||
# OSX shared library extension:
|
||||
-# DLEXT=dylib
|
||||
+ifdef DARWIN
|
||||
+DLEXT=dylib
|
||||
+endif
|
||||
|
||||
# Windows shared library extension:
|
||||
ifdef WINDOWS
|
||||
51
build/openembedded/polarssl/polarssl-linphone/soname.patch
Normal file
51
build/openembedded/polarssl/polarssl-linphone/soname.patch
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
diff -urN polarssl.orig/library/Makefile polarssl.new/library/Makefile
|
||||
--- polarssl.orig/library/Makefile 2013-08-22 10:24:46.353700982 +0200
|
||||
+++ polarssl.new/library/Makefile 2013-08-22 10:21:43.933733318 +0200
|
||||
@@ -28,12 +28,14 @@
|
||||
# OSX shared library extension:
|
||||
ifdef DARWIN
|
||||
DLEXT=dylib
|
||||
+SONAME=libpolarssl.0.dylib
|
||||
endif
|
||||
|
||||
# Windows shared library extension:
|
||||
ifdef WINDOWS
|
||||
DLEXT=dll
|
||||
LDFLAGS += -lws2_32
|
||||
+SONAME=libpolarssl-0.dll
|
||||
endif
|
||||
|
||||
OBJS= aes.o arc4.o asn1parse.o \
|
||||
@@ -73,15 +75,17 @@
|
||||
|
||||
libpolarssl.so: libpolarssl.a
|
||||
echo " LD $@"
|
||||
- $(CC) ${LDFLAGS} -shared -Wl,-soname,$(SONAME) -o $@ $(OBJS)
|
||||
+ $(CC) ${LDFLAGS} -shared -Wl,-soname,$(SONAME) -o $(SONAME) $(OBJS)
|
||||
+ ln -s $(SONAME) $@
|
||||
|
||||
libpolarssl.dylib: libpolarssl.a
|
||||
echo " LD $@"
|
||||
- $(CC) ${LDFLAGS} -dynamiclib -o $@ $(OBJS)
|
||||
+ $(CC) ${LDFLAGS} -dynamiclib -Wl,-install_name,$(SONAME) -o $(SONAME) $(OBJS)
|
||||
+ ln -s $(SONAME) $@
|
||||
|
||||
libpolarssl.dll: libpolarssl.a
|
||||
echo " LD $@"
|
||||
- $(CC) -shared -Wl,-soname,$@,--out-implib,$@.a -o $@ $(OBJS) -lws2_32 -lwinmm -lgdi32
|
||||
+ $(CC) -shared -Wl,-soname,$(SONAME),--out-implib,$@.a -o $(SONAME) $(OBJS) -lws2_32 -lwinmm -lgdi32
|
||||
|
||||
.c.o:
|
||||
echo " CC $<"
|
||||
diff -urN polarssl.orig/Makefile polarssl.new/Makefile
|
||||
--- polarssl.orig/Makefile 2013-08-22 10:24:34.585703377 +0200
|
||||
+++ polarssl.new/Makefile 2013-08-22 10:19:26.801749343 +0200
|
||||
@@ -21,7 +21,7 @@
|
||||
cp -r include/polarssl $(DESTDIR)/include
|
||||
|
||||
mkdir -p $(DESTDIR)/lib
|
||||
- cp library/libpolarssl.* $(DESTDIR)/lib
|
||||
+ cp -d library/libpolarssl* $(DESTDIR)/lib
|
||||
|
||||
mkdir -p $(DESTDIR)/bin
|
||||
cp library/libpolarssl*.dll $(DESTDIR)/bin
|
||||
23
build/openembedded/polarssl/polarssl.inc
Normal file
23
build/openembedded/polarssl/polarssl.inc
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
DESCRIPTION = "SSL/TLS library"
|
||||
LICENSE = "GPL"
|
||||
|
||||
RECIPE_TYPES = "machine native"
|
||||
|
||||
DEPENDS = ""
|
||||
|
||||
inherit c make pkgconfig library
|
||||
|
||||
EXTRA_OEMAKE += " SHARED=1"
|
||||
EXTRA_OEMAKE:>TARGET_OS_darwin = " DARWIN=1"
|
||||
EXTRA_OEMAKE:>TARGET_OS_mingw32 = " WINDOWS=1"
|
||||
|
||||
PACKAGES += "${PN}-utils"
|
||||
|
||||
MAKE_DESTDIR = "DESTDIR=${D}/${prefix}"
|
||||
|
||||
FILES_${PN} += "${sharedlibdir}/*${SOLIBSDEV}"
|
||||
FILES_${PN}-dev += "!${sharedlibdir}/*${SOLIBSDEV}"
|
||||
FILES_${PN}-utils += "${bindir}/polarssl_*"
|
||||
|
||||
DEPENDS_${PN} += "${DEPENDS}"
|
||||
RDEPENDS_${PN} += "${DEPENDS}"
|
||||
7
build/openembedded/polarssl/polarssl_linphone.oe
Normal file
7
build/openembedded/polarssl/polarssl_linphone.oe
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
require polarssl.inc
|
||||
|
||||
S = "${SRCDIR}/polarssl/"
|
||||
|
||||
SRC_URI = "git://git.linphone.org/polarssl.git;commit=cecb44e4f13f42f793dde34b42793e1ebcce91a5"
|
||||
SRC_URI += "file://darwin.patch"
|
||||
SRC_URI += "file://soname.patch"
|
||||
Loading…
Add table
Reference in a new issue