svn commit: r384484 - head/devel/avrdude

Dmitry Marakasov amdmi3 at FreeBSD.org
Wed Apr 22 11:06:19 UTC 2015


Author: amdmi3
Date: Wed Apr 22 11:06:18 2015
New Revision: 384484
URL: https://svnweb.freebsd.org/changeset/ports/384484

Log:
  - Simplify MASTER_SITES
  - Add LICENSE_FILE
  - Fix hidden dependency and optionize libftdi support
  
  PR:		195866
  Approved by:	maintainer timeout (joerg, 4 months)

Modified:
  head/devel/avrdude/Makefile

Modified: head/devel/avrdude/Makefile
==============================================================================
--- head/devel/avrdude/Makefile	Wed Apr 22 11:03:39 2015	(r384483)
+++ head/devel/avrdude/Makefile	Wed Apr 22 11:06:18 2015	(r384484)
@@ -3,18 +3,32 @@
 
 PORTNAME=	avrdude
 PORTVERSION=	6.1
+PORTREVISION=	1
 CATEGORIES=	devel
-MASTER_SITES=	${MASTER_SITE_SAVANNAH}
-MASTER_SITE_SUBDIR=	avrdude
+MASTER_SITES=	SAVANNAH/avrdude
 
 MAINTAINER=	joerg at FreeBSD.org
 COMMENT=	Program for programming the on-chip memory of Atmel AVR CPUs
 
 LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/COPYING
 
 GNU_CONFIGURE=	yes
 LDFLAGS+=	-L${LOCALBASE}/lib
 CFLAGS+=	-I${LOCALBASE}/include
 MAKE_JOBS_UNSAFE=	yes
 
+OPTIONS_DEFINE=	FTDI
+OPTIONS_DEFAULT=	FTDI
+FTDI_DESC=	libftdi support
+FTDI_LIB_DEPENDS=	libftdi1.so:${PORTSDIR}/devel/libftdi1
+
+.include <bsd.port.options.mk>
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|-lusb-1.0|-lusb|g' ${WRKSRC}/configure
+.if ! ${PORT_OPTIONS:MFTDI}
+	@${REINPLACE_CMD} -e '/LIBS=/ s|-lftdi1*|&-do-not-detect|' ${WRKSRC}/configure
+.endif
+
 .include <bsd.port.mk>


More information about the svn-ports-head mailing list