2001-12-06 09:02:25 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# New ports collection makefile for: nettle
|
|
|
|
# Date created: Dec 6, 2001
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= nettle
|
2011-09-04 15:43:18 +00:00
|
|
|
PORTVERSION= 2.4
|
2001-12-06 09:02:25 +00:00
|
|
|
CATEGORIES= security
|
2011-07-18 08:45:55 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU} \
|
|
|
|
http://www.lysator.liu.se/~nisse/archive/:liu \
|
|
|
|
ftp://ftp.lysator.liu.se/pub/security/lsh/:liu
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}/:DEFAULT
|
2001-12-06 09:02:25 +00:00
|
|
|
|
2011-04-27 19:01:59 +00:00
|
|
|
MAINTAINER= johans@FreeBSD.org
|
2003-02-20 19:00:52 +00:00
|
|
|
COMMENT= A low-level cryptographic library
|
2001-12-06 09:02:25 +00:00
|
|
|
|
2011-07-17 16:20:58 +00:00
|
|
|
LICENSE= LGPL21
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING.LIB
|
|
|
|
|
2010-04-19 10:43:42 +00:00
|
|
|
LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp
|
2002-02-01 11:17:36 +00:00
|
|
|
|
2001-12-06 09:02:25 +00:00
|
|
|
USE_GMAKE= yes
|
2003-05-08 05:00:10 +00:00
|
|
|
USE_OPENSSL= yes
|
2002-09-20 06:42:08 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2007-07-24 15:10:14 +00:00
|
|
|
CONFIGURE_ARGS= --enable-shared
|
2011-09-03 10:50:40 +00:00
|
|
|
MAKE_ARGS= pkgconfigdir="${PREFIX}/libdata/pkgconfig"
|
2009-12-02 13:45:52 +00:00
|
|
|
|
2011-07-17 16:20:58 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2003-09-01 18:45:41 +00:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2007-05-27 09:48:24 +00:00
|
|
|
USE_LDCONFIG= yes
|
2003-10-29 21:41:31 +00:00
|
|
|
|
2009-12-02 13:45:52 +00:00
|
|
|
DOCS= NEWS README TODO nettle.html nettle.pdf
|
2005-11-24 11:25:04 +00:00
|
|
|
EXAMPLES= examples/*.c examples/*.h
|
2002-09-20 06:42:08 +00:00
|
|
|
|
2007-07-16 07:58:02 +00:00
|
|
|
INFO= nettle
|
|
|
|
|
2011-08-18 08:39:56 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's/[[:<:]]sub[[:>:]]/subl/' \
|
|
|
|
${WRKSRC}/x86/camellia-crypt-internal.asm
|
|
|
|
|
2003-10-29 21:41:31 +00:00
|
|
|
post-install:
|
2009-12-02 13:45:52 +00:00
|
|
|
.if !defined(NOPORTEXAMPLES)
|
2003-10-29 21:41:31 +00:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
|
2009-12-02 13:45:52 +00:00
|
|
|
.endif
|
2003-10-29 21:41:31 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
2001-12-06 09:02:25 +00:00
|
|
|
.include <bsd.port.mk>
|