freebsd-ports/sysutils/usb_modeswitch/Makefile
Alexander V. Chernikov cb04b4fb04 Update to 2.2.0.
Submitted by:	hps (initial version)
2015-01-08 12:32:38 +00:00

26 lines
791 B
Makefile

# Created by: Alexander V. Chernikov <melifaro@FreeBSD.org>
# $FreeBSD$
PORTNAME= usb_modeswitch
PORTVERSION= 2.2.0
CATEGORIES= sysutils
MASTER_SITES= http://www.draisberghof.de/usb_modeswitch/
DISTNAME= ${PORTNAME:S|_|-|}-${PORTVERSION}
MAINTAINER= melifaro@ipfw.ru
COMMENT= Handling Mode-Switching USB Devices
LICENSE= GPLv2
USES= gmake tar:bzip2
pre-patch:
${REINPLACE_CMD} 's/gcc/${CC}/' ${WRKSRC}/Makefile
${REINPLACE_CMD} 's/`pkg-config --libs --cflags libusb-1.0`/-lusb/' ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/usb_modeswitch ${STAGEDIR}${PREFIX}/sbin
${INSTALL_DATA} ${WRKSRC}/usb_modeswitch.conf ${STAGEDIR}${PREFIX}/etc/usb_modeswitch.conf.sample
${INSTALL_MAN} ${WRKSRC}/usb_modeswitch.1 ${STAGEDIR}${PREFIX}/man/man1
.include <bsd.port.mk>