Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Apr 2015 11:06:19 +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: r384484 - head/devel/avrdude
Message-ID:  <201504221106.t3MB6J5D068656@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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>



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