freebsd-ports/Mk/Uses/qca.mk
Tobias C. Berner 62aa63f89c devel/qca: update to 2.3
- qca-2.3 drop support for OSSL<1.1
- copy devel/qca to devel/qca-legacy which is held at the current version
- update devel/qca to 2.3
- Add Uses/qca.mk which handles dependency on either of the ports depending on
  the FreeBSD version

Users on FreeBSD11 must therefore change their pkg orign à la:

   pkg set -o devel/qca:devel/qca-legacy

PR:		244682
Exp-run by:	antoine
Reviewed by:	arrowd
Differential Revision:	https://reviews.freebsd.org/D24042
2020-03-21 07:23:59 +00:00

32 lines
561 B
Makefile

# $FreeBSD$
#
# Handle dependency on qca
#
# Feature: qca
# Usage: USES=qca
# Valid ARGS none
#
# MAINTAINER: kde@FreeBSD.org
.if ! defined(_INCLUDE_QCA_MK)
_INCLUDE_QCA_MK= yes
. if !empty(qca_ARGS)
IGNORE+= USES=qca takes no arguments
. endif
_QCA_LIB= libqca-qt5.so
_QCA_DEFAULT_PORT= devel/qca
_QCA_LEGACY_PORT= devel/qca-legacy
. if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200085 && ${SSL_DEFAULT} == base
_QCA_CHOSEN_PORT= LEGACY
. else
_QCA_CHOSEN_PORT= DEFAULT
. endif
LIB_DEPENDS+= ${_QCA_LIB}:${_QCA_${_QCA_CHOSEN_PORT}_PORT}
.endif