1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00
freebsd-ports/databases/adabase/Makefile
2021-04-06 16:31:07 +02:00

74 lines
1.8 KiB
Makefile

# Created by: John Marino <marino@FreeBSD.org>
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>