Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Aug 2015 14:58:40 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r395296 - head/sysutils/usbutils
Message-ID:  <201508251458.t7PEweq4083966@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Tue Aug 25 14:58:40 2015
New Revision: 395296
URL: https://svnweb.freebsd.org/changeset/ports/395296

Log:
  - Add some mirrors
  - Add LICENSE_FILE
  - Switch to options helpers

Modified:
  head/sysutils/usbutils/Makefile

Modified: head/sysutils/usbutils/Makefile
==============================================================================
--- head/sysutils/usbutils/Makefile	Tue Aug 25 14:58:22 2015	(r395295)
+++ head/sysutils/usbutils/Makefile	Tue Aug 25 14:58:40 2015	(r395296)
@@ -5,37 +5,35 @@ PORTNAME=	usbutils
 PORTVERSION=	0.86
 PORTREVISION=	2
 CATEGORIES=	sysutils
-MASTER_SITES=	SF/linux-usb/${PORTNAME}
+MASTER_SITES=	SF/linux-usb/${PORTNAME} \
+		http://pkgs.fedoraproject.org/repo/pkgs/usbutils/usbutils-0.86.tar.gz/34979f675d2bcb3e1b45012fa830a53f/ \
+		http://ftp.be.debian.org/pub/linux/utils/usb/usbutils/
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Utility for listing USB devices
 
 LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/COPYING
 
+USES=		gmake pkgconfig
 GNU_CONFIGURE=	yes
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 CONFIGURE_ARGS=	--datadir=${DATADIR} --enable-zlib
-USES=		gmake pkgconfig
+CONFIGURE_ENV=	LIBUSB_CFLAGS="-I/usr/include" \
+		LIBUSB_LIBS="-L/usr/lib -lusb"
 
 PORTDOCS=	AUTHORS ChangeLog NEWS README
 
 OPTIONS_DEFINE=	DOCS
 
-.include <bsd.port.options.mk>
-
-CONFIGURE_ENV+=	LIBUSB_CFLAGS="-I/usr/include" \
-		LIBUSB_LIBS="-L/usr/lib -lusb"
-
 post-patch:
 	@${REINPLACE_CMD} -i '' \
 		-e 's|/bin/bash|/bin/sh|' \
 		${WRKSRC}/usb-devices
 
-post-install:
-.if ${PORT_OPTIONS:MDOCS}
+post-install-DOCS-on:
 	${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${PORTDOCS:S@^@${WRKSRC}/@} ${STAGEDIR}${DOCSDIR}
-.endif
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508251458.t7PEweq4083966>