summaryrefslogtreecommitdiffstats
path: root/security/xca/Makefile
blob: 4c4cd7c1ced23c55986969c76450ac5d244077e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# New ports collection makefile for: xca
# Date created:		2002-12-23
# Whom:			Valentin Zahariev <curly@e-card.bg>
#
# $FreeBSD$
#

PORTNAME=	xca
PORTVERSION=	0.9.3
CATEGORIES=	security
MASTER_SITES=	SF

MAINTAINER=	freebsd@nagilum.org
COMMENT=	Graphical certification authority

LICENSE=	BSD

RUN_DEPENDS=	update-mime-database:${PORTSDIR}/misc/shared-mime-info

USE_GMAKE=	yes
USE_OPENSSL=	yes
USE_QT_VER=	4
QT_COMPONENTS=	gui moc_build uic_build qmake_build rcc_build linguist_build
USE_AUTOTOOLS=	libltdl
CC?=		gcc
CXX?=		g++

MAN1=		xca.1
MANCOMPRESSED=	yes

post-patch:
	@echo "CPPFLAGS=-I. -I.. -I${WRKSRC}/ui -I${QT_INCDIR} -I${QT_INCDIR}/Qt -I${LOCALBASE}/include" > ${WRKSRC}/Local.mak
	@echo "CFLAGS= ${CFLAGS} -Wall -ggdb" >> ${WRKSRC}/Local.mak
	@echo "LDFLAGS= ${LDFLAGS} -L${QT_LIBDIR} -L${LOCALBASE}/lib" >> ${WRKSRC}/Local.mak
	@echo "LIBS= -lQtGui ${PTHREAD_LIBS} -lcrypto -lltdl" >> ${WRKSRC}/Local.mak
	@echo "MOC=${MOC}" >> ${WRKSRC}/Local.mak
	@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
	@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
	@echo "docdir=${DOCSDIR}" >> ${WRKSRC}/Local.mak
	@echo "#define PREFIX \"${PREFIX}\"" > ${WRKSRC}/local.h
	@echo "#define ETC \"${PREFIX}/etc/xca\"" >> ${WRKSRC}/local.h
	@echo "#define VER \"${PORTVERSION}\"" >> ${WRKSRC}/local.h
	@echo "#define DOCDIR \"${DOCSDIR}\"" >> ${WRKSRC}/local.h
	@${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
	@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/lib/import.cpp

post-install:
	@-update-mime-database ${PREFIX}/share/mime

.include <bsd.port.mk>
OpenPOWER on IntegriCloud