# $NetBSD: Makefile,v 1.8 2018/03/28 06:23:34 mrg Exp $ .include "../../sysutils/ups-nut/Makefile.common" PKGNAME= ${DISTNAME:S/nut/ups-nut-usb/} PKGREVISION= 3 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 "../../mk/libusb.buildlink3.mk" .include "../../mk/bsd.pkg.mk"