bfd732afd7
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
51 lines
1.5 KiB
Makefile
51 lines
1.5 KiB
Makefile
# Created by: John Marino <marino@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= apq-mysql
|
|
PORTVERSION= ${APQ_VERSION}
|
|
PORTREVISION= ${DRV_MYSQL_PR}
|
|
CATEGORIES= databases
|
|
MASTER_SITES= LOCAL/marino
|
|
|
|
MAINTAINER= marino@FreeBSD.org
|
|
COMMENT= APQ Ada95 MySQL database driver
|
|
|
|
LICENSE= GPLv2 GMGPL
|
|
LICENSE_COMB= multi
|
|
|
|
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash \
|
|
gprbuild:${PORTSDIR}/devel/gprbuild \
|
|
${LOCALBASE}/lib/gnat/apq.gpr:${PORTSDIR}/databases/apq
|
|
RUN_DEPENDS= ${LOCALBASE}/lib/gnat/apq.gpr:${PORTSDIR}/databases/apq
|
|
|
|
USES= ada tar:bzip2
|
|
USE_MYSQL= yes
|
|
HAS_CONFIGURE= yes
|
|
WRKPATH= ${WRKDIR}/build
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} \
|
|
--disable-relocatable \
|
|
--work-path=${WRKPATH} \
|
|
--processors=${MAKE_JOBS_NUMBER}
|
|
|
|
.include "${.CURDIR}/../apq/Makefile.version"
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/for Object_Dir/d' \
|
|
${WRKSRC}/src-in/apq-mysql.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-mysql/static \
|
|
${STAGEDIR}${PREFIX}/include/apq-mysql
|
|
${INSTALL_DATA} ${WRKPATH}/include/apq-mysql/* \
|
|
${STAGEDIR}${PREFIX}/include/apq-mysql
|
|
${INSTALL_DATA} ${WRKPATH}/lib/apq-mysql/static/*.a* \
|
|
${STAGEDIR}${PREFIX}/lib/apq-mysql/static
|
|
${INSTALL_DATA} ${WRKPATH}/lib/gnat/apq-mysql.gpr \
|
|
${STAGEDIR}${PREFIX}/lib/gnat
|
|
|
|
.include <bsd.port.mk>
|