freebsd-ports/security/libsparkcrypto/Makefile
John Marino 2d60de8ed2 security/libsparkcrypto: Optionally generate documentation
It was not possible to generate libsparkcrypto documentation before the
textproc/adabrowse port was created.  Now that AdaBrowse is available,
add a "DOCS" options to generate the documentation.

While here, convert USE_GMAKE to USES+=gmake and fix DESTDIR to work
properly instead of installing during the build phase.  The Makefile
also had to altered to install the documentation as well.

Approved by:	bapt (mentor)
2013-07-21 14:31:45 +00:00

47 lines
1,004 B
Makefile

# 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
.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>