1 |
|
# $MidnightBSD$ |
2 |
|
|
3 |
|
PORTNAME= qca |
4 |
< |
PORTVERSION= 2.1.0 |
4 |
> |
PORTVERSION= 2.1.3 |
5 |
|
CATEGORIES= devel |
6 |
< |
MASTER_SITES= http://delta.affinix.com/download/qca/2.0/ |
6 |
> |
MASTER_SITES= KDE/stable/qca/${PORTVERSION}/src |
7 |
|
|
8 |
|
MAINTAINER= ports@MidnightBSD.org |
9 |
|
COMMENT= Cross-platform crypto API for Qt |
10 |
|
|
11 |
|
LICENSE= lgpl |
12 |
|
|
13 |
< |
BUILD_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss |
14 |
< |
RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss |
13 |
> |
BUILD_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss |
14 |
> |
RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss |
15 |
|
|
16 |
< |
USES= cmake:outsource |
17 |
< |
CMAKE_ARGS= -DBUILD_PLUGINS=none -DBUILD_TESTS=no -DQT4_BUILD=yes \ |
16 |
> |
USES= cmake:outsource tar:xz |
17 |
> |
CMAKE_ARGS= -DBUILD_PLUGINS=none -DBUILD_TESTS=no \ |
18 |
|
-DPKGCONFIG_INSTALL_PREFIX=${PREFIX}/libdata/pkgconfig \ |
19 |
|
-DQCA_FEATURE_INSTALL_DIR=${QT_MKSPECDIR}/features \ |
20 |
|
-DQCA_MAN_INSTALL_DIR=${MANPREFIX}/man |
21 |
|
CONFIGURE_ENV= QC_CERTSTORE_PATH=${LOCALBASE}/share/certs/ca-root-nss.crt |
22 |
|
USE_LDCONFIG= yes |
23 |
+ |
|
24 |
+ |
.if defined(PKGNAMESUFFIX) |
25 |
+ |
CMAKE_ARGS+= -DQCA_SUFFIX=qt5 |
26 |
+ |
USE_QT5= core buildtools_build qmake_build |
27 |
+ |
.else |
28 |
|
USE_QT4= corelib moc_build qmake_build rcc_build |
29 |
+ |
CMAKE_ARGS+= -DQT4_BUILD=yes |
30 |
+ |
.endif |
31 |
|
|
32 |
+ |
PLIST_SUB= SHLIB_VER=${PORTVERSION} |
33 |
+ |
|
34 |
|
OPTIONS_DEFINE= GNUPG OPENSSL SASL |
35 |
|
OPTIONS_DEFAULT=GNUPG OPENSSL |
36 |
|
OPTIONS_SUB= yes |
37 |
|
|
38 |
|
GNUPG_CMAKE_ON= -DWITH_gnupg_PLUGIN=yes |
39 |
< |
GNUPG_RUN_DEPENDS= gpg2:${PORTSDIR}/security/gnupg |
39 |
> |
GNUPG_RUN_DEPENDS= gpg2:security/gnupg |
40 |
|
|
41 |
|
OPENSSL_CMAKE_ON= -DWITH_ossl_PLUGIN=yes |
42 |
< |
OPENSSL_USE= OPENSSL=yes |
42 |
> |
OPENSSL_USES= ssl |
43 |
|
|
44 |
|
SASL_CMAKE_ON= -DWITH_cyrus-sasl_PLUGIN=yes |
45 |
< |
SASL_LIB_DEPENDS= libsasl2.so:${PORTSDIR}/security/cyrus-sasl2 |
45 |
> |
SASL_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2 |
46 |
> |
|
47 |
> |
post-patch: |
48 |
> |
# Qt Network module is used for tests only |
49 |
> |
${REINPLACE_CMD} 's,Core Network,Core,' ${WRKSRC}/CMakeLists.txt |
50 |
|
|
51 |
|
.include <bsd.port.mk> |