# New ports collection Makefile for:	matrixssl
# Date created:				2006-03-17
# Whom:					arved
#
# $FreeBSD: ports/security/matrixssl/Makefile,v 1.3 2008/04/19 17:53:26 miwi Exp $

PORTNAME=	matrixssl
PORTVERSION=	1.8.3
CATEGORIES=	security
MASTER_SITES=	${MASTER_SITE_GENTOO}
MASTER_SITE_SUBDIR=	distfiles
DISTNAME=	${PORTNAME}-${PORTVERSION:S,.,-,g}-open

MAINTAINER=	arved@FreeBSD.org
COMMENT=	Small alternative SSL implementation

USE_GMAKE=	yes
WRKSRC=		${WRKDIR}/${DISTNAME}/src
USE_LDCONFIG=	yes

do-install:
	${INSTALL_DATA} ${WRKSRC}/libmatrixssl* ${PREFIX}/lib
	${INSTALL_DATA} ${WRKSRC}/../*.h ${PREFIX}/include
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${CP} ${WRKSRC}/../doc/* ${DOCSDIR}
	${MKDIR} ${EXAMPLESDIR}
	${CP} ${WRKSRC}/../examples/* ${EXAMPLESDIR}
	-cd ${EXAMPLESDIR}; ${RM} *.vcproj *.sln *.orig
.endif

.include <bsd.port.mk>
