pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/comms/openobex DragonFly needs the same hack as NetBSD...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3e8b714ae9ed
branches:  trunk
changeset: 556378:3e8b714ae9ed
user:      hasso <hasso%pkgsrc.org@localhost>
date:      Fri Mar 20 19:42:20 2009 +0000

description:
DragonFly needs the same hack as NetBSD, the bluetooth stack is the same.

diffstat:

 comms/openobex/Makefile |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (25 lines):

diff -r 40905cdf05bd -r 3e8b714ae9ed comms/openobex/Makefile
--- a/comms/openobex/Makefile   Fri Mar 20 19:33:28 2009 +0000
+++ b/comms/openobex/Makefile   Fri Mar 20 19:42:20 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2008/06/20 01:09:09 joerg Exp $
+# $NetBSD: Makefile,v 1.17 2009/03/20 19:42:20 hasso Exp $
 #
 
 DISTNAME=      openobex-1.3
@@ -20,12 +20,12 @@
 
 .include "../../mk/bsd.prefs.mk"
 
-.if (${OPSYS} == "NetBSD" && exists(/usr/include/bluetooth.h))
+.if ((${OPSYS} == "NetBSD" && exists(/usr/include/bluetooth.h)) || ${OPSYS} == "DragonFly")
 SUBST_CLASSES+=                bt
 SUBST_STAGE.bt=                post-patch
 SUBST_FILES.bt=                include/obex.h
-SUBST_SED.bt=          -e "s|\#ifndef SOL_RFCOMM|\#ifdef __NetBSD__|"
-SUBST_SED.bt+=         -e "s|typedef char\* bdaddr_t\;|\#include \<bluetooth.h\>|"
+SUBST_SED.bt=          -e "s,\#ifndef SOL_RFCOMM,\#if defined(__NetBSD__) || defined(__DragonFly__),"
+SUBST_SED.bt+=         -e "s,typedef char\* bdaddr_t\;,\#include \<bluetooth.h\>,"
 SUBST_MESSAGE.bt=      Fixing bluetooth detection.
 .endif
 



Home | Main Index | Thread Index | Old Index