1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/databases/apq/Makefile
John Marino bfd732afd7 APQ ports: apq, apq-mysql, apq-pgsql, apq-odbc
Without direction, GPRconfig will create a cgpr file at the standard
$PREFIX/lib/gnat repository.  This is the cause of the builder
failures because it touches a part of the userland it's not supposed to.

GPRconfig should be modified not to do this; it is never desirable.
In the meantime, the fix for APQ is to specify .cgpr targets which do
not exist so GPRconfig creates them there instead of $PREFIX/lib/gnat.

Reported by: swills
2014-03-26 01:39:57 +00:00

57 lines
1.5 KiB
Makefile

# Created by: John Marino <marino@FreeBSD.org>
# $FreeBSD$
PORTNAME= apq
PORTVERSION= ${APQ_VERSION}
PORTREVISION= ${BASE_PORTREV}
CATEGORIES= databases
MASTER_SITES= LOCAL/marino
MAINTAINER= marino@FreeBSD.org
COMMENT= APQ Ada95 database base library
LICENSE= GPLv2 GMGPL
LICENSE_COMB= multi
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash \
gprbuild:${PORTSDIR}/devel/gprbuild
USES= ada tar:bzip2
PORTDOCS= README HISTORY
HAS_CONFIGURE= yes
WRKPATH= ${WRKDIR}/build
CONFIGURE_ARGS= --prefix=${PREFIX} \
--disable-relocatable \
--work-path=${WRKPATH} \
--processors=${MAKE_JOBS_NUMBER}
OPTIONS_DEFINE= DOCS
.include "${.CURDIR}/Makefile.version"
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e '/for Object_Dir/d' ${WRKSRC}/gnat/apq.gpr.in
${REINPLACE_CMD} -e 's|processors=2|gprbuild_params="--autoconf=apq.cgpr"|' \
${WRKSRC}/configure
${REINPLACE_CMD} -e 's|-ws|-ws --autoconf=dummy.cgpr|' \
${WRKSRC}/scripts/buildutil.sh
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/lib/gnat \
${STAGEDIR}${PREFIX}/lib/apq/static \
${STAGEDIR}${PREFIX}/include/apq \
${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKPATH}/include/apq/* \
${STAGEDIR}${PREFIX}/include/apq
${INSTALL_DATA} ${WRKPATH}/lib/apq/static/*.a* \
${STAGEDIR}${PREFIX}/lib/apq/static
${INSTALL_DATA} ${WRKPATH}/lib/gnat/apq.gpr \
${STAGEDIR}${PREFIX}/lib/gnat
.if ${PORT_OPTIONS:MDOCS}
${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/HISTORY \
${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>