head 1.3; access; symbols pkgsrc-2013Q2:1.3.0.10 pkgsrc-2013Q2-base:1.3 pkgsrc-2012Q4:1.3.0.8 pkgsrc-2012Q4-base:1.3 pkgsrc-2011Q4:1.3.0.6 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q2:1.3.0.4 pkgsrc-2011Q2-base:1.3 pkgsrc-2009Q4:1.3.0.2 pkgsrc-2009Q4-base:1.3 pkgsrc-2009Q2:1.2.0.28 pkgsrc-2009Q2-base:1.2 pkgsrc-2009Q1:1.2.0.26 pkgsrc-2009Q1-base:1.2 pkgsrc-2008Q4:1.2.0.24 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.22 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.20 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.18 pkgsrc-2008Q2-base:1.2 cwrapper:1.2.0.16 pkgsrc-2008Q1:1.2.0.14 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.12 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.10 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.8 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.6 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.4 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.2 pkgsrc-2006Q3-base:1.2; locks; strict; comment @# @; 1.3 date 2009.08.07.12.18.33; author plunky; state dead; branches; next 1.2; 1.2 date 2006.07.09.09.27.52; author xtraeme; state Exp; branches; next 1.1; 1.1 date 2006.07.02.18.16.53; author xtraeme; state Exp; branches; next ; desc @@ 1.3 log @update to openobex 1.5, Bluetooth detection on BSD is much improved so the patches are no longer required. They got it wrong though, so one patch added (I also fed that upstream) while here, include LICENSE=gnu-lgpl-v2 update HOMEPAGE=http://www.openobex.org/ @ text @$NetBSD: patch-ab,v 1.2 2006/07/09 09:27:52 xtraeme Exp $ --- acinclude.m4.orig 2006-06-14 11:11:47.000000000 +0200 +++ acinclude.m4 2006-07-09 10:33:49.000000000 +0200 @@@@ -61,6 +61,17 @@@@ AC_SUBST(BLUEZ_LIBS) ]) +AC_DEFUN([NETBSD_BLUETOOTH_CHECK], [ + AC_CACHE_CHECK([for NetBSD bluetooth support], netbsdbt_found,[ + + AC_TRY_COMPILE([ + #include + ], [ + struct sockaddr_bt *bt; + ], netbsdbt_found=yes, netbsdbt_found=no) + ]) +]) + AC_DEFUN([AC_PATH_USB], [ PKG_CHECK_MODULES(USB, libusb, usb_found=yes, AC_MSG_RESULT(no)) AC_SUBST(USB_CFLAGS) @@@@ -126,6 +137,12 @@@@ REQUIRES="bluez" fi + if (test "${bluetooth_enable}" = "yes" && test "${netbsdbt_found}" = "yes"); then + AC_DEFINE(HAVE_BLUETOOTH, 1, [Define if system supports Bluetooth and it's enabled]) + AC_DEFINE(HAVE_NETBSD_BLUETOOTH, 1, [Define if it uses NetBSD's bluetooth stack]) + CPPFLAGS="$CPPFLAGS -DCOMPAT_BLUEZ" + fi + if (test "${usb_enable}" = "yes" && test "${usb_found}" = "yes"); then AC_DEFINE(HAVE_USB, 1, [Define if system supports USB and it's enabled]) AC_CHECK_FILE(${prefix}/lib/pkgconfig/libusb.pc, REQUIRES="$REQUIRES libusb") @ 1.2 log @Update to 1.3: ver 1.3: Add support for setting the creation-ID. Updated constants to match IrOBEX 1.3. Replace netbuf implementation with databuffer. Fix segmentation fault when receiving invalid OBEX packets. ver 1.2: Add OBEX_EV_REQCHECK support. Add support for suspend after sending a header. Add support for empty headers for buggy OBEX servers. Fix memory leak in obex_object_send(). ver 1.1: Fix list of exported functions. Fix duplicate string from basename() result. Fix wrong order of sanity checks. Fix memory leak in send_stream() function. ISO C99 says that inttypes.h includes stdint.h header. Add proper client side ABORT support. Add support for OBEX_SuspendRequest() and OBEX_ResumeRequest(). Add USB transport support. Increase the allowed maximum MTU to 64kB-1. Disconnect when an ABORT fails. Make it possible to include headers from C++ source code. Advertise OBEX Protocol Version 1.0. pkgsrc: * I've added patches to detect properly NetBSD bluetooth support and I have sent it to the openobex folks, they will be integrated soon. * Take maintainership for now. * Bump BUILDLINK_API_DEPENDS because the API has changed. *** PLEASE DO NOT TOUCH OBEXFTP, I'M UPDATING IT RIGHT NOW. THANKS *** @ text @d1 1 a1 1 $NetBSD$ @ 1.1 log @Add support for NetBSD's bluetooth, required by the upcoming package obexapp. Bump PKGREVISION. @ text @d3 5 a7 4 --- src/obex.c.orig 2006-07-02 18:53:03.000000000 +0200 +++ src/obex.c 2006-07-02 18:53:13.000000000 +0200 @@@@ -33,6 +33,7 @@@@ #endif d9 17 a25 4 #include +#include #include #include d27 9 @