* [Buildroot] [PATCH 1/2] re: new package
@ 2012-01-22 13:50 Arnout Vandecappelle
2012-01-22 13:50 ` [Buildroot] [PATCH 2/2] baresip: " Arnout Vandecappelle
2012-01-23 10:12 ` [Buildroot] [PATCH 1/2] " Thomas Petazzoni
0 siblings, 2 replies; 4+ messages in thread
From: Arnout Vandecappelle @ 2012-01-22 13:50 UTC (permalink / raw)
To: buildroot
From: "Arnout Vandecappelle (Essensium/Mind)" <arnout@mind.be>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Laurent Kersten <laurent.kersten@essensium.com>
---
package/Config.in | 1 +
package/re/Config.in | 11 +++++++++++
package/re/re.mk | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 61 insertions(+), 0 deletions(-)
create mode 100644 package/re/Config.in
create mode 100644 package/re/re.mk
diff --git a/package/Config.in b/package/Config.in
index efed5a0..100ee53 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -353,6 +353,7 @@ source "package/libmbus/Config.in"
source "package/libnl/Config.in"
source "package/libpcap/Config.in"
source "package/libosip2/Config.in"
+source "package/re/Config.in"
source "package/librsync/Config.in"
source "package/libsoup/Config.in"
source "package/libupnp/Config.in"
diff --git a/package/re/Config.in b/package/re/Config.in
new file mode 100644
index 0000000..c458ba6
--- /dev/null
+++ b/package/re/Config.in
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_RE
+ bool "re library"
+ help
+ Toolkit library for asynchronous network IO
+ with protocol stacks including SIP, SDP, RTP,
+ STUN, TURN, ICE and DNS.
+
+ Warning: if you use uClibc, you must enable
+ UCLIBC_HAS_BSD_RES_CLOSE.
+
+ http://www.creytiv.com
diff --git a/package/re/re.mk b/package/re/re.mk
new file mode 100644
index 0000000..93bc50a
--- /dev/null
+++ b/package/re/re.mk
@@ -0,0 +1,49 @@
+#############################################################
+#
+# re
+#
+#############################################################
+
+RE_VERSION = 0.2.0
+RE_SITE = http://www.creytiv.com/pub
+RE_INSTALL_STAGING = YES
+
+ifeq ($(BR2_PACKAGE_OPENSSL),y)
+RE_DEPENDENCIES += openssl
+endif
+ifeq ($(BR2_PACKAGE_ZLIB),y)
+RE_DEPENDENCIES += zlib
+endif
+
+RE_MAKE_ENV = \
+ $(TARGET_CONFIGURE_OPTS) \
+ SYSROOT=$(STAGING_DIR)/usr \
+ LFLAGS="$(TARGET_LDFLAGS)"
+
+define RE_BUILD_CMDS
+ $(RE_MAKE_ENV) $(MAKE) -C $(@D) all
+endef
+
+define RE_CLEAN_CMDS
+ $(RE_MAKE_ENV) $(MAKE) -C $(@D) clean
+endef
+
+define RE_INSTALL_STAGING_CMDS
+ $(RE_MAKE_ENV) DESTDIR=$(STAGING_DIR) $(MAKE) -C $(@D) install
+endef
+
+define RE_INSTALL_TARGET_CMDS
+ $(INSTALL) -m 644 -D $(@D)/libre.so $(TARGET_DIR)/usr/lib/libre.so
+endef
+
+define RE_UNINSTALL_STAGING_CMDS
+ $(RM) -r $(STAGING_DIR)/usr/include/re
+ $(RM) $(STAGING_DIR)/usr/lib/libre.a
+ $(RM) $(STAGING_DIR)/usr/lib/libre.so
+endef
+
+define RE_UNINSTALL_TARGET_CMDS
+ $(RM) $(TARGET_DIR)/usr/lib/libre.so
+endef
+
+$(eval $(call GENTARGETS))
--
1.7.8.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 2/2] baresip: new package
2012-01-22 13:50 [Buildroot] [PATCH 1/2] re: new package Arnout Vandecappelle
@ 2012-01-22 13:50 ` Arnout Vandecappelle
2012-01-23 10:12 ` [Buildroot] [PATCH 1/2] " Thomas Petazzoni
1 sibling, 0 replies; 4+ messages in thread
From: Arnout Vandecappelle @ 2012-01-22 13:50 UTC (permalink / raw)
To: buildroot
From: "Arnout Vandecappelle (Essensium/Mind)" <arnout@mind.be>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Laurent Kersten <laurent.kersten@essensium.com>
---
package/multimedia/Config.in | 1 +
package/multimedia/baresip/Config.in | 33 ++++++++++++++
package/multimedia/baresip/baresip.mk | 79 +++++++++++++++++++++++++++++++++
3 files changed, 113 insertions(+), 0 deletions(-)
create mode 100644 package/multimedia/baresip/Config.in
create mode 100644 package/multimedia/baresip/baresip.mk
diff --git a/package/multimedia/Config.in b/package/multimedia/Config.in
index 320a55a..eb04bbf 100644
--- a/package/multimedia/Config.in
+++ b/package/multimedia/Config.in
@@ -2,6 +2,7 @@ menu "Audio and video libraries and applications"
source "package/multimedia/alsa-lib/Config.in"
source "package/multimedia/alsa-utils/Config.in"
source "package/multimedia/aumix/Config.in"
+source "package/multimedia/baresip/Config.in"
source "package/multimedia/faad2/Config.in"
source "package/multimedia/flac/Config.in"
source "package/multimedia/ffmpeg/Config.in"
diff --git a/package/multimedia/baresip/Config.in b/package/multimedia/baresip/Config.in
new file mode 100644
index 0000000..2184716
--- /dev/null
+++ b/package/multimedia/baresip/Config.in
@@ -0,0 +1,33 @@
+config BR2_PACKAGE_BARESIP
+ bool "baresip"
+ select BR2_PACKAGE_RE
+ select BR2_PACKAGE_ZLIB
+ select BR2_PACKAGE_XLIB_LIBXEXT if BR2_PACKAGE_XORG7
+ help
+ baresip is a bare-bones SIP user agent.
+ It supports SIP, SDP, RTP/RTCP, and STUN/TURN/ICE, and IPv4 and
+ IPv6, is RFC-compliant and has portable C89 and C99 source code.
+
+ A modular plugin architecture provides:
+ - stdio, cons, and evdev user interfaces,
+ - celt, g711, g722, gsm, ilbc, l16, and speex audio codecs
+ - alsa, coreaudio, gst portaudio, oss, winwav, and mda audio
+ drivers
+ - speex_pp, speex_aec, speex_resamp, and sndfile audio filters
+ - the avcodec video codec, avformat, quicktime, qtcapture, v4l,
+ v4l2 video sources
+ - sdl, opengl, and x11 video display drivers
+ - srtp media encoding.
+
+ To select the plugins, just enable the corresponding libraries in
+ buildroot:
+ - SPEEX for speex audio codec
+ - ALSA_LIB for alsa audio driver
+ - LIBSNDFILE for sndfile audio filters
+ - FFMPEG (with SWSCALE) for avcodec, avformat, v4l, v4l2 video sources
+ - SDL for sdl video display driver
+ - XORG7 for x11 video display drivers
+ - GSTREAMER for GStreamer's audio and video codecs
+
+ http://www.creytiv.com
+
diff --git a/package/multimedia/baresip/baresip.mk b/package/multimedia/baresip/baresip.mk
new file mode 100644
index 0000000..100a2cf
--- /dev/null
+++ b/package/multimedia/baresip/baresip.mk
@@ -0,0 +1,79 @@
+#############################################################
+#
+# BARESIP
+#
+#############################################################
+
+BARESIP_VERSION = 0.2.0
+BARESIP_SITE = http://www.creytiv.com/pub
+BARESIP_DEPENDENCIES = re zlib
+
+BARESIP_MAKE_ENV = \
+ $(TARGET_CONFIGURE_OPTS) \
+ SYSROOT=$(STAGING_DIR)/usr \
+ LD="$(TARGET_CC)" \
+ LFLAGS="$(TARGET_LDFLAGS)"
+
+BARESIP_MAKE_ARGS = \
+ LIBRE_MK="$(STAGING_DIR)/usr/share/re/re.mk" \
+ LIBRE_INC="$(STAGING_DIR)/usr/include/re" \
+ LIBRE_SO="$(STAGING_DIR)/usr/lib"
+
+ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
+BARESIP_DEPENDENCIES += alsa-lib
+endif
+
+ifeq ($(BR2_PACKAGE_FFMPEG_SWSCALE),y)
+BARESIP_DEPENDENCIES += ffmpeg
+BARESIP_MAKE_ENV += \
+ CFLAGS+=-DCODEC_TYPE_VIDEO=AVMEDIA_TYPE_VIDEO
+endif
+
+ifeq ($(BR2_PACKAGE_GSTREAMER),y)
+BARESIP_DEPENDENCIES += gstreamer
+endif
+
+ifeq ($(BR2_PACKAGE_PORTAUDIO),y)
+BARESIP_DEPENDENCIES += portaudio
+endif
+
+ifeq ($(BR2_PACKAGE_SDL),y)
+BARESIP_DEPENDENCIES += sdl
+BARESIP_MAKE_ARGS += SDL_VERSION=1.2
+endif
+
+ifeq ($(BR2_PACKAGE_LIBSNDFILE),y)
+BARESIP_DEPENDENCIES += libsndfile
+endif
+
+ifeq ($(BR2_PACKAGE_SPEEX),y)
+BARESIP_DEPENDENCIES += speex
+endif
+
+ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
+BARESIP_DEPENDENCIES += util-linux
+endif
+
+ifeq ($(BR2_PACKAGE_XORG7),y)
+BARESIP_DEPENDENCIES += xlib_libXext
+endif
+
+define BARESIP_BUILD_CMDS
+ $(BARESIP_MAKE_ENV) $(MAKE) $(BARESIP_MAKE_ARGS) -C $(@D) all
+endef
+
+define BARESIP_CLEAN_CMDS
+ $(BARESIP_MAKE_ENV) $(MAKE) $(BARESIP_MAKE_ARGS) -C $(@D) clean
+endef
+
+define BARESIP_INSTALL_TARGET_CMDS
+ $(BARESIP_MAKE_ENV) DESTDIR=$(TARGET_DIR) $(MAKE) $(BARESIP_MAKE_ARGS) -C $(@D) install
+endef
+
+define BARESIP_UNINSTALL_TARGET_CMDS
+ $(RM) $(TARGET_DIR)/usr/bin/baresip
+ $(RM) -r $(TARGET_DIR)/usr/lib/baresip
+ $(RM) -r $(TARGET_DIR)/usr/share/baresip
+endef
+
+$(eval $(call GENTARGETS))
--
1.7.8.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 1/2] re: new package
2012-01-22 13:50 [Buildroot] [PATCH 1/2] re: new package Arnout Vandecappelle
2012-01-22 13:50 ` [Buildroot] [PATCH 2/2] baresip: " Arnout Vandecappelle
@ 2012-01-23 10:12 ` Thomas Petazzoni
2012-01-23 20:31 ` Arnout Vandecappelle
1 sibling, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2012-01-23 10:12 UTC (permalink / raw)
To: buildroot
Le Sun, 22 Jan 2012 14:50:24 +0100,
"Arnout Vandecappelle (Essensium/Mind)" <arnout@mind.be> a ?crit :
> package/Config.in | 1 +
> package/re/Config.in | 11 +++++++++++
> package/re/re.mk | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
Upstream, the package seems to be named 'libre' (the tarball is named
re-..., but the library is documented as libre on the website),
shouldn't we use the same name in Buildroot?
> +define RE_INSTALL_TARGET_CMDS
> + $(INSTALL) -m 644 -D $(@D)/libre.so $(TARGET_DIR)/usr/lib/libre.so
> +endef
I guess that the package build system doesn't use .so versioning?
Best regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 1/2] re: new package
2012-01-23 10:12 ` [Buildroot] [PATCH 1/2] " Thomas Petazzoni
@ 2012-01-23 20:31 ` Arnout Vandecappelle
0 siblings, 0 replies; 4+ messages in thread
From: Arnout Vandecappelle @ 2012-01-23 20:31 UTC (permalink / raw)
To: buildroot
On Monday 23 January 2012 11:12:35 Thomas Petazzoni wrote:
> Le Sun, 22 Jan 2012 14:50:24 +0100,
> "Arnout Vandecappelle (Essensium/Mind)" <arnout@mind.be> a ?crit :
>
> > package/Config.in | 1 +
> > package/re/Config.in | 11 +++++++++++
> > package/re/re.mk | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
>
> Upstream, the package seems to be named 'libre' (the tarball is named
> re-..., but the library is documented as libre on the website),
> shouldn't we use the same name in Buildroot?
I also found libre a more logical name, but since the tar was called
re-$(VERSION).tar.gz I thought to keep that. I hadn't thought of looking
at the official name on the website, though.
I'll make a respin with libre instead of re.
> > +define RE_INSTALL_TARGET_CMDS
> > + $(INSTALL) -m 644 -D $(@D)/libre.so $(TARGET_DIR)/usr/lib/libre.so
> > +endef
>
> I guess that the package build system doesn't use .so versioning?
Not that I could find, no.
Regards,
Arnout
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286540
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-01-23 20:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-22 13:50 [Buildroot] [PATCH 1/2] re: new package Arnout Vandecappelle
2012-01-22 13:50 ` [Buildroot] [PATCH 2/2] baresip: " Arnout Vandecappelle
2012-01-23 10:12 ` [Buildroot] [PATCH 1/2] " Thomas Petazzoni
2012-01-23 20:31 ` Arnout Vandecappelle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox