edd d68719c45d Update to avrdude-5.11.
This is gonzalo's work he posted to ports@ a while back. I have just
remerged the diff for -current.

Tested on an arduino mega (clone) and an arduino uno.

OK gonzalo@
2013-05-05 16:48:08 +00:00

38 lines
968 B
Makefile

# $OpenBSD: Makefile,v 1.20 2013/05/05 16:48:08 edd Exp $
COMMENT= AVR microcontroller hardware in-system programmer
V= 5.11
DISTNAME= avrdude-${V}
DISTFILES+= avrdude-${V}.tar.gz avrdude-doc-${V}.pdf
CATEGORIES= devel
HOMEPAGE= http://www.nongnu.org/avrdude/
MAINTAINER= Chris Kuethe <ckuethe@openbsd.org>
# GPLv2+
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += c m ncurses pthread readline termcap usb usb-1.0
MASTER_SITES= ${MASTER_SITE_SAVANNAH:=avrdude/}
EXTRACT_ONLY= avrdude-${V}${EXTRACT_SUFX}
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -pthread"
LIB_DEPENDS= devel/libusb-compat
SUBST_VARS+= V
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/avrdude
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/avrdude
${INSTALL_DATA} ${WRKSRC}/avrdude.conf ${PREFIX}/share/examples/avrdude
${INSTALL_DATA} ${FULLDISTDIR}/avrdude-doc-${V}.pdf \
${PREFIX}/share/doc/avrdude
.include <bsd.port.mk>