mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-30 01:15:52 +00:00
edb6a9d7af
- Add LICENSE_FILE - Fix hidden dependency and optionize libftdi support PR: 195866 Approved by: maintainer timeout (joerg, 4 months)
35 lines
784 B
Makefile
35 lines
784 B
Makefile
# Created by: Brian Dean <bsd@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= avrdude
|
|
PORTVERSION= 6.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel
|
|
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>
|