openbsd-ports/security/botan/Makefile
2012-08-28 19:30:47 +00:00

63 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.7 2012/08/28 19:30:47 naddy Exp $
ONLY_FOR_ARCHS= ${GCC4_ARCHS}
COMMENT= portable, easy to use, and efficient C++ crypto library
DISTNAME= Botan-1.10.3
PKGNAME= ${DISTNAME:L}
REVISION= 1
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 pthread 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
do-regress:
@cd ${WRKBUILD} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${ALL_REGRESS_FLAGS} \
check && env LD_LIBRARY_PATH=${WRKBUILD} ./check --test
.include <bsd.port.mk>