2014-09-18 06:15:07 +00:00

48 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.13 2014/09/18 06:15:07 ajacoutot Exp $
COMMENT= cryptographic library
DISTNAME= nettle-2.7.1
PKGNAME= lib${DISTNAME}
REVISION= 1
SHARED_LIBS += hogweed 1.1 # 2.3
SHARED_LIBS += nettle 1.2 # 4.5
CATEGORIES= security devel
HOMEPAGE= http://www.lysator.liu.se/~nisse/nettle/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# LGPLv2.1+
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += c gmp
MASTER_SITES= ${MASTER_SITE_GNU:=nettle/}
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
# binutils 2.15 can't handle memxor.s
.if ${MACHINE_ARCH} == "arm"
CONFIGURE_ARGS += --disable-assembler
.endif
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>