summaryrefslogblamecommitdiff
path: root/security/nettle/Makefile
blob: 40f0c810b755efb8cb13e01b2662d282f9ee052b (plain) (tree)
1
2
3
4
5
6
7
8
9








                                              
                   
                 



                                                           
                                 
                                                 
 
                                              
 
                   
                   
                   
                                                             
                                                               
                               
                                  




                                                         


                                        
 







                                                                  
                      
# ex:ts=8
# New ports collection makefile for:	nettle
# Date created:			Dec 6, 2001
# Whom:				ijliao
#
# $FreeBSD$
#

PORTNAME=	nettle
PORTVERSION=	1.7
PORTREVISION=	1
CATEGORIES=	security
MASTER_SITES=	http://www.lysator.liu.se/~nisse/archive/ \
		ftp://ftp.lysator.liu.se/pub/security/lsh/

MAINTAINER=	jim@corebsd.or.id
COMMENT=	A low-level cryptographic library

LIB_DEPENDS=	gmp.6:${PORTSDIR}/math/libgmp4

USE_GMAKE=	yes
USE_OPENSSL=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include"
CONFIGURE_TARGET=	--build=${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS=	--enable-shared
LDFLAGS+=	-L${LOCALBASE}/lib
INSTALLS_SHLIB=	yes

DOCS=		NEWS README TODO nettle.html
EXAMPLES=	examples/README examples/*.c examples/*.h
INFO=		nettle

post-extract:
	@${RM} -f ${WRKSRC}/nettle.info*

post-install:
	@${MKDIR} ${EXAMPLESDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif

.include <bsd.port.mk>