diff options
author | hasso <hasso> | 2009-03-20 19:42:20 +0000 |
---|---|---|
committer | hasso <hasso> | 2009-03-20 19:42:20 +0000 |
commit | 997f3befe8dbc97957aec314de165dc1fd6182cf (patch) | |
tree | beae10ce4d7405af53b64a5267c9b00880edbb91 /comms/openobex | |
parent | ea94bdec746c2d1a2b9cfa535df103fbd57130a3 (diff) | |
download | pkgsrc-997f3befe8dbc97957aec314de165dc1fd6182cf.tar.gz |
DragonFly needs the same hack as NetBSD, the bluetooth stack is the same.
Diffstat (limited to 'comms/openobex')
-rw-r--r-- | comms/openobex/Makefile | 8 |
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 |