1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/security/nettle/Makefile
2013-12-01 09:16:16 +00:00

55 lines
1.2 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= nettle
PORTVERSION= 2.7.1
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= Low-level cryptographic library
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/COPYING.LIB
LIB_DEPENDS= libgmp.so:${PORTSDIR}/math/gmp
USES= gmake
USE_OPENSSL= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV+= M4="/usr/bin/m4 -g"
CONFIGURE_ARGS= --enable-shared
MAKE_ARGS= pkgconfigdir="${PREFIX}/libdata/pkgconfig"
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
USE_LDCONFIG= yes
PORTDOCS= NEWS README TODO nettle.html nettle.pdf
PORTEXAMPLES= *.c *.h
INFO= nettle
.include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64"
CONFIGURE_ENV+= CCPIC=-fPIC
.endif
.include <bsd.port.options.mk>
post-install:
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/examples && ${INSTALL_DATA} ${PORTEXAMPLES} \
${STAGEDIR}${EXAMPLESDIR}
.endif
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.post.mk>