openbsd-ports/security/libnettle/Makefile
ajacoutot fd064b31d7 Import libnettle-2.1.
Nettle is a cryptographic library that is designed to fit easily in more
or less any context: In crypto toolkits for object-oriented languages
(C++, Python, Pike, ...), in applications like LSH or GNUPG, or even in
kernel space. In most contexts, you need more than the basic
cryptographic algorithms, you also need some way to keep track of
available algorithms, their properties and variants. You often have some
algorithm selection process, often dictated by a protocol you want to
implement.
<...>

ok jasper@ landry@
2011-04-15 16:08:01 +00:00

44 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2011/04/15 16:08:01 ajacoutot Exp $
COMMENT= cryptographic library
DISTNAME= nettle-2.1
PKGNAME= lib${DISTNAME}
SHARED_LIBS += hogweed 0.0 # 2.0
SHARED_LIBS += nettle 0.0 # 4.0
CATEGORIES= security devel
HOMEPAGE= http://www.lysator.liu.se/~nisse/nettle/
# GPLv2 - LGPLv2.1
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += c gmp
MASTER_SITES= http://www.lysator.liu.se/~nisse/archive/ \
ftp://ftp.lysator.liu.se/pub/security/lsh
BUILD_DEPENDS= devel/m4
LIB_DEPENDS= devel/gmp
USE_GMAKE= Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= ${CONFIGURE_SHARED}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
M4=${LOCALBASE}/bin/gm4
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>