571299e406
anything but 32 bits (and unsigned is 32 bits in pretty much all modern platforms.) this allows ups-nut-usb to work on sparc64 for me, otherwise the hidparser fails. bump pkg revision for ups-nut-usb, as that pkg changes (at least for big endian platforms.)
30 lines
861 B
Makefile
30 lines
861 B
Makefile
# $NetBSD: Makefile,v 1.5 2015/11/10 08:52:38 mrg Exp $
|
|
|
|
.include "../../sysutils/ups-nut/Makefile.common"
|
|
|
|
PKGNAME= ${DISTNAME:S/nut/ups-nut-usb/}
|
|
PKGREVISION= 1
|
|
COMMENT= Network UPS Tools USB drivers
|
|
|
|
DEPENDS+= ups-nut-2.*:../../sysutils/ups-nut
|
|
|
|
INSTALLATION_DIRS+= ${PREFIX}/libexec/nut
|
|
INSTALLATION_DIRS+= ${PREFIX}/${PKGMANDIR}/man8
|
|
|
|
BUILD_DEFS+= NUT_STATEDIR
|
|
|
|
CONFIGURE_ARGS+= --with-usb --with-drvpath=${NUT_DRVDIR:Q}
|
|
|
|
do-install:
|
|
for f in usbhid-ups bcmxcp_usb tripplite_usb blazer_usb richcomm_usb;\
|
|
do \
|
|
${INSTALL_PROGRAM} ${WRKSRC}/drivers/$$f \
|
|
${DESTDIR}${PREFIX}/libexec/nut/; \
|
|
done
|
|
for f in usbhid-ups.8 bcmxcp_usb.8 tripplite_usb.8 richcomm_usb.8; do \
|
|
${INSTALL_MAN} ${WRKSRC}/docs/man/$$f \
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/; \
|
|
done
|
|
|
|
.include "../../devel/libusb/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|