COMMENT= cryptographic library
DISTNAME= nettle-4.0
REVISION= 0
SHARED_LIBS += hogweed 4.0 # 6.7
SHARED_LIBS += nettle 8.0 # 8.7
CATEGORIES= security devel
HOMEPAGE= http://www.lysator.liu.se/~nisse/nettle/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# LGPLv2.1+
PERMIT_PACKAGE= Yes
# stdalign.h
COMPILER= base-clang ports-gcc
COMPILER_LANGS= c
WANTLIB += c gmp
SITES= ${SITE_GNU:=nettle/}
LIB_DEPENDS= devel/gmp
USE_GMAKE= Yes
AUTOCONF_VERSION= 2.72
CONFIGURE_STYLE= autoconf
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
DEBUG_PACKAGES= ${BUILD_PACKAGES}
MAKE_FLAGS= LIBNETTLE_SONAME=libnettle.so.${LIBnettle_VERSION} \
LIBNETTLE_FILE=libnettle.so.${LIBnettle_VERSION} \
LIBHOGWEED_SONAME=libhogweed.so.${LIBhogweed_VERSION} \
LIBHOGWEED_FILE=libhogweed.so.${LIBhogweed_VERSION}
.include <bsd.port.mk>