openbsd-ports/sysutils/hcidump/Makefile
jasper fe86351074 import bluez-hcidump 1.42
HCIdump reads raw HCI data coming from and going to a Bluetooth device
and prints to screen commands, events and data in a human-readable form.
Optionally, the dump can be written to a file rather than parsed, and
the dump file can be parsed in a subsequent moment.

from jcs@, with some tweaks by me
requested by uwe@
2008-11-29 09:54:49 +00:00

37 lines
977 B
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2008/11/29 09:54:49 jasper Exp $
COMMENT= Bluetooth packet analyzer
DISTNAME= bluez-hcidump-1.42
LIB_DISTNAME= bluez-libs-3.36
CATEGORIES= sysutils
MASTER_SITES= http://bluez.sourceforge.net/download/
HOMEPAGE= http://www.bluez.org/
DISTFILES= ${DISTNAME}.tar.gz \
${LIB_DISTNAME}.tar.gz
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c
LIB_DEPENDS= bluetooth.>=2.0::devel/bluetooth-libs
MAKE_FLAGS= "LDFLAGS+=-L${LOCALBASE}/lib"
post-extract:
mkdir ${WRKSRC}/bluetooth
cp ${WRKDIR}/${LIB_DISTNAME}/include/{bluetooth.h,hci.h,hci_lib.h,l2cap.h} \
${WRKSRC}/bluetooth
cp ${WRKDIR}/${LIB_DISTNAME}/src/bluetooth.c ${WRKSRC}/src/bt_lib.c
cp ${WRKDIR}/${LIB_DISTNAME}/src/hci.c ${WRKSRC}/src/hci_lib.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/hcidump ${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/src/hcidump.8 ${PREFIX}/man/man8
.include <bsd.port.mk>