2013-09-16 19:39:26 +02:00
|
|
|
# Created by: Valentin Zahariev <curly@e-card.bg>
|
2003-12-06 00:19:05 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= xca
|
2012-05-14 22:14:09 +02:00
|
|
|
PORTVERSION= 0.9.3
|
2014-10-16 11:15:54 +02:00
|
|
|
PORTREVISION= 3
|
2003-12-06 00:19:05 +01:00
|
|
|
CATEGORIES= security
|
2008-06-08 19:42:27 +02:00
|
|
|
MASTER_SITES= SF
|
2003-12-06 00:19:05 +01:00
|
|
|
|
2010-01-24 17:29:49 +01:00
|
|
|
MAINTAINER= freebsd@nagilum.org
|
2003-12-06 00:19:05 +01:00
|
|
|
COMMENT= Graphical certification authority
|
|
|
|
|
2014-10-16 11:15:54 +02:00
|
|
|
LICENSE= BSD3CLAUSE
|
2011-11-27 11:28:20 +01:00
|
|
|
|
2014-09-17 09:38:15 +02:00
|
|
|
LIB_DEPENDS= libltdl.so:${PORTSDIR}/devel/libltdl
|
|
|
|
|
2003-12-06 00:19:05 +01:00
|
|
|
USE_OPENSSL= yes
|
2012-06-06 08:44:37 +02:00
|
|
|
USE_QT4= gui moc_build uic_build qmake_build rcc_build linguist_build
|
2013-11-06 19:11:17 +01:00
|
|
|
USES= desktop-file-utils gmake shared-mime-info
|
|
|
|
DESTDIRNAME= destdir
|
2007-07-23 15:54:06 +02:00
|
|
|
|
2013-11-06 19:11:17 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} >= 1000054
|
|
|
|
LD_CXX_LIB= -lc++
|
|
|
|
.endif
|
2003-12-06 00:19:05 +01:00
|
|
|
|
|
|
|
post-patch:
|
2008-08-05 01:33:44 +02:00
|
|
|
@echo "CPPFLAGS=-I. -I.. -I${WRKSRC}/ui -I${QT_INCDIR} -I${QT_INCDIR}/Qt -I${LOCALBASE}/include" > ${WRKSRC}/Local.mak
|
2007-07-23 15:54:06 +02:00
|
|
|
@echo "CFLAGS= ${CFLAGS} -Wall -ggdb" >> ${WRKSRC}/Local.mak
|
2014-06-11 16:49:59 +02:00
|
|
|
@echo "LDFLAGS= ${LDFLAGS}" >> ${WRKSRC}/Local.mak
|
|
|
|
@echo "LIBS= ${LIBS} -L${QT_LIBDIR} -L${LOCALBASE}/lib -lQtCore -lQtGui ${PTHREAD_LIBS} -lcrypto -lltdl ${LD_CXX_LIB}" >> ${WRKSRC}/Local.mak
|
2005-01-26 05:31:33 +01:00
|
|
|
@echo "MOC=${MOC}" >> ${WRKSRC}/Local.mak
|
2007-07-23 15:54:06 +02:00
|
|
|
@echo "UIC=${QT_PREFIX}/bin/uic-qt4" >> ${WRKSRC}/Local.mak
|
|
|
|
@echo "RCC=${LOCALBASE}/bin/rcc" >> ${WRKSRC}/Local.mak
|
|
|
|
@echo "LRELEASE=${LOCALBASE}/bin/lrelease-qt4" >> ${WRKSRC}/Local.mak
|
|
|
|
@echo "CC=${CC}" >> ${WRKSRC}/Local.mak
|
2005-01-26 05:31:33 +01:00
|
|
|
@echo "LD=${LD}" >> ${WRKSRC}/Local.mak
|
|
|
|
@echo "STRIP=${STRIP_CMD}" >> ${WRKSRC}/Local.mak
|
|
|
|
@echo "prefix=${PREFIX}" >> ${WRKSRC}/Local.mak
|
|
|
|
@echo "etc=${PREFIX}/etc/xca" >> ${WRKSRC}/Local.mak
|
|
|
|
@echo "basedir=" >> ${WRKSRC}/Local.mak
|
2010-01-24 17:29:49 +01:00
|
|
|
@echo "docdir=${DOCSDIR}" >> ${WRKSRC}/Local.mak
|
2007-07-23 15:54:06 +02:00
|
|
|
@echo "#define PREFIX \"${PREFIX}\"" > ${WRKSRC}/local.h
|
|
|
|
@echo "#define ETC \"${PREFIX}/etc/xca\"" >> ${WRKSRC}/local.h
|
|
|
|
@echo "#define VER \"${PORTVERSION}\"" >> ${WRKSRC}/local.h
|
2010-01-24 17:29:49 +01:00
|
|
|
@echo "#define DOCDIR \"${DOCSDIR}\"" >> ${WRKSRC}/local.h
|
2011-11-27 11:28:20 +01:00
|
|
|
@${REINPLACE_CMD} -e "/rR/{G;s/$$/TOPDIR_/;}" -e "s:\(TOPDIR\)_:\1=${WRKSRC}:" ${WRKSRC}/Makefile
|
|
|
|
@${REINPLACE_CMD} -e "/VPATH/{G;s/$$/TOPDIR_/;}" -e "s:\(TOPDIR\)_:\1=${WRKSRC}:" ${WRKSRC}/misc/Makefile
|
2007-07-23 15:54:06 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/lib/import.cpp
|
2003-12-06 00:19:05 +01:00
|
|
|
|
2013-11-06 19:11:17 +01:00
|
|
|
.include <bsd.port.post.mk>
|