# ex:ts=8
# Ports collection makefile for:	libqrencode
# Date created:			Dec 14, 2006
# Whom:				ijliao
#
# $FreeBSD: ports/graphics/libqrencode/Makefile,v 1.18 2010/03/29 03:15:59 vanilla Exp $
#

PORTNAME=	libqrencode
PORTVERSION=	3.1.1
PORTREVISION=	1
CATEGORIES=	graphics
MASTER_SITES=	http://megaui.net/fukuchi/works/qrencode/
DISTNAME=	qrencode-${PORTVERSION}

MAINTAINER=	vanilla@FreeBSD.org
COMMENT=	A C library for encoding data in a QR Code symbol

LIB_DEPENDS=	png.6:${PORTSDIR}/graphics/png

USE_GNOME=	gnometarget gnomehack pkgconfig
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	LDFLAGS="-L${LOCALBASE}/lib"
CFLAGS+=	-I${LOCALBASE}/include
USE_LDCONFIG=	yes

MAN1=		qrencode.1

PLIST_FILES=	bin/qrencode \
		include/qrencode.h \
		lib/libqrencode.la \
		lib/libqrencode.so \
		lib/libqrencode.so.3 \
		libdata/pkgconfig/libqrencode.pc

post-patch:
	@${REINPLACE_CMD} -e 's,libpng12,libpng,' ${WRKSRC}/configure

.include <bsd.port.mk>
