cwen 810ffbcc70 libsigrok: use libhidapi's hid_init() instead of our usbhid(3)'s one
Because our usbhid(3) defines hid_init(3), the libhidapi's one has been
renamed to hidapi_hid_init(). Sigrok expects the libhidapi one. This led
to build failures on ld.bfd arches, and probably runtime errors on other
arches.

As such, redefine the hid_init() call to hidapi_hid_init().

OK sthen@, kmos@ (who build tested on sparc64) and
"seems ok to me" bentley@ (maintainer)
2021-04-12 11:22:33 +00:00

50 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.12 2021/04/12 11:22:33 cwen Exp $
COMMENT = sigrok hardware driver library
SIGROK_PROJECT = libsigrok
SIGROK_VERSION = 0.5.2
MODPY_EGG_VERSION = ${SIGROK_VERSION}
REVISION = 1
SHARED_LIBS += sigrok 0.1 # 0.0
SHARED_LIBS += sigrokcxx 0.1 # 4.0
WANTLIB += ${COMPILER_LIBCXX}
WANTLIB += ftdi1 glib-2.0 glibmm-2.4 gio-2.0 hidapi-libusb
WANTLIB += gobject-2.0 iconv intl m serialport sigc-2.0 usb-1.0
WANTLIB += zip
# C++11
COMPILER = base-clang ports-gcc
MODULES = lang/python
BUILD_DEPENDS = devel/check \
devel/doxygen \
devel/py-gobject3${MODPY_FLAVOR} \
devel/swig \
math/py-numpy${MODPY_FLAVOR}
LIB_DEPENDS = archivers/libzip \
comms/libhidapi \
comms/sigrok/libserialport \
devel/glib2mm \
devel/libftdi1 \
devel/libusb1
RUN_DEPENDS = misc/shared-mime-info \
x11/gtk+3,-guic
TEST_DEPENDS = devel/check
# /usr/bin/../lib/crt0.o: In function `_start':
# (.text+0x52): undefined reference to `main'
USE_LIBTOOL = gnu
CONFIGURE_ARGS = --disable-ruby
DEBUG_PACKAGES = ${BUILD_PACKAGES}
.include <bsd.port.mk>