1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00
freebsd-ports/security/nettle/Makefile
2011-09-04 15:43:18 +00:00

55 lines
1.2 KiB
Makefile

# ex:ts=8
# New ports collection makefile for: nettle
# Date created: Dec 6, 2001
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= nettle
PORTVERSION= 2.4
CATEGORIES= security
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
MAINTAINER= johans@FreeBSD.org
COMMENT= A low-level cryptographic library
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/COPYING.LIB
LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp
USE_GMAKE= yes
USE_OPENSSL= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-shared
MAKE_ARGS= pkgconfigdir="${PREFIX}/libdata/pkgconfig"
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
USE_LDCONFIG= yes
DOCS= NEWS README TODO nettle.html nettle.pdf
EXAMPLES= examples/*.c examples/*.h
INFO= nettle
post-patch:
@${REINPLACE_CMD} -e 's/[[:<:]]sub[[:>:]]/subl/' \
${WRKSRC}/x86/camellia-crypt-internal.asm
post-install:
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
.include <bsd.port.mk>