Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Mar 2008 01:33:07 +0100 (CET)
From:      Daniel Roethlisberger <daniel@roe.ch>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        daniel@roe.ch
Subject:   ports/121632: New port: comms/libsyncml - SyncML library for PIM data sync
Message-ID:  <200803120033.m2C0X7Qh076382@marvin.roe>
Resent-Message-ID: <200803120040.m2C0e1tG085529@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         121632
>Category:       ports
>Synopsis:       New port: comms/libsyncml - SyncML library for PIM data sync
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 12 00:40:00 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Daniel Roethlisberger
>Release:        FreeBSD 6.3-RELEASE-p1 i386
>Organization:
>Environment:
System: FreeBSD marvin.roe 6.3-RELEASE-p1 FreeBSD 6.3-RELEASE-p1 #0: Wed Feb 13 02:40:56 UTC 2008 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386
>Description:
Libsyncml is an implementation of the SyncML protocol.
It's purpose is PIM data synchronization with mobile
devices over HTTP or OBEX/Bluetooth channels.

This port is one more step towards having a functional
OpenSync environment within our ports tree.

The configure.ac patch for -lbluetooth support was
imported from pkgsrc.
>How-To-Repeat:
>Fix:
--- libsyncml-0.4.5.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	libsyncml
#	libsyncml/Makefile
#	libsyncml/files
#	libsyncml/files/patch-configure.in
#	libsyncml/files/patch-libsyncml_transports_obex_client.c
#	libsyncml/distinfo
#	libsyncml/pkg-descr
#	libsyncml/pkg-plist
#
echo c - libsyncml
mkdir -p libsyncml > /dev/null 2>&1
echo x - libsyncml/Makefile
sed 's/^X//' >libsyncml/Makefile << 'END-of-libsyncml/Makefile'
X# New ports collection makefile for:	libsyncml
X# Date created:		2008-03-09
X# Whom:			Daniel Roethlisberger <daniel@roe.ch>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	libsyncml
XPORTVERSION=	0.4.5
XCATEGORIES=	comms
XMASTER_SITES=	http://libsyncml.opensync.org/download/releases/${PORTVERSION}/ \
X		http://mirror.roe.ch/dist/${PORTNAME}/
X
XMAINTAINER=	daniel@roe.ch
XCOMMENT=	SyncML protocol library for PIM data synchronization
X
XLIB_DEPENDS=	wbxml2:${PORTSDIR}/textproc/wbxml2 \
X		openobex:${PORTSDIR}/comms/openobex \
X		soup:${PORTSDIR}/devel/libsoup
X
XUSE_AUTOTOOLS=	autoheader:261 automake:110
XGNU_CONFIGURE=	yes
XUSE_BZIP2=	yes
XUSE_GNOME=	glib20 libxml2
XUSE_LDCONFIG=	yes
XCONFIGURE_ARGS=	--enable-bluetooth --enable-obex --with-wbxml=${LOCALBASE}
X
XMAN1=		syncml-http-server.1 syncml-obex-client.1
X
Xpost-patch:
X	@${REINPLACE_CMD} \
X		-e 's|$${libdir}/pkgconfig|$${prefix}/libdata/pkgconfig|' \
X		${WRKSRC}/Makefile.am
X
X.include <bsd.port.mk>
END-of-libsyncml/Makefile
echo c - libsyncml/files
mkdir -p libsyncml/files > /dev/null 2>&1
echo x - libsyncml/files/patch-configure.in
sed 's/^X//' >libsyncml/files/patch-configure.in << 'END-of-libsyncml/files/patch-configure.in'
X$NetBSD: patch-aa,v 1.1.1.1 2008/01/12 14:09:35 dillo Exp $
X$FreeBSD$
X
XCheck for -lbluetooth in addition to -lbluez, to make this compile on BSD.
X
X--- configure.ac.orig	2007-10-16 14:42:45.000000000 +0200
X+++ configure.ac
X@@ -78,20 +78,27 @@ AC_ARG_ENABLE(bluetooth,
X   AS_HELP_STRING([--enable-bluetooth], [enable obex over bluetooth transports]),
X   WANT_BLUETOOTH=$enableval)
X 
X-PKG_CHECK_MODULES(LIBBLUETOOTH, bluez, HAVE_BLUETOOTH=yes, HAVE_BLUETOOTH=no)
X+PKG_CHECK_MODULES(LIBBLUETOOTH, bluez,
X+    [HAVE_BLUETOOTH=yes
X+     AC_DEFINE(HAVE_BLUETOOTH_BLUETOOTH_H, 1, [Define to 1 if you have the <bluetooth/bluetooth.h> header file.])],
X+    [AC_CHECK_LIB(bluetooth, bt_gethostbyname,
X+	[HAVE_BLUETOOTH=yes
X+	 LIBBLUETOOTH_LIBS=-lbluetooth],
X+	HAVE_BLUETOOTH=no)])
X if test "x${HAVE_BLUETOOTH}" = "xyes"; then
X 	if test "x${WANT_BLUETOOTH}" = "xno"; then
X 		ENABLE_BLUETOOTH=no
X 	else
X 		AC_SUBST(LIBBLUETOOTH_CFLAGS)
X 		AC_SUBST(LIBBLUETOOTH_LIBS)
X+		AC_SUBST(HAVE_BLUETOOTH_BLUETOOTH_H)
X 		ENABLE_BLUETOOTH=yes
X 		AC_SUBST(ENABLE_BLUETOOTH)
X 		AC_DEFINE(ENABLE_BLUETOOTH,1,[Bluetooth Transport])
X 	fi
X else
X 	if test "x${WANT_BLUETOOTH}" = "xyes"; then
X-		AC_MSG_ERROR("Bluez not found")
X+		AC_MSG_ERROR("Bluetooth libraries not found")
X 	else
X 		ENABLE_BLUETOOTH=no
X 	fi
END-of-libsyncml/files/patch-configure.in
echo x - libsyncml/files/patch-libsyncml_transports_obex_client.c
sed 's/^X//' >libsyncml/files/patch-libsyncml_transports_obex_client.c << 'END-of-libsyncml/files/patch-libsyncml_transports_obex_client.c'
X--- libsyncml/transports/obex_client.c.orig	2007-10-16 15:25:31.000000000 +0200
X+++ libsyncml/transports/obex_client.c	2008-03-09 22:32:06.000000000 +0100
X@@ -26,7 +26,13 @@
X #include <libsyncml/sml_transport_internals.h>
X 
X #ifdef ENABLE_BLUETOOTH
X+#ifdef HAVE_BLUETOOTH_BLUETOOTH_H
X #include <bluetooth/bluetooth.h>
X+#else
X+#define COMPAT_BLUEZ
X+#include <bluetooth.h>
X+#define BDADDR_ANY NG_HCI_BDADDR_ANY
X+#endif
X #endif
X 
X #include "obex_client.h"
END-of-libsyncml/files/patch-libsyncml_transports_obex_client.c
echo x - libsyncml/distinfo
sed 's/^X//' >libsyncml/distinfo << 'END-of-libsyncml/distinfo'
XMD5 (libsyncml-0.4.5.tar.bz2) = 90f4285cf04b70d92fdbe4fece148385
XSHA256 (libsyncml-0.4.5.tar.bz2) = ef11f0b79ebeb14369f0fdff34d9072a34c28fb83eccc75450f84225c56cc432
XSIZE (libsyncml-0.4.5.tar.bz2) = 374803
END-of-libsyncml/distinfo
echo x - libsyncml/pkg-descr
sed 's/^X//' >libsyncml/pkg-descr << 'END-of-libsyncml/pkg-descr'
XLibsyncml is an implementation of the SyncML protocol.
XIt's purpose is PIM data synchronization with mobile
Xdevices over HTTP or OBEX/Bluetooth channels.
X
XWWW: http://libsyncml.opensync.org/
END-of-libsyncml/pkg-descr
echo x - libsyncml/pkg-plist
sed 's/^X//' >libsyncml/pkg-plist << 'END-of-libsyncml/pkg-plist'
Xbin/syncml-http-server
Xbin/syncml-obex-client
Xbin/syncml-http-client
Xinclude/libsyncml-1.0/libsyncml/http_server.h
Xinclude/libsyncml-1.0/libsyncml/http_client.h
Xinclude/libsyncml-1.0/libsyncml/obex_client.h
Xinclude/libsyncml-1.0/libsyncml/obex_server.h
Xinclude/libsyncml-1.0/libsyncml/sml_auth.h
Xinclude/libsyncml-1.0/libsyncml/sml_ds_server.h
Xinclude/libsyncml-1.0/libsyncml/sml_devinf_obj.h
Xinclude/libsyncml-1.0/libsyncml/syncml.h
Xinclude/libsyncml-1.0/libsyncml/sml_transport.h
Xinclude/libsyncml-1.0/libsyncml/sml_defines.h
Xinclude/libsyncml-1.0/libsyncml/sml_command.h
Xinclude/libsyncml-1.0/libsyncml/sml_devinf.h
Xinclude/libsyncml-1.0/libsyncml/sml_elements.h
Xinclude/libsyncml-1.0/libsyncml/sml_parse.h
Xinclude/libsyncml-1.0/libsyncml/sml_manager.h
Xinclude/libsyncml-1.0/libsyncml/sml_session.h
Xinclude/libsyncml-1.0/libsyncml/sml_notification.h
Xinclude/libsyncml-1.0/libsyncml/sml_error.h
Xinclude/libsyncml-1.0/libsyncml/sml_base64.h
Xinclude/libsyncml-1.0/libsyncml/sml_md5.h
Xlib/libsyncml.so.0
Xlib/libsyncml.la
Xlibdata/pkgconfig/libsyncml-1.0.pc
END-of-libsyncml/pkg-plist
exit
--- libsyncml-0.4.5.shar ends here ---



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803120033.m2C0X7Qh076382>