mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
ea8c8ec7da
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3 to GCC 9.1 under most circumstances now after revision 507371. This includes ports - with USE_GCC=yes or USE_GCC=any, - with USES=fortran, - using Mk/bsd.octave.mk which in turn features USES=fortran, and - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang, c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib plus, everything INDEX-11 shows with a dependency on lang/gcc9 now. PR: 238330
75 lines
1.8 KiB
Makefile
75 lines
1.8 KiB
Makefile
# Created by: John Marino <marino@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= adabase
|
|
PORTVERSION= 3.1
|
|
PORTREVISION= 3
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= databases
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Thick database bindings for Ada
|
|
|
|
LICENSE= ISCL
|
|
LICENSE_FILE= ${WRKSRC}/License.txt
|
|
|
|
BUILD_DEPENDS= gprbuild:devel/gprbuild
|
|
|
|
USES= ada
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= jrmarino
|
|
GH_PROJECT= AdaBase
|
|
|
|
BROKEN_aarch64= fails to install: digits value out of range, maximum is 15
|
|
|
|
OPTIONS_DEFINE= DEBUG
|
|
OPTIONS_MULTI= DBASE
|
|
OPTIONS_MULTI_DBASE= MYSQL SQLITE PGSQL
|
|
OPTIONS_DEFAULT= MYSQL SQLITE PGSQL
|
|
OPTIONS_SUB= yes
|
|
|
|
DBASE_DESC= Databases Supported
|
|
|
|
SQLITE_MAKE_ENV= SQLITE=yes
|
|
SQLITE_USES= sqlite:3
|
|
SQLITE_VARS= DRVSQLITE=yes
|
|
SQLITE_VARS_OFF= DRVSQLITE=no
|
|
|
|
MYSQL_MAKE_ENV= MYSQL=yes
|
|
MYSQL_USES= mysql
|
|
MYSQL_VARS= DRVMYSQL=yes
|
|
MYSQL_VARS_OFF= DRVMYSQL=no
|
|
|
|
PGSQL_MAKE_ENV= POSTGRESQL=yes
|
|
PGSQL_USES= pgsql
|
|
PGSQL_VARS= DRVPGSQL=yes
|
|
PGSQL_VARS_OFF= DRVPGSQL=no
|
|
|
|
DEBUG_MAKE_ENV= DEBUGSYM=yes
|
|
|
|
MAKE_ENV+= OS_VERSION=unix
|
|
|
|
post-patch:
|
|
${RM} ${WRKSRC}/src/drivers/adabase-driver-base-firebird.ad?
|
|
${REINPLACE_CMD} -e '/Driver_MySQL/ s/yes/no/' \
|
|
${WRKSRC}/adabase.gpr
|
|
|
|
do-build:
|
|
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
|
|
gprbuild -p -P adabase ${BUILD_ARGS})
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/include/adabase \
|
|
${STAGEDIR}${PREFIX}/lib/adabase \
|
|
${STAGEDIR}${PREFIX}/lib/gnat
|
|
${INSTALL_DATA} ${WRKSRC}/lib/* ${STAGEDIR}${PREFIX}/lib/adabase
|
|
${INSTALL_DATA} ${WRKSRC}/src/*/*.ad[bs] ${WRKSRC}/src/adabase.ads \
|
|
${STAGEDIR}${PREFIX}/include/adabase
|
|
${SED} -e "s|@PREFIX@|${PREFIX}|" \
|
|
-e "s|@MYSQL@|${DRVMYSQL}|" \
|
|
-e "s|@PGSQL@|${DRVPGSQL}|" \
|
|
-e "s|@SQLITE@|${DRVSQLITE}|" ${WRKSRC}/adabase.gpr.in > \
|
|
${STAGEDIR}${PREFIX}/lib/gnat/adabase.gpr
|
|
|
|
.include <bsd.port.mk>
|