1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00

devel/librevisa: fix build error

On FreeBSD versions where libusb.h defines LIBUSB_CLASS_APPLICATION, the extra
definition from the Makefile prevents the port from building. Remove that extra
definition.

While here, add build dependency for pkg-config

PR:	236750
Submitted by:	jcfyecrayz@liamekaens.com
This commit is contained in:
Fernando Apesteguía 2019-04-02 21:02:34 +00:00
parent 9ebd0a5e42
commit bae9287a21
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=497588

View File

@ -10,12 +10,12 @@ MASTER_SITES= http://www.librevisa.org/download/
MAINTAINER= ports@FreeBSD.org
COMMENT= Library for interfacing test and measurement equipment
BUILD_DEPENDS= pkg-config:devel/pkgconf
USES= gmake pathfix libtool
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
# Workaround FreeBSD 9.1+ libusb not knowing LIBUSB_CLASS_APPLICATION
CPPFLAGS+= -DLIBUSB_CLASS_APPLICATION=0xfe
GNU_CONFIGURE= yes
post-install:
${STRIP_CMD} ${STAGEDIR}${LOCALBASE}/lib/libvisa.so