sthen 25f0e460f2 Add COMPILER lines to c++ ports which currently use the default. Adjust
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.
2018-10-24 14:27:57 +00:00

61 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.27 2018/10/24 14:28:10 sthen Exp $
COMMENT-main = Qt Cryptographic Architecture for Qt4
COMMENT-ossl = SSL/TLS plugin
COMMENT-gnupg = GnuPG plugin
VERSION = 2.1.3
DISTNAME = qca-${VERSION}
PKGNAME-main = qca-${VERSION}
PKGNAME-ossl = qca-ossl-${VERSION}
PKGNAME-gnupg = qca-gnupg-${VERSION}
REVISION-main = 4
REVISION-ossl = 2
REVISION-gnupg =2
CATEGORIES = security
SHARED_LIBS += qca 3.0 # 2.1
HOMEPAGE = https://userbase.kde.org/QCA
# LGPLv2.1
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += QtCore c m ${COMPILER_LIBCXX}
WANTLIB-ossl += QtCore crypto m qca ssl ${COMPILER_LIBCXX}
WANTLIB-gnupg += QtCore m qca ${COMPILER_LIBCXX}
COMPILER = base-clang ports-gcc base-gcc
MASTER_SITES = ${MASTER_SITE_KDE:=stable/qca/${VERSION}/src/}
EXTRACT_SUFX = .tar.xz
# Plugins: qca-botan qca-cyrus-sasl qca-gcrypt qca-gnupg qca-logger
# qca-nss qca-ossl qca-pkcs11 qca-softstore
MULTI_PACKAGES = -main -ossl -gnupg
CFLAGS += -DOPENSSL_NO_SSL2 \
-DOPENSSL_NO_SSL3_METHOD
CONFIGURE_ARGS = -DCMAKE_INSTALL_PREFIX=${LOCALBASE} \
-DQCA_MAN_INSTALL_DIR=${LOCALBASE}/man \
-DQCA_BINARY_INSTALL_DIR=${PREFIX}/bin \
-DQCA_FEATURE_INSTALL_DIR=${LOCALBASE}/lib/qt4/mkspecs/features \
-DBUILD_PLUGINS="ossl;gnupg" \
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen:Bool=ON \
-Dqca_CERTSTORE=/etc/ssl/cert.pem \
-DQT4_BUILD:Bool=ON
MODULES = devel/cmake
LIB_DEPENDS = x11/qt4
LIB_DEPENDS-ossl += ${BUILD_PKGPATH},-main
LIB_DEPENDS-gnupg += ${BUILD_PKGPATH},-main
RUN_DEPENDS-gnupg += security/gnupg
.include <bsd.port.mk>