pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/comms/obexapp update this to access the old ServiceDis...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5d9b939c9818
branches:  trunk
changeset: 392856:5d9b939c9818
user:      plunky <plunky%pkgsrc.org@localhost>
date:      Tue May 12 14:43:17 2009 +0000

description:
update this to access the old ServiceDiscovery API where appropriate

diffstat:

 comms/obexapp/Makefile         |  11 ++++++++---
 comms/obexapp/distinfo         |   4 ++--
 comms/obexapp/patches/patch-af |  15 +++++++++++----
 3 files changed, 21 insertions(+), 9 deletions(-)

diffs (73 lines):

diff -r 4cb51eeb2d22 -r 5d9b939c9818 comms/obexapp/Makefile
--- a/comms/obexapp/Makefile    Tue May 12 14:36:28 2009 +0000
+++ b/comms/obexapp/Makefile    Tue May 12 14:43:17 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2009/05/07 17:59:37 plunky Exp $
+# $NetBSD: Makefile,v 1.19 2009/05/12 14:43:17 plunky Exp $
 #
 
 DISTNAME=      obexapp-1.4.11
@@ -35,8 +35,13 @@
 USE_GNU_ICONV=         yes
 USE_BSD_MAKEFILE=      yes
 
-# (work in progress) make sure it uses old SDP API
-CPPFLAGS+=     -DSDP_COMPAT
+.include "../../mk/bsd.prefs.mk"
+
+# This uses the older ServiceDiscovery API
+.if (${OPSYS} == "NetBSD" && \
+    (!empty(OS_VERSION:M5.99.*) || !empty(OS_VERSION:M[6-9].*)))
+MAKE_ENV+=     HAVE_LIBSDP=no
+.endif
 
 # because the directory name conflicts with the rc.d script
 post-extract:
diff -r 4cb51eeb2d22 -r 5d9b939c9818 comms/obexapp/distinfo
--- a/comms/obexapp/distinfo    Tue May 12 14:36:28 2009 +0000
+++ b/comms/obexapp/distinfo    Tue May 12 14:43:17 2009 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.11 2009/05/07 17:45:22 plunky Exp $
+$NetBSD: distinfo,v 1.12 2009/05/12 14:43:17 plunky Exp $
 
 SHA1 (obexapp-1.4.11.tar.gz) = 7f6fd43c226b1d30f90c8b03bd2f3aa88567c3f2
 RMD160 (obexapp-1.4.11.tar.gz) = d93b361873f7b3a31adaaf752a3debb8a2086fd0
 Size (obexapp-1.4.11.tar.gz) = 30981 bytes
 SHA1 (patch-ac) = 7cae80c5a71fdd6cd97785dbf723aecf55e8cb2f
-SHA1 (patch-af) = a2e7b5f139c46085122d4154473e1b9061e9d42c
+SHA1 (patch-af) = cbab3674b8b5fabcddea20c350586986e834c29f
diff -r 4cb51eeb2d22 -r 5d9b939c9818 comms/obexapp/patches/patch-af
--- a/comms/obexapp/patches/patch-af    Tue May 12 14:36:28 2009 +0000
+++ b/comms/obexapp/patches/patch-af    Tue May 12 14:43:17 2009 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-af,v 1.3 2008/07/09 20:14:37 plunky Exp $
+$NetBSD: patch-af,v 1.4 2009/05/12 14:43:17 plunky Exp $
 
 --- Makefile.orig      2007-04-23 20:29:18.000000000 +0200
 +++ Makefile   2007-05-24 15:43:11.000000000 +0200
@@ -11,15 +11,22 @@
  
  SRCS=         client.c event.c log.c main.c sdp.c server.c stream.c \
                transport.c util.c
-@@ -17,9 +17,9 @@
+@@ -17,9 +17,16 @@
                -I/usr/local/include/openobex \
                -fno-strict-aliasing
  
 -DPADD=                ${LIBBLUETOOTH} ${LIBSDP} ${LIBBSDXML} ${LIBREADLINE}
-+DPADD=                ${LIBBLUETOOTH} ${LIBSDP} ${LIBREADLINE}
++DPADD=                ${LIBBLUETOOTH} ${LIBREADLINE}
  LDADD=                -L/usr/lib -L/usr/local/lib \
 -              -lbluetooth -lsdp -lopenobex -lbsdxml -lreadline -liconv
-+              -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>
  



Home | Main Index | Thread Index | Old Index