blob: 3a9e61544bdfb4c2c7122f063be80c294f67faad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# $NetBSD: Makefile,v 1.9 2006/07/03 19:18:57 xtraeme Exp $
#
DISTNAME= openobex-1.0.1
PKGREVISION= 3
CATEGORIES= comms
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=openobex/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://openobex.sourceforge.net/
COMMENT= Implementation of the Object Exchange (OBEX) protocol
GNU_CONFIGURE= yes
USE_TOOLS+= gmake pkg-config
USE_LIBTOOL= yes
PKGCONFIG_OVERRIDE= openobex-config.in
.include "../../mk/bsd.prefs.mk"
.if (${OPSYS} == "NetBSD" && exists(/usr/include/bluetooth.h))
SUBST_CLASSES+= bt bt2
SUBST_STAGE.bt= post-patch
SUBST_FILES.bt= configure
SUBST_SED.bt= -e "s|bluetooth/bluetooth.h|bluetooth.h|g"
SUBST_SED.bt+= -e "s|bluetooth/rfcomm.h|netbt/rfcomm.h|g"
SUBST_SED.bt+= -e "s|sockaddr_rc|sockaddr_bt|g"
SUBST_MESSAGE.bt= Fixing bluetooth detection.
SUBST_STAGE.bt2= post-patch
SUBST_FILES.bt2= src/obex.h
SUBST_SED.bt2= -e "s|ifndef SOL_RFCOMM|ifdef SOL_RFCOMM|"
# bacpy() and friends
CPPFLAGS+= -DCOMPAT_BLUEZ
.endif
.include "../../mk/bsd.pkg.mk"
|