openbsd-ports/devel/avrdude/Makefile

38 lines
989 B
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.1.1.1 2008/08/21 14:05:21 ckuethe Exp $
COMMENT= AVR microcontroller hardware in-system programmer
V= 5.5
DISTNAME= avrdude-${V}
DISTFILES+= avrdude-doc-${V}.pdf
CATEGORIES= devel
HOMEPAGE= http://www.nongnu.org/avrdude/
MAINTAINER= Chris Kuethe <ckuethe@openbsd.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c ncurses readline termcap
MASTER_SITES= http://savannah.nongnu.org/download/avrdude/
EXTRACT_ONLY= avrdude-${V}${EXTRACT_SUFX}
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= CPPFLAGS=-I${LOCALBASE}/include \
LDFLAGS=-L${LOCALBASE}/lib
LIB_DEPENDS= usb.>=1::devel/libusb
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>