freebsd-ports/security/xca/Makefile
Tobias C. Berner b1a1d38bf9 Replace bsd.qt.mk by Uses/qt.mk and Uses/qt-dist.mk
From now on, ports that depend on Qt4 will have to set
	USES=		qt:4
	USE_QT=		foo bar
ports depending on Qt5 will use
	USES=		qt:5
	USE_QT=		foo bar

PR:		229225
Exp-run by:	antoine
Reviewed by:	mat
Approved by:	portmgr (antoine)
Differential Revision:	→https://reviews.freebsd.org/D15540
2018-06-28 17:39:53 +00:00

51 lines
1.1 KiB
Makefile

# Created by: Valentin Zahariev <curly@e-card.bg>
# $FreeBSD$
PORTNAME= xca
PORTVERSION= 1.3.2
CATEGORIES= security
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Graphical certification authority
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
LIB_DEPENDS= libltdl.so:devel/libltdl
USES= desktop-file-utils gmake localbase pkgconfig \
shared-mime-info ssl
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-openssl=${OPENSSLDIR} \
--with-qt=${PREFIX}
MAKE_ARGS= DOCTOOL="${TRUE}"
DESTDIRNAME= destdir
OPTIONS_DEFINE= DOCS
OPTIONS_SINGLE= TOOLKIT
OPTIONS_SINGLE_TOOLKIT= QT4 QT5
OPTIONS_DEFAULT= QT4
QT4_USES= qt:4
QT4_USE= qt=gui,linguist_build,moc_build,qmake_build \
qt=rcc_build,uic_build
QT5_USES= qt:5
QT5_USE= qt=widgets,buildtools_build,linguist_build \
CXXSTD=c++11
TOOLKIT_DESC= Qt toolkit
post-patch:
@${REINPLACE_CMD} -e \
'/^CFLAGS/s|-O2||' ${WRKSRC}/Local.mak.in
@${REINPLACE_CMD} -e \
'/install/s|-D|-c|' ${WRKSRC}/img/Makefile
post-patch-QT5-off:
@${REINPLACE_CMD} -e \
's|Qt5|Qt0|g' ${WRKSRC}/configure
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/xca*
.include <bsd.port.mk>