pkgsrc/security/botan-devel/Makefile

60 lines
1.4 KiB
Makefile
Raw Normal View History

2020-05-06 16:04:05 +02:00
# $NetBSD: Makefile,v 1.36 2020/05/06 14:04:12 adam Exp $
DISTNAME= Botan-2.11.0
PKGNAME= ${DISTNAME:tl}
2020-05-06 16:04:05 +02:00
PKGREVISION= 3
CATEGORIES= security
2017-11-26 11:40:05 +01:00
MASTER_SITES= https://botan.randombit.net/releases/
EXTRACT_SUFX= .tar.xz
2016-11-11 20:46:05 +01:00
MAINTAINER= joerg@NetBSD.org
2017-11-26 11:40:05 +01:00
HOMEPAGE= https://botan.randombit.net/
COMMENT= Portable, easy to use, and efficient C++ crypto library
LICENSE= 2-clause-bsd
HAS_CONFIGURE= yes
USE_LANGUAGES= c++
PYTHON_FOR_BUILD_ONLY= yes
CONFIG_SHELL= ${PYTHONBIN}
CONFIGURE_SCRIPT= ./configure.py
CONFIGURE_ARGS+= --prefix=${PREFIX} --with-zlib --with-boost
CONFIGURE_ARGS+= --docdir=share/doc
CONFIGURE_ARGS+= --without-sphinx
REPLACE_PYTHON+= *.py src/scripts/*.py
2014-03-05 22:22:38 +01:00
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mclang)
CONFIGURE_ARGS+= --cc-bin=${CXX} --cc=clang
.else
CONFIGURE_ARGS+= --cc=gcc
2014-03-05 22:22:38 +01:00
.endif
.if ${MACHINE_ARCH} == "x86_64"
CONFIGURE_ARGS+= --cpu=amd64
.elif ${MACHINE_ARCH} == "i386"
CONFIGURE_ARGS+= --cpu=i386
.elif ${MACHINE_ARCH} == "powerpc"
CONFIGURE_ARGS+= --cpu=ppc
.elif ${MACHINE_ARCH} == "powerpc64"
CONFIGURE_ARGS+= --cpu=ppc64
.elif ${MACHINE_ARCH} == "arm"
CONFIGURE_ARGS+= --cpu=arm
.endif
MAKE_FLAGS+= LIB_OPT=${CXXFLAGS:Q}
USE_TOOLS+= gmake
PY_PATCHPLIST= yes
LDFLAGS.SunOS+= -lnsl -lsocket
.include "../../devel/zlib/buildlink3.mk"
.include "../../devel/boost-libs/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"