# New ports collection Makefile for:	ucommon
# Date created:				21 February 2011
# Whom:					gahr
#
# $FreeBSD: ports/devel/ucommon/Makefile,v 1.17 2012/02/13 08:50:13 gahr Exp $
#

PORTNAME=	ucommon
PORTVERSION=	5.2.1
CATEGORIES=	devel
MASTER_SITES=	GNU
MASTER_SITE_SUBDIR=	commoncpp

MAINTAINER=	gahr@FreeBSD.org
COMMENT=	A very light-weight C++ design patternlibrary

LICENSE=	LGPL3

USE_GNOME=	pkgconfig gnomehack
USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes
CFLAGS+=	-D__BSD_VISIBLE
LDFLAGS+=	${PTHREAD_LIBS}
CONFIGURE_ARGS+=--bindir=${PREFIX}/bin/${PORTNAME}

MAN1=	args.1 car.1 commoncpp-config.1 mdsum.1 pdetach.1 \
	scrub-files.1 sockaddr.1 ucommon-config.1 zerofill.1

post-patch:
	${REINPLACE_CMD} -e '/HAVE_OPENSSL_FIPS_H/s/define/undef/' \
	   ${WRKSRC}/${CONFIGURE_SCRIPT}

test:	build
	cd ${WRKSRC}/test && ${MAKE} check
	

.include <bsd.port.mk>
