openbsd-ports/security/botan/Makefile
ajacoutot f6c4c2aeb4 Update to Botan 1.10.3.
A change in 1.10.2 accidentally broke ABI compatibility with
1.10.1 and earlier versions, causing programs compiled against
1.10.1 to crash if linked with 1.10.2 at runtime.

Recent versions of OpenSSL include extra information in ECC
private keys, the presence of which caused an exception when
such a key was loaded by botan. The decoding of ECC private
keys has been changed to ignore these fields if they are set.

from Brad
2012-07-15 08:12:13 +00:00

65 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.4 2012/07/15 08:12:13 ajacoutot Exp $
ONLY_FOR_ARCHS= ${GCC4_ARCHS}
COMMENT= portable, easy to use, and efficient C++ crypto library
DISTNAME= Botan-1.10.3
PKGNAME= ${DISTNAME:L}
CATEGORIES= security
MASTER_SITES= ${HOMEPAGE}files/
EXTRACT_SUFX= .tbz
SHARED_LIBS= botan-1.10 0.1
HOMEPAGE= http://botan.randombit.net/
# BSD
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= bz2 crypto gmp m stdc++ z
MODULES= lang/python
MODPY_RUNDEP= No
LIB_DEPENDS= archivers/bzip2 \
devel/gmp
BUILD_DEPENDS= devel/boost
MAKE_FLAGS= CXX="${CXX}" LIB_OPT="${CXXFLAGS} -finline-functions" \
CHECK_OPT="${CXXFLAGS}" LDFLAGS="-L${LOCALBASE}/lib" \
LIBbotan_VERSION=${LIBbotan-1.10_VERSION}
FAKE_FLAGS= LIBbotan_VERSION=${LIBbotan-1.10_VERSION}
CXXFLAGS+= -I${LOCALBASE}/include
CONFIGURE_STYLE= simple
CONFIGURE_SCRIPT= ${MODPY_BIN} ./configure.py
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--cpu=${MACHINE_ARCH} \
--prefix=${PREFIX} \
--with-bzip2 \
--with-gnump \
--with-openssl \
--with-zlib \
--without-sphinx
.if ${MACHINE_ARCH} == "amd64"
CONFIGURE_ARGS+=--disable-asm
PKG_ARGS+= -Damd64=1
.else
PKG_ARGS+= -Damd64=0
.endif
post-configure:
@perl -pi -e "s|-lpthread|-pthread|g" ${WRKSRC}/Makefile
do-regress:
@cd ${WRKBUILD} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${ALL_REGRESS_FLAGS} \
check && env LD_LIBRARY_PATH=${WRKBUILD} ./check --test
.include <bsd.port.mk>