1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-18 08:02:48 +00:00
freebsd-ports/security/nettle/Makefile
Dmitry Marakasov 85ff7141a3 - Don't try to use lib32 directory, fixes build on mips
- While here, tiny whitespace fix

MFH:		2018Q1
Approved by:	portmgr blanket
2018-01-10 12:02:42 +00:00

57 lines
1.3 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= nettle
PORTVERSION= 3.4
CATEGORIES= security
MASTER_SITES= GNU \
http://www.lysator.liu.se/~nisse/archive/
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Low-level cryptographic library
LICENSE= GPLv2+ LGPL3
LICENSE_COMB= multi
LICENSE_FILE_GPLv2= ${WRKSRC}/COPYINGv2
LICENSE_FILE_GPLv3= ${WRKSRC}/COPYINGv3
LICENSE_FILE_LGPL3= ${WRKSRC}/COPYING.LESSERv3
LIB_DEPENDS= libgmp.so:math/gmp
OPTIONS_DEFINE= DOCS EXAMPLES
CONFIGURE_ARGS= --enable-shared
CONFIGURE_ENV= M4="/usr/bin/m4 -g"
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
USES= gmake localbase makeinfo pathfix
INFO= nettle
PORTDOCS= NEWS README TODO nettle.html nettle.pdf
PORTEXAMPLES= *.c *.h
.include <bsd.port.options.mk>
.if ${ARCH} == "sparc64"
CONFIGURE_ENV+= CCPIC=-fPIC
.endif
post-patch:
@${REINPLACE_CMD} -e '/libdir=/ s|lib32|lib|' ${WRKSRC}/configure
.if ${ARCH} == "mips64"
@${REINPLACE_CMD} -e 's|__sgi|__unix__|' ${WRKSRC}/configure
.endif
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib*.so
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/examples && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>