pkgsrc/comms/obexapp/patches/patch-af
plunky c2f865b4ce update to obexapp 1.4.14, with a clump of minor fixes submitted
by Iain Hibbert:

- use libexpat instead of FreeBSD internal libbsdxml

- fix off by one error with busy spinner, which sometimes
  resulted in a spurious backspace in the output

- fflush(stdout) for busy spinner

- print streaming statistics after transfers in client mode

- use HAVE_BT_DEVADDR rather than testing for __NetBSD__

- use bdaddr_any() functions instead of memcpy()

- allow server mode to bind to channel 0, indicating to the OS
  that the first available channel should be used

- prevent busy loop bug if the socket is remotely closed causing
  the read() to return 0 bytes

- fix some [unsigned comparison] compiler warnings

- provide connection ID for all get requests, improves compatibility
  with remote windows mobile devices
2010-11-17 19:14:33 +00:00

23 lines
611 B
Text

$NetBSD: patch-af,v 1.6 2010/11/17 19:14:34 plunky Exp $
--- Makefile.orig 2010-11-03 18:28:50.000000000 +0000
+++ Makefile
@@ -16,9 +16,16 @@ DEBUG_FLAGS= -g
CFLAGS+= -I/usr/local/include \
-I/usr/local/include/openobex
-DPADD= ${LIBBLUETOOTH} ${LIBSDP} ${LIBREADLINE}
+DPADD= ${LIBBLUETOOTH} ${LIBREADLINE}
LDADD= -L/usr/lib -L/usr/local/lib \
- -lbluetooth -lsdp -lopenobex -lexpat -lreadline -liconv
+ -lbluetooth -lopenobex -lexpat -lreadline -liconv
+.if (${HAVE_LIBSDP:Uyes} == "no")
+CPPFLAGS+= -DSDP_COMPAT
+.else
+DPADD+= ${LIBSDP}
+LDADD+= -lsdp
+.endif
+
.include <bsd.prog.mk>