some existing COMPILER lines with arch restrictions etc. In the usual case this is now using "COMPILER = base-clang ports-gcc base-gcc" on ports with c++ libraries in WANTLIB. This is basically intended to be a noop on architectures using clang as the system compiler, but help with other architectures where we currently have many ports knocked out due to building with an unsuitable compiler - - some ports require c++11/newer so the GCC version in base that is used on these archirtectures is too old. - some ports have conflicts where an executable is built with one compiler (e.g. gcc from base) but a library dependency is built with a different one (e.g. gcc from ports), resulted in mixing incompatible libraries in the same address space. devel/gmp is intentionally skipped as it's on the path to building gcc - the c++ library there is unused in ports (and not built by default upstream) so intending to disable building gmpcxx in a future commit.
54 lines
1.3 KiB
Makefile
54 lines
1.3 KiB
Makefile
# $OpenBSD: Makefile,v 1.22 2018/10/24 14:28:00 sthen Exp $
|
|
|
|
COMMENT = C++ library of cryptographic algorithms
|
|
CATEGORIES = devel security
|
|
|
|
HOMEPAGE = http://www.cryptopp.com/
|
|
MASTER_SITES = ${HOMEPAGE}
|
|
DISTNAME = cryptopp565
|
|
PKGNAME = cryptopp-5.6.5
|
|
REVISION = 3
|
|
|
|
EXTRACT_SUFX = .zip
|
|
WRKDIST = ${WRKDIR}
|
|
|
|
MAINTAINER = David Coppa <dcoppa@openbsd.org>
|
|
|
|
# individual files are public domain
|
|
# compilation is licensed under the Boost Software License 1.0
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
WANTLIB += m pthread ${COMPILER_LIBCXX}
|
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
SHARED_LIBS = cryptopp 4.0
|
|
|
|
USE_GMAKE = Yes
|
|
MAKE_FLAGS += CXX="${CXX}" \
|
|
CXXFLAGS="${CXXFLAGS} -Wno-unused \
|
|
-DCRYPTOPP_DISABLE_SSSE3 \
|
|
-DCRYPTOPP_DISABLE_AESNI \
|
|
-DCRYPTOPP_NO_UNALIGNED_DATA_ACCESS \
|
|
-DNDEBUG -fPIC" \
|
|
LDFLAGS="-lpthread" \
|
|
PREFIX=${PREFIX} \
|
|
LIBcryptopp_VERSION=${LIBcryptopp_VERSION}
|
|
|
|
MAKE_FILE = ${WRKDIR}/GNUmakefile
|
|
|
|
TEST_FLAGS += WRKDIST=${WRKDIST}
|
|
|
|
pre-patch:
|
|
@cd ${WRKSRC}; perl -i -pe 's/\r$$//' `find . -type f`
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/include/cryptopp
|
|
${INSTALL_DATA} ${WRKDIR}/*.h ${PREFIX}/include/cryptopp
|
|
${INSTALL_DATA} ${WRKDIR}/libcryptopp.{a,so.${LIBcryptopp_VERSION}} \
|
|
${PREFIX}/lib
|
|
${SUBST_DATA} ${FILESDIR}/cryptopp.pc \
|
|
${PREFIX}/lib/pkgconfig/cryptopp.pc
|
|
|
|
.include <bsd.port.mk>
|