2009-03-20 20:42:20 +01:00
|
|
|
# $NetBSD: Makefile,v 1.17 2009/03/20 19:42:20 hasso Exp $
|
2004-02-26 13:49:23 +01:00
|
|
|
#
|
|
|
|
|
2006-07-09 11:27:52 +02:00
|
|
|
DISTNAME= openobex-1.3
|
2007-05-15 15:11:57 +02:00
|
|
|
PKGREVISION= 2
|
2004-02-26 13:49:23 +01:00
|
|
|
CATEGORIES= comms
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=openobex/}
|
|
|
|
|
2008-05-25 23:20:07 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2006-10-04 22:46:42 +02:00
|
|
|
HOMEPAGE= http://openobex.triq.net/
|
2004-02-26 13:49:23 +01:00
|
|
|
COMMENT= Implementation of the Object Exchange (OBEX) protocol
|
|
|
|
|
2008-06-20 03:09:05 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2006-07-03 21:18:57 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2006-07-09 11:27:52 +02:00
|
|
|
USE_TOOLS+= autoconf gmake pkg-config
|
2006-07-03 21:18:57 +02:00
|
|
|
USE_LIBTOOL= yes
|
|
|
|
|
2006-12-19 19:09:23 +01:00
|
|
|
PKGCONFIG_OVERRIDE= openobex.pc.in
|
2004-02-26 13:49:23 +01:00
|
|
|
|
2006-07-02 20:16:53 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2009-03-20 20:42:20 +01:00
|
|
|
.if ((${OPSYS} == "NetBSD" && exists(/usr/include/bluetooth.h)) || ${OPSYS} == "DragonFly")
|
2006-07-06 18:27:28 +02:00
|
|
|
SUBST_CLASSES+= bt
|
2006-07-02 20:16:53 +02:00
|
|
|
SUBST_STAGE.bt= post-patch
|
2006-07-09 11:27:52 +02:00
|
|
|
SUBST_FILES.bt= include/obex.h
|
2009-03-20 20:42:20 +01:00
|
|
|
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\>,"
|
2006-07-02 20:16:53 +02:00
|
|
|
SUBST_MESSAGE.bt= Fixing bluetooth detection.
|
|
|
|
.endif
|
|
|
|
|
2006-07-09 11:27:52 +02:00
|
|
|
post-patch:
|
|
|
|
cd ${WRKSRC} && autoconf
|
|
|
|
|
|
|
|
.include "../../devel/libusb/buildlink3.mk"
|
2004-02-26 13:49:23 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|