freebsd-ports/textproc/templates_parser/Makefile
John Marino 019ab276a6 textproc/templates_parser: Define Naming in gpr file
Two source files have non-standard names as they were build options.
The gpr file needs to pass this information to gprbuild users.
2014-05-17 15:34:01 +00:00

53 lines
1.5 KiB
Makefile

# Created by: John Marino <marino@FreeBSD.org>
# $FreeBSD$
PORTNAME= templates_parser
PORTVERSION= 11.9.0.0
PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= http://downloads.dragonlace.net/src/
MAINTAINER= marino@FreeBSD.org
COMMENT= Web page template engine module for the Ada Web Server
LICENSE= GPLv3
BUILD_DEPENDS= gprbuild:${PORTSDIR}/devel/gprbuild \
xmlada>=4.4:${PORTSDIR}/textproc/xmlada
RUN_DEPENDS= xmlada>=4.4:${PORTSDIR}/textproc/xmlada
USES= ada gmake tar:bzip2
MAKEFILE= makefile
DESTINC= ${STAGEDIR}${PREFIX}/include/templates_parser
MAKE_ARGS+= PROCESSORS=${MAKE_JOBS_NUMBER} \
HOST=${CONFIGURE_TARGET} \
TARGET=${CONFIGURE_TARGET} \
prefix=${PREFIX}
PORTDOCS= html
OPTIONS_DEFINE= DOCS
DOCS_BUILD_DEPENDS= sphinx-build:${PORTSDIR}/textproc/py-sphinx
.include <bsd.port.options.mk>
do-build:
# Override build target to avoid -jX getting passed to makefile
# Parallel builds are handled with PROCESSORS setting
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS}
.if ${PORT_OPTIONS:MDOCS}
cd ${WRKSRC}/docs && ${SETENV} ${MAKE_ENV} \
${MAKE_CMD} ${MAKE_ARGS} html
.endif
post-install:
${RM} -rf ${STAGEDIR}${PREFIX}/share/gpr/manifests
${MV} ${DESTINC}.relocatable/templates_parser-conf*.ads \
${DESTINC}.relocatable/templates_parser-configuration.ads
${MV} ${DESTINC}/templates_parser-conf*.ads \
${DESTINC}/templates_parser-configuration.ads
${MKDIR} ${STAGEDIR}${PREFIX}/lib/gnat
${INSTALL_DATA} ${FILESDIR}/templates_parser.gpr \
${STAGEDIR}${PREFIX}/lib/gnat
.include <bsd.port.mk>