summaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authorhasso <hasso@pkgsrc.org>2009-03-20 19:42:20 +0000
committerhasso <hasso@pkgsrc.org>2009-03-20 19:42:20 +0000
commit8bed553f4398868c4b4020aca8ff742d6f0083dd (patch)
treebeae10ce4d7405af53b64a5267c9b00880edbb91 /comms
parent7f34b7002936d4a1eb961a1d5f29f05b6b97f8e3 (diff)
downloadpkgsrc-8bed553f4398868c4b4020aca8ff742d6f0083dd.tar.gz
DragonFly needs the same hack as NetBSD, the bluetooth stack is the same.
Diffstat (limited to 'comms')
-rw-r--r--comms/openobex/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/comms/openobex/Makefile b/comms/openobex/Makefile
index f51c6620b79..523e42a16ad 100644
--- a/comms/openobex/Makefile
+++ b/comms/openobex/Makefile
@@ -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 @@ PKGCONFIG_OVERRIDE= openobex.pc.in
.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