b69741eca1
This switch is meant to be used by packages requiring an implementation of the former libusb (as in devel/libusb). The original implementation can be chosen by setting LIBUSB_TYPE to "native". The alternative implementation libusb-compat (as in devel/libusb-compat) wraps libusb1 (in devel/libusb1). This implementation can be chosen by setting LIBUSB_TYPE to "compat". On NetBSD, it has the advantage of not requiring root privileges to locate and use USB devices without a kernel driver. This second part switches packages using libusb to this framework. It does not change compilation options or dependencies at this point. Compile-tested on most packages affected and available on NetBSD/amd64.
30 lines
831 B
Makefile
30 lines
831 B
Makefile
# $NetBSD: buildlink3.mk,v 1.3 2018/02/10 13:53:46 khorben Exp $
|
|
|
|
BUILDLINK_TREE+= libticables2
|
|
|
|
.if !defined(LIBTICABLES2_BUILDLINK3_MK)
|
|
LIBTICABLES2_BUILDLINK3_MK:=
|
|
|
|
BUILDLINK_API_DEPENDS.libticables2+= libticables2>=1.3.3
|
|
BUILDLINK_PKGSRCDIR.libticables2?= ../../comms/libticables2
|
|
|
|
pkgbase := libticables2
|
|
.include "../../mk/pkg-build-options.mk"
|
|
|
|
|
|
.if !empty(PKG_BUILD_OPTIONS.libticables2:Mlibusb)
|
|
. if empty(PKG_BUILD_OPTIONS.libticables2:Mlibusb1)
|
|
.include "../../mk/libusb.buildlink3.mk"
|
|
. endif
|
|
.endif
|
|
|
|
.if !empty(PKG_BUILD_OPTIONS.libticables2:Mlibusb1)
|
|
.include "../../devel/libusb1/buildlink3.mk"
|
|
.endif
|
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
.include "../../devel/glib2/buildlink3.mk"
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
|
.endif # LIBTICABLES2_BUILDLINK3_MK
|
|
|
|
BUILDLINK_TREE+= -libticables2
|