# New ports collection makefile for:	e2fsprogs-libuuid
# Date created:				26 Jan 2006
# Whom:					Matthias Andree <matthias.andree@gmx.de>
#
# $FreeBSD: ports/misc/e2fsprogs-libuuid/Makefile,v 1.6 2007/10/02 15:45:18 timur Exp $
#

PORTREVISION=	0
CATEGORIES=	misc devel
PKGNAMESUFFIX=	-libuuid

COMMENT=	UUID library from e2fsprogs package

CONFLICTS=	ossp-uuid-[0-9]*

CONFIGURE_ARGS=	--enable-elf-shlibs

WITHOUT_NLS=	yes
MASTERDIR=	${.CURDIR}/../../sysutils/e2fsprogs
MAKE_ARGS=	LIB_SUBDIRS=lib/uuid
USE_LDCONFIG=	yes
ALL_TARGET=	libs
INSTALL_TARGET=	install install-shlibs
INSTALL_WRKSRC=	${WRKSRC}/lib/uuid

MAN3=		uuid.3 uuid_clear.3 uuid_compare.3 uuid_copy.3 uuid_generate.3 \
		uuid_is_null.3 uuid_parse.3 uuid_time.3 uuid_unparse.3 \
		uuid_generate_random.3 uuid_generate_time.3

PKGDIR=		${.CURDIR}

pre-build:
	${MKDIR} ${WRKSRC}/lib/uuid/elfshared

post-build:
	cd ${INSTALL_WRKSRC} && ${MAKE} check

.include "${MASTERDIR}/Makefile"
