blob: 738b52005b9cbd7b6cb381066d71b9e8c56c3cea (
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
38
39
40
41
42
43
44
45
46
47
|
# $NetBSD: Makefile,v 1.19 2019/08/06 08:50:28 maya Exp $
DISTNAME= libusb-1.0.22
PKGNAME= ${DISTNAME:S/libusb/libusb1/}
PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libusb/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://libusb.info/
COMMENT= USB Access Library (version 1)
LICENSE= gnu-lgpl-v2.1
# Works on Dragonfly but explicitly not wanted by DragonFly upstream;
# see PR 47042.
NOT_FOR_PLATFORM= DragonFly-*-*
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config
MAKE_JOBS_SAFE= no
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mclang)
# Uses undefined behaviour
BUILDLINK_TRANSFORM+= opt:-O2:-O1
CFLAGS+= -fno-strict-aliasing
.endif
PKGCONFIG_OVERRIDE+= libusb-1.0.pc.in
# systemd dependency
CONFIGURE_ARGS.Linux+= --disable-udev
CONFIGURE_ARGS+= --enable-tests-build
#CONFIGURE_ARGS+= --enable-examples-build
LDFLAGS.SunOS+= -lcmdutils # list_create(9F)
CONFLICTS= libusbx-[0-9]*
do-test:
cd ${WRKSRC}/tests && ./stress
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|