pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/comms/libsyncml Initial import of libsyncml, an implem...
details: https://anonhg.NetBSD.org/pkgsrc/rev/f7ef23cb0dc4
branches: trunk
changeset: 537624:f7ef23cb0dc4
user: dillo <dillo%pkgsrc.org@localhost>
date: Sat Jan 12 14:09:35 2008 +0000
description:
Initial import of libsyncml, an implementation of the SyncML protocol.
diffstat:
comms/libsyncml/DESCR | 2 +
comms/libsyncml/Makefile | 29 +++++
comms/libsyncml/PLIST | 30 +++++
comms/libsyncml/buildlink3.mk | 19 +++
comms/libsyncml/distinfo | 9 +
comms/libsyncml/patches/patch-aa | 36 +++++++
comms/libsyncml/patches/patch-ab | 17 +++
comms/libsyncml/patches/patch-ac | 16 +++
comms/libsyncml/patches/patch-ad | 199 +++++++++++++++++++++++++++++++++++++++
9 files changed, 357 insertions(+), 0 deletions(-)
diffs (truncated from 393 to 300 lines):
diff -r 874790495d9e -r f7ef23cb0dc4 comms/libsyncml/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/libsyncml/DESCR Sat Jan 12 14:09:35 2008 +0000
@@ -0,0 +1,2 @@
+Libsyncml is a implementation of the SyncML protocol, used e.g. on
+Nokia cell phones.
diff -r 874790495d9e -r f7ef23cb0dc4 comms/libsyncml/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/libsyncml/Makefile Sat Jan 12 14:09:35 2008 +0000
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/01/12 14:09:35 dillo Exp $
+#
+
+DISTNAME= libsyncml-0.4.5
+CATEGORIES= comms
+MASTER_SITES= http://libsyncml.opensync.org/download/releases/0.4.5/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= dillo%NetBSD.org@localhost
+HOMEPAGE= http://libsyncml.opensync.org/
+COMMENT= C library implementation of the SyncML protocol
+
+GNU_CONFIGURE= yes
+USE_TOOLS+= pkg-config
+USE_LANGUAGES= c
+USE_LIBTOOL= yes
+
+CONFIGURE_ARGS+= --disable-http
+CONFIGURE_ARGS+= --enable-bluetooth
+CONFIGURE_ARGS+= --enable-obex
+
+PKGCONFIG_OVERRIDE+= libsyncml-1.0.pc.in
+
+.include "../../comms/openobex/buildlink3.mk"
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../textproc/wbxml2/buildlink3.mk"
+# XXX libsoup (http)
+.include "../../mk/bsd.pkg.mk"
diff -r 874790495d9e -r f7ef23cb0dc4 comms/libsyncml/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/libsyncml/PLIST Sat Jan 12 14:09:35 2008 +0000
@@ -0,0 +1,30 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/01/12 14:09:35 dillo Exp $
+bin/syncml-http-client
+bin/syncml-http-server
+bin/syncml-obex-client
+include/libsyncml-1.0/libsyncml/http_client.h
+include/libsyncml-1.0/libsyncml/http_server.h
+include/libsyncml-1.0/libsyncml/obex_client.h
+include/libsyncml-1.0/libsyncml/obex_server.h
+include/libsyncml-1.0/libsyncml/sml_auth.h
+include/libsyncml-1.0/libsyncml/sml_base64.h
+include/libsyncml-1.0/libsyncml/sml_command.h
+include/libsyncml-1.0/libsyncml/sml_defines.h
+include/libsyncml-1.0/libsyncml/sml_devinf.h
+include/libsyncml-1.0/libsyncml/sml_devinf_obj.h
+include/libsyncml-1.0/libsyncml/sml_ds_server.h
+include/libsyncml-1.0/libsyncml/sml_elements.h
+include/libsyncml-1.0/libsyncml/sml_error.h
+include/libsyncml-1.0/libsyncml/sml_manager.h
+include/libsyncml-1.0/libsyncml/sml_md5.h
+include/libsyncml-1.0/libsyncml/sml_notification.h
+include/libsyncml-1.0/libsyncml/sml_parse.h
+include/libsyncml-1.0/libsyncml/sml_session.h
+include/libsyncml-1.0/libsyncml/sml_transport.h
+include/libsyncml-1.0/libsyncml/syncml.h
+lib/libsyncml.la
+lib/pkgconfig/libsyncml-1.0.pc
+man/man1/syncml-http-server.1
+man/man1/syncml-obex-client.1
+@dirrm include/libsyncml-1.0/libsyncml
+@dirrm include/libsyncml-1.0
diff -r 874790495d9e -r f7ef23cb0dc4 comms/libsyncml/buildlink3.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/libsyncml/buildlink3.mk Sat Jan 12 14:09:35 2008 +0000
@@ -0,0 +1,19 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2008/01/12 14:09:35 dillo Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+LIBSYNCML_BUILDLINK3_MK:= ${LIBSYNCML_BUILDLINK3_MK}+
+
+.if ${BUILDLINK_DEPTH} == "+"
+BUILDLINK_DEPENDS+= libsyncml
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nlibsyncml}
+BUILDLINK_PACKAGES+= libsyncml
+BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}libsyncml
+
+.if ${LIBSYNCML_BUILDLINK3_MK} == "+"
+BUILDLINK_API_DEPENDS.libsyncml+= libsyncml>=0.4.5
+BUILDLINK_PKGSRCDIR.libsyncml?= ../../comms/libsyncml
+.endif # LIBSYNCML_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff -r 874790495d9e -r f7ef23cb0dc4 comms/libsyncml/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/libsyncml/distinfo Sat Jan 12 14:09:35 2008 +0000
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/01/12 14:09:35 dillo Exp $
+
+SHA1 (libsyncml-0.4.5.tar.bz2) = 93794fd891def238025559cb74be18669fd5197a
+RMD160 (libsyncml-0.4.5.tar.bz2) = 551f27a5173f7d54ca51d6c01c2d601970eee496
+Size (libsyncml-0.4.5.tar.bz2) = 374803 bytes
+SHA1 (patch-aa) = e610909735c46812f69dfe292293d3e0e0965ee1
+SHA1 (patch-ab) = 2b6fe22c62f324d6d3c894e7271256c3b6e9396f
+SHA1 (patch-ac) = 20179ab5aa95f25e8e9956cdfbd7757fc16f7606
+SHA1 (patch-ad) = 51298b6b0a7b32bb941ef75781f1148ddc03d5a4
diff -r 874790495d9e -r f7ef23cb0dc4 comms/libsyncml/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/libsyncml/patches/patch-aa Sat Jan 12 14:09:35 2008 +0000
@@ -0,0 +1,36 @@
+$NetBSD: patch-aa,v 1.1.1.1 2008/01/12 14:09:35 dillo Exp $
+
+Check for -lbluetooth in addition to -lbluez, to make this compile on BSD.
+
+--- configure.ac.orig 2007-10-16 14:42:45.000000000 +0200
++++ configure.ac
+@@ -78,20 +78,27 @@ AC_ARG_ENABLE(bluetooth,
+ AS_HELP_STRING([--enable-bluetooth], [enable obex over bluetooth transports]),
+ WANT_BLUETOOTH=$enableval)
+
+-PKG_CHECK_MODULES(LIBBLUETOOTH, bluez, HAVE_BLUETOOTH=yes, HAVE_BLUETOOTH=no)
++PKG_CHECK_MODULES(LIBBLUETOOTH, bluez,
++ [HAVE_BLUETOOTH=yes
++ AC_DEFINE(HAVE_BLUETOOTH_BLUETOOTH_H, 1, [Define to 1 if you have the <bluetooth/bluetooth.h> header file.])],
++ [AC_CHECK_LIB(bluetooth, bt_gethostbyname,
++ [HAVE_BLUETOOTH=yes
++ LIBBLUETOOTH_LIBS=-lbluetooth],
++ HAVE_BLUETOOTH=no)])
+ if test "x${HAVE_BLUETOOTH}" = "xyes"; then
+ if test "x${WANT_BLUETOOTH}" = "xno"; then
+ ENABLE_BLUETOOTH=no
+ else
+ AC_SUBST(LIBBLUETOOTH_CFLAGS)
+ AC_SUBST(LIBBLUETOOTH_LIBS)
++ AC_SUBST(HAVE_BLUETOOTH_BLUETOOTH_H)
+ ENABLE_BLUETOOTH=yes
+ AC_SUBST(ENABLE_BLUETOOTH)
+ AC_DEFINE(ENABLE_BLUETOOTH,1,[Bluetooth Transport])
+ fi
+ else
+ if test "x${WANT_BLUETOOTH}" = "xyes"; then
+- AC_MSG_ERROR("Bluez not found")
++ AC_MSG_ERROR("Bluetooth libraries not found")
+ else
+ ENABLE_BLUETOOTH=no
+ fi
diff -r 874790495d9e -r f7ef23cb0dc4 comms/libsyncml/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/libsyncml/patches/patch-ab Sat Jan 12 14:09:35 2008 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-ab,v 1.1.1.1 2008/01/12 14:09:35 dillo Exp $
+
+--- libsyncml/transports/obex_client.c.orig 2007-10-16 15:25:31.000000000 +0200
++++ libsyncml/transports/obex_client.c
+@@ -26,7 +26,12 @@
+ #include <libsyncml/sml_transport_internals.h>
+
+ #ifdef ENABLE_BLUETOOTH
++#ifdef HAVE_BLUETOOTH_BLUETOOTH_H
+ #include <bluetooth/bluetooth.h>
++#else
++#define COMPAT_BLUEZ
++#include <bluetooth.h>
++#endif
+ #endif
+
+ #include "obex_client.h"
diff -r 874790495d9e -r f7ef23cb0dc4 comms/libsyncml/patches/patch-ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/libsyncml/patches/patch-ac Sat Jan 12 14:09:35 2008 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-ac,v 1.1.1.1 2008/01/12 14:09:35 dillo Exp $
+
+Regen for patch-aa.
+
+--- config.h.in.orig 2008-01-08 00:58:17.000000000 +0100
++++ config.h.in
+@@ -15,6 +15,9 @@
+ /* Defined if the correct libwbxml2 version exists. */
+ #undef ENABLE_WBXML
+
++/* Define to 1 if you have the <bluetooth/bluetooth.h> header file. */
++#undef HAVE_BLUETOOTH_BLUETOOTH_H
++
+ /* Define to 1 if you have the <dlfcn.h> header file. */
+ #undef HAVE_DLFCN_H
+
diff -r 874790495d9e -r f7ef23cb0dc4 comms/libsyncml/patches/patch-ad
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/libsyncml/patches/patch-ad Sat Jan 12 14:09:35 2008 +0000
@@ -0,0 +1,199 @@
+$NetBSD: patch-ad,v 1.1.1.1 2008/01/12 14:09:35 dillo Exp $
+
+Regen for patch-aa (hand trimmed).
+
+--- configure.orig 2008-01-08 00:58:11.000000000 +0100
++++ configure
+@@ -884,6 +884,7 @@ ENABLE_OBEX_TRUE
+ ENABLE_OBEX_FALSE
+ LIBBLUETOOTH_CFLAGS
+ LIBBLUETOOTH_LIBS
++HAVE_BLUETOOTH_BLUETOOTH_H
+ ENABLE_BLUETOOTH
+ ENABLE_BLUETOOTH_TRUE
+ ENABLE_BLUETOOTH_FALSE
+@@ -20785,15 +20770,154 @@ fi
+
+ { echo "$as_me:$LINENO: result: no" >&5
+ echo "${ECHO_T}no" >&6; }
+- HAVE_BLUETOOTH=no
++ { echo "$as_me:$LINENO: checking for bt_gethostbyname in -lbluetooth" >&5
++echo $ECHO_N "checking for bt_gethostbyname in -lbluetooth... $ECHO_C" >&6; }
++if test "${ac_cv_lib_bluetooth_bt_gethostbyname+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ ac_check_lib_save_LIBS=$LIBS
++LIBS="-lbluetooth $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++
++/* Override any GCC internal prototype to avoid an error.
++ Use char because int might match the return type of a GCC
++ builtin and then its argument prototype would still apply. */
++#ifdef __cplusplus
++extern "C"
++#endif
++char bt_gethostbyname ();
++int
++main ()
++{
++return bt_gethostbyname ();
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (ac_try="$ac_link"
++case "(($ac_try" in
++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
++ *) ac_try_echo=$ac_try;;
++esac
++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
++ (eval "$ac_link") 2>conftest.er1
++ ac_status=$?
++ grep -v '^ *+' conftest.er1 >conftest.err
++ rm -f conftest.er1
++ cat conftest.err >&5
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } && {
++ test -z "$ac_c_werror_flag" ||
++ test ! -s conftest.err
++ } && test -s conftest$ac_exeext &&
++ $as_test_x conftest$ac_exeext; then
++ ac_cv_lib_bluetooth_bt_gethostbyname=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ ac_cv_lib_bluetooth_bt_gethostbyname=no
++fi
++
++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
++ conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bluetooth_bt_gethostbyname" >&5
++echo "${ECHO_T}$ac_cv_lib_bluetooth_bt_gethostbyname" >&6; }
++if test $ac_cv_lib_bluetooth_bt_gethostbyname = yes; then
++ HAVE_BLUETOOTH=yes
++ LIBBLUETOOTH_LIBS=-lbluetooth
++else
++ HAVE_BLUETOOTH=no
++fi
++
+ elif test $pkg_failed = untried; then
+- HAVE_BLUETOOTH=no
++ { echo "$as_me:$LINENO: checking for bt_gethostbyname in -lbluetooth" >&5
++echo $ECHO_N "checking for bt_gethostbyname in -lbluetooth... $ECHO_C" >&6; }
++if test "${ac_cv_lib_bluetooth_bt_gethostbyname+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ ac_check_lib_save_LIBS=$LIBS
++LIBS="-lbluetooth $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++
++/* Override any GCC internal prototype to avoid an error.
++ Use char because int might match the return type of a GCC
++ builtin and then its argument prototype would still apply. */
Home |
Main Index |
Thread Index |
Old Index