blob: c802da81ebd1054a82517ec7c9744e6c670b46e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Created by: John Marino <marino@FreeBSD.org>
# $FreeBSD$
PORTNAME= adabase
PORTVERSION= 3.1
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
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>
|