pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/comms/bthfp set this up to use the older ServiceDiscov...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4cb51eeb2d22
branches:  trunk
changeset: 392855:4cb51eeb2d22
user:      plunky <plunky%pkgsrc.org@localhost>
date:      Tue May 12 14:36:28 2009 +0000

description:
set this up to use the older ServiceDiscovery API when appropriate

diffstat:

 comms/bthfp/Makefile         |  11 ++++++++---
 comms/bthfp/distinfo         |   3 ++-
 comms/bthfp/patches/patch-ab |  21 +++++++++++++++++++++
 3 files changed, 31 insertions(+), 4 deletions(-)

diffs (62 lines):

diff -r c21739baa8b5 -r 4cb51eeb2d22 comms/bthfp/Makefile
--- a/comms/bthfp/Makefile      Tue May 12 14:10:59 2009 +0000
+++ b/comms/bthfp/Makefile      Tue May 12 14:36:28 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2009/05/07 18:01:22 plunky Exp $
+# $NetBSD: Makefile,v 1.6 2009/05/12 14:36:28 plunky Exp $
 
 DISTNAME=              bthfp-0.1
 CATEGORIES=            comms
@@ -18,8 +18,13 @@
 
 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
 
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/bthfp ${DESTDIR}${PREFIX}/bin
diff -r c21739baa8b5 -r 4cb51eeb2d22 comms/bthfp/distinfo
--- a/comms/bthfp/distinfo      Tue May 12 14:10:59 2009 +0000
+++ b/comms/bthfp/distinfo      Tue May 12 14:36:28 2009 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.2 2008/06/21 20:47:28 joerg Exp $
+$NetBSD: distinfo,v 1.3 2009/05/12 14:36:28 plunky Exp $
 
 SHA1 (bthfp-0.1.tar.gz) = f0cefa424596545dec3c7d61eb9e608e8178871b
 RMD160 (bthfp-0.1.tar.gz) = 5185c59ee67a7482ec8c424172fdeebed5bb3238
 Size (bthfp-0.1.tar.gz) = 8522 bytes
 SHA1 (patch-aa) = 66e1d2be8a9de92b7a47bea8bba0adb68510d740
+SHA1 (patch-ab) = 83a4185d99f658ca7a1779c5854dc71855277baf
diff -r c21739baa8b5 -r 4cb51eeb2d22 comms/bthfp/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/bthfp/patches/patch-ab      Tue May 12 14:36:28 2009 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-ab,v 1.1 2009/05/12 14:36:28 plunky Exp $
+
+--- Makefile.orig      2009-05-12 13:22:31.000000000 +0100
++++ Makefile   2009-05-12 13:23:00.000000000 +0100
+@@ -4,7 +4,14 @@
+ SRCS= bthfp.c
+ MAN=  bthfp.1
+ 
+-DPADD+=       ${LIBBLUETOOTH} ${LIBEVENT} ${LIBSDP}
+-LDADD+=       -lbluetooth -levent -lsdp
++DPADD+=       ${LIBBLUETOOTH} ${LIBEVENT}
++LDADD+=       -lbluetooth -levent
++
++.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