mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
3948488d55
Apparently version 4.4.2 isn't new enough for GPS 6.0 despite being included in the sources. This version is the top of the SVN repository. It was tested in poudriere against a number of ports that depend on it and everything still builds fine.
53 lines
1.5 KiB
Makefile
53 lines
1.5 KiB
Makefile
# Created by: John Marino <marino@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= xmlada
|
|
PORTVERSION= 4.5.0.0
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= http://downloads.dragonlace.net/src/
|
|
|
|
MAINTAINER= marino@FreeBSD.org
|
|
COMMENT= Adacore XML suite for the Ada language
|
|
|
|
LICENSE= GPLv3
|
|
|
|
GNU_CONFIGURE= yes
|
|
USES= ada gmake tar:bzip2
|
|
MAKE_ARGS+= PROCESSORS=${MAKE_JOBS_NUMBER}
|
|
ALL_TARGET= static relocatable
|
|
PLIST_SUB+= LIBVER=4.5.0w
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
BUILD_DEPENDS+= sphinx-build:${PORTSDIR}/textproc/py-sphinx
|
|
ALL_TARGET+= docs
|
|
.endif
|
|
|
|
# Link options were added for sax, dom, schema, and input_sources libraries
|
|
# "-R" option disables all rpaths except adalib and compiler libs. This is
|
|
# done because by default the rpaths will points at the WRKOBJDIR because
|
|
# it doesn't support the concept of DESTDIR.
|
|
# "-Wl,-R" adds a second rpath string.
|
|
# -Wl,-rpath is a better choice, but synonym -Wl,-R works on all BSD and SunOS
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s,@ADDITIONAL_RPATH@,${LOCALBASE}/lib," \
|
|
${WRKSRC}/sax/sax.gpr \
|
|
${WRKSRC}/dom/dom.gpr \
|
|
${WRKSRC}/schema/schema.gpr \
|
|
${WRKSRC}/input_sources/input_sources.gpr
|
|
|
|
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} ${ALL_TARGET}
|
|
|
|
post-install:
|
|
${RM} -rf ${STAGEDIR}${PREFIX}/share/doc/xmlada/_sources
|
|
|
|
.include <bsd.port.mk>
|