aboutsummaryrefslogtreecommitdiff
path: root/security/libsparkcrypto/Makefile
blob: e4436a31fea4e60c97efb1e1970fe3304af55783 (plain) (blame)
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
# Created by: John Marino <marino@FreeBSD.org>
# $FreeBSD$

PORTNAME=	libsparkcrypto
PORTVERSION=	0.1.1
PORTREVISION=	1
CATEGORIES=	security
MASTER_SITES=	http://senier.net/libsparkcrypto/
EXTRACT_SUFX=	.tgz

MAINTAINER=	marino@FreeBSD.org
COMMENT=	Cryptographic library implemented in SPARK

LICENSE=	BSD

USES=		ada gmake
USE_DOS2UNIX=	Makefile build/libsparkcrypto.gpr
SPARKARCH:=	${ARCH:S/amd64/x86_64/:S/i386/i686/}
DESTINY=	${WRKDIR}/destino

MAKE_ENV+=	SPARKARCH=${SPARKARCH} \
		SPARK_DIR=${WRKSRC}/src/spark \
		DESTDIR=${DESTINY} \
		MODE=release \
		RUNTIME=native \
		NO_TESTS=true \
		NO_PROOF=true

OPTIONS_DEFINE=		DOCS

NO_STAGE=	yes
.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDOCS}
BUILD_DEPENDS+=	adabrowse:${PORTSDIR}/textproc/adabrowse
.else
MAKE_ENV+=	NO_APIDOC=true
.endif

post-patch:
	# ports passed unwanted ARCH definition to Makefile
	@${REINPLACE_CMD} -e 's|ARCH|SPARKARCH|g' \
		${WRKSRC}/Makefile

post-install:
	${CP} -pR ${DESTINY}${PREFIX}/ ${PREFIX}/

.include <bsd.port.mk>