diff options
author | dillo <dillo@pkgsrc.org> | 2008-01-12 14:09:35 +0000 |
---|---|---|
committer | dillo <dillo@pkgsrc.org> | 2008-01-12 14:09:35 +0000 |
commit | 06a7c05b8a74c62652477bde93ab1d6eb9a87a9f (patch) | |
tree | be232a082c6b220c0e31d5e4d886bf59fd224637 /comms/libsyncml | |
parent | 278c0bfe4995d73803b2834441ec3a3f3ea8ce5a (diff) | |
download | pkgsrc-06a7c05b8a74c62652477bde93ab1d6eb9a87a9f.tar.gz |
Initial import of libsyncml, an implementation of the SyncML protocol.
Diffstat (limited to 'comms/libsyncml')
-rw-r--r-- | comms/libsyncml/DESCR | 2 | ||||
-rw-r--r-- | comms/libsyncml/Makefile | 29 | ||||
-rw-r--r-- | comms/libsyncml/PLIST | 30 | ||||
-rw-r--r-- | comms/libsyncml/buildlink3.mk | 19 | ||||
-rw-r--r-- | comms/libsyncml/distinfo | 9 | ||||
-rw-r--r-- | comms/libsyncml/patches/patch-aa | 36 | ||||
-rw-r--r-- | comms/libsyncml/patches/patch-ab | 17 | ||||
-rw-r--r-- | comms/libsyncml/patches/patch-ac | 16 | ||||
-rw-r--r-- | comms/libsyncml/patches/patch-ad | 199 |
9 files changed, 357 insertions, 0 deletions
diff --git a/comms/libsyncml/DESCR b/comms/libsyncml/DESCR new file mode 100644 index 00000000000..7ce081b7df6 --- /dev/null +++ b/comms/libsyncml/DESCR @@ -0,0 +1,2 @@ +Libsyncml is a implementation of the SyncML protocol, used e.g. on +Nokia cell phones. diff --git a/comms/libsyncml/Makefile b/comms/libsyncml/Makefile new file mode 100644 index 00000000000..4946d6658de --- /dev/null +++ b/comms/libsyncml/Makefile @@ -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 +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 --git a/comms/libsyncml/PLIST b/comms/libsyncml/PLIST new file mode 100644 index 00000000000..4b11ab53605 --- /dev/null +++ b/comms/libsyncml/PLIST @@ -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 --git a/comms/libsyncml/buildlink3.mk b/comms/libsyncml/buildlink3.mk new file mode 100644 index 00000000000..90e83d9174c --- /dev/null +++ b/comms/libsyncml/buildlink3.mk @@ -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 --git a/comms/libsyncml/distinfo b/comms/libsyncml/distinfo new file mode 100644 index 00000000000..38db9530b67 --- /dev/null +++ b/comms/libsyncml/distinfo @@ -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 --git a/comms/libsyncml/patches/patch-aa b/comms/libsyncml/patches/patch-aa new file mode 100644 index 00000000000..2136db273b1 --- /dev/null +++ b/comms/libsyncml/patches/patch-aa @@ -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 --git a/comms/libsyncml/patches/patch-ab b/comms/libsyncml/patches/patch-ab new file mode 100644 index 00000000000..ee4de7eb8b4 --- /dev/null +++ b/comms/libsyncml/patches/patch-ab @@ -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 --git a/comms/libsyncml/patches/patch-ac b/comms/libsyncml/patches/patch-ac new file mode 100644 index 00000000000..ad8647cc34a --- /dev/null +++ b/comms/libsyncml/patches/patch-ac @@ -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 --git a/comms/libsyncml/patches/patch-ad b/comms/libsyncml/patches/patch-ad new file mode 100644 index 00000000000..730e01439c2 --- /dev/null +++ b/comms/libsyncml/patches/patch-ad @@ -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. */ ++#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 ++ + else + LIBBLUETOOTH_CFLAGS=$pkg_cv_LIBBLUETOOTH_CFLAGS + LIBBLUETOOTH_LIBS=$pkg_cv_LIBBLUETOOTH_LIBS + { echo "$as_me:$LINENO: result: yes" >&5 + echo "${ECHO_T}yes" >&6; } + HAVE_BLUETOOTH=yes ++ ++cat >>confdefs.h <<\_ACEOF ++#define HAVE_BLUETOOTH_BLUETOOTH_H 1 ++_ACEOF ++ + fi + if test "x${HAVE_BLUETOOTH}" = "xyes"; then + if test "x${WANT_BLUETOOTH}" = "xno"; then +@@ -20811,8 +20934,8 @@ _ACEOF + fi + else + if test "x${WANT_BLUETOOTH}" = "xyes"; then +- { { echo "$as_me:$LINENO: error: \"Bluez not found\"" >&5 +-echo "$as_me: error: \"Bluez not found\"" >&2;} ++ { { echo "$as_me:$LINENO: error: \"Bluetooth libraries not found\"" >&5 ++echo "$as_me: error: \"Bluetooth libraries not found\"" >&2;} + { (exit 1); exit 1; }; } + else + ENABLE_BLUETOOTH=no +@@ -22531,6 +22650,7 @@ ENABLE_OBEX_TRUE!$ENABLE_OBEX_TRUE$ac_de + ENABLE_OBEX_FALSE!$ENABLE_OBEX_FALSE$ac_delim + LIBBLUETOOTH_CFLAGS!$LIBBLUETOOTH_CFLAGS$ac_delim + LIBBLUETOOTH_LIBS!$LIBBLUETOOTH_LIBS$ac_delim ++HAVE_BLUETOOTH_BLUETOOTH_H!$HAVE_BLUETOOTH_BLUETOOTH_H$ac_delim + ENABLE_BLUETOOTH!$ENABLE_BLUETOOTH$ac_delim + ENABLE_BLUETOOTH_TRUE!$ENABLE_BLUETOOTH_TRUE$ac_delim + ENABLE_BLUETOOTH_FALSE!$ENABLE_BLUETOOTH_FALSE$ac_delim +@@ -22554,7 +22674,7 @@ LIBOBJS!$LIBOBJS$ac_delim + LTLIBOBJS!$LTLIBOBJS$ac_delim + _ACEOF + +- if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 41; then ++ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 42; then + break + elif $ac_last_try; then + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |