# New ports collection makefile for:	libftdi
# Date created:				2006-07-27
# Whom:					Olexandr Davydenko <o.davydenko@gmail.com>
#
# $FreeBSD: ports/devel/libftdi/Makefile,v 1.2 2006/07/31 15:09:09 itetcu Exp $
#

PORTNAME=	libftdi
PORTVERSION=	0.7
CATEGORIES=	devel
MASTER_SITES=	http://www.intra2net.com/de/produkte/opensource/ftdi/TGZ/

MAINTAINER=	o.davydenko@gmail.com
COMMENT=	A library (using libusb) to talk to FTDI chips

LIB_DEPENDS=	usb-0.1:${PORTSDIR}/devel/libusb

GNU_CONFIGURE=		yes
CONFIGURE_ENV=		CFLAGS="${CFLAGS} -I${LOCALBASE}/include"
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_LDCONFIG=		yes
USE_GNOME=		pkgconfig gnomehack

PORTDOCS=		COPYING.LIB ChangeLog README
PLIST_FILES=		bin/libftdi-config \
				include/ftdi.h \
				lib/libftdi.a \
				lib/libftdi.la \
				lib/libftdi.so \
				lib/libftdi.so.7 \
				libdata/pkgconfig/libftdi.pc

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
.for FILE in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>
