diff --git a/security/qca-ossl/Makefile b/security/qca-ossl/Makefile index d881ec359d4c..c3a1329e7ef3 100644 --- a/security/qca-ossl/Makefile +++ b/security/qca-ossl/Makefile @@ -6,33 +6,35 @@ PORTNAME= qca-ossl DISTVERSION= 2.0.0-beta3 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= security MASTER_SITES= http://delta.affinix.com/download/qca/2.0/plugins/ MAINTAINER= kde@FreeBSD.org -COMMENT= Cross-platform crypto API for QT +COMMENT= QCA OpenSLL plugin LIB_DEPENDS= qca.2:${PORTSDIR}/devel/qca USE_BZIP2= yes USE_QT_VER= 4 -USE_GNOME= pkgconfig +QT_COMPONENTS= corelib qmake_build moc_build HAS_CONFIGURE= yes QT_NONSTANDARD= yes -QT_COMPONENTS= corelib qmake_build moc_build USE_OPENSSL= yes -CONFIGURE_ENV= QMAKESPEC=${LOCALBASE}/share/qt4/mkspecs/freebsd-g++ \ - PTHREAD_CFLAGS=${PTHREAD_CFLAGS} \ - PTHREAD_LDFLAGS=${PTHREAD_LIBS} -CONFIGURE_ARGS= --plugins-path=${PREFIX}/${QT_PLUGINDIR} --qtdir=${LOCALBASE} \ - --with-qca=${LOCALBASE} \ +CONFIGURE_ARGS= --plugins-path=${PREFIX}/${QT_PLUGINDIR_REL} \ --with-openssl-inc=${OPENSSLINC} \ --with-openssl-lib=${OPENSSLLIB} -QT_PLUGINDIR= lib/qt4/plugins +.if !defined(WITH_DEBUG) +CONFIGURE_ARGS+=--release --no-separate-debug-info +PLIST_SUB+= DEBUG="@comment " +.else +CONFIGURE_ARGS+=--debug +PLIST_SUB+= DEBUG="" +.endif -PLIST_SUB+= QT_PLUGINDIR="${QT_PLUGINDIR}" +post-install: + ${STRIP_CMD} ${PREFIX}/${QT_PLUGINDIR_REL}/libqca-ossl.so .include diff --git a/security/qca-ossl/pkg-plist b/security/qca-ossl/pkg-plist index ff1b23b73135..edc97555047f 100644 --- a/security/qca-ossl/pkg-plist +++ b/security/qca-ossl/pkg-plist @@ -1,4 +1,4 @@ -lib/qt4/plugins/crypto/libqca-ossl.so -lib/qt4/plugins/crypto/libqca-ossl.so.debug -@dirrmtry %%QT_PLUGINDIR%%/crypto -@dirrmtry %%QT_PLUGINDIR%% +%%QT_PLUGINDIR_REL%%/crypto/libqca-ossl.so +%%DEBUG%%%%QT_PLUGINDIR_REL%%/crypto/libqca-ossl.so.debug +@dirrmtry %%QT_PLUGINDIR_REL%%/crypto +@dirrmtry %%QT_PLUGINDIR_REL%%