31 lines
883 B
Makefile
31 lines
883 B
Makefile
# $NetBSD: Makefile,v 1.3 2011/07/29 15:11:40 bouyer Exp $
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
.include "../../sysutils/ups-nut/Makefile.common"
|
|
|
|
PKGNAME= ${DISTNAME:S/nut/ups-nut-usb/}
|
|
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"
|