aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/usbutils/Makefile
blob: 1f7737fa4ebf8a38fca652dcb6f4f17a48713747 (plain) (blame)
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
# Created by: Henrik Brix Andersen <brix@FreeBSD.org>
# $FreeBSD$

PORTNAME=   usbutils
PORTVERSION=    0.91
DISTVERSIONPREFIX=  v
CATEGORIES= sysutils

MAINTAINER= sunpoet@FreeBSD.org
COMMENT=    Utility for listing USB devices

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

RUN_DEPENDS=    usbhid-dump:sysutils/usbhid-dump \
        ${LOCALBASE}/share/usbids/usb.ids:misc/usbids

OPTIONS_DEFINE= DOCS

CONFIGURE_ARGS= --datadir=${LOCALBASE}/share/usbids --enable-zlib
CONFIGURE_ENV=  LIBUSB_CFLAGS="-I/usr/include" LIBUSB_LIBS="-L/usr/lib -lusb"
GNU_CONFIGURE=  yes
USES=       autoreconf gmake pkgconfig shebangfix

PORTDOCS=   AUTHORS ChangeLog NEWS README

GH_ACCOUNT= gregkh
USE_GITHUB= yes

SHEBANG_FILES=  usb-devices

post-install-DOCS-on:
    ${MKDIR} ${STAGEDIR}${DOCSDIR}/
    cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/

.include <bsd.port.mk>