2003-12-06 00:19:05 +01:00
|
|
|
# New ports collection makefile for: xca
|
|
|
|
# Date created: 2002-12-23
|
|
|
|
# Whom: Valentin Zahariev <curly@e-card.bg>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= xca
|
2012-05-14 22:14:09 +02:00
|
|
|
PORTVERSION= 0.9.3
|
2012-06-01 07:26:28 +02:00
|
|
|
PORTREVISION= 1
|
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
|
|
|
|
|
2011-11-27 11:28:20 +01:00
|
|
|
LICENSE= BSD
|
|
|
|
|
2010-09-01 18:47:28 +02:00
|
|
|
RUN_DEPENDS= update-mime-database:${PORTSDIR}/misc/shared-mime-info
|
|
|
|
|
2003-12-06 00:19:05 +01:00
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_OPENSSL= yes
|
2012-06-06 08:44:37 +02:00
|
|
|
USE_QT4= gui moc_build uic_build qmake_build rcc_build linguist_build
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libltdl
|
2007-07-23 15:54:06 +02:00
|
|
|
CC?= gcc
|
|
|
|
CXX?= g++
|
|
|
|
|
|
|
|
MAN1= xca.1
|
|
|
|
MANCOMPRESSED= yes
|
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
|
2008-08-05 01:33:44 +02:00
|
|
|
@echo "LDFLAGS= ${LDFLAGS} -L${QT_LIBDIR} -L${LOCALBASE}/lib" >> ${WRKSRC}/Local.mak
|
2010-01-24 17:29:49 +01:00
|
|
|
@echo "LIBS= -lQtGui ${PTHREAD_LIBS} -lcrypto -lltdl" >> ${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
|
|
|
|
2010-09-01 18:47:28 +02:00
|
|
|
post-install:
|
|
|
|
@-update-mime-database ${PREFIX}/share/mime
|
|
|
|
|
2012-05-08 21:02:48 +02:00
|
|
|
.include <bsd.port.mk>
|