aboutsummaryrefslogtreecommitdiffstats
path: root/devel/matreshka/Makefile
blob: 36ae2ab7e006883cf2cc287544e8250c5dccae6a (plain) (blame)
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
# Created by: John Marino <marino@FreeBSD.org>
# $FreeBSD$

PORTNAME=   matreshka
PORTVERSION=    0.5.0
CATEGORIES= devel
MASTER_SITES=   http://forge.ada-ru.org/matreshka/downloads/

MAINTAINER= marino@FreeBSD.org
COMMENT=    Ada framework for information systems development

LICENSE=    BSD

BUILD_DEPENDS=  gprbuild>=20120510:${PORTSDIR}/devel/gprbuild

USES=       ada
USE_GMAKE=  yes
DESTINY=    ${WRKDIR}/destino

OPTIONS_DEFINE= SQLITE3 FIREBIRD PGSQL MYSQL ORACLE AMF
OPTIONS_DEFAULT=SQLITE3 FIREBIRD PGSQL MYSQL

AMF_DESC=   Build Ada Modeling Framework

MAKE_JOBS_UNSAFE=   yes

MAKE_ENV+=  SMP_MFLAGS=-j${MAKE_JOBS_NUMBER} \
        DESTDIR=${DESTINY}

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MFIREBIRD}
MAKE_ENV+= HAS_FIREBIRD=yes
.endif

.if ${PORT_OPTIONS:MMYSQL}
MAKE_ENV+= HAS_MYSQL=yes
.endif

.if ${PORT_OPTIONS:MORACLE}
MAKE_ENV+= HAS_OCI=yes
.endif

.if ${PORT_OPTIONS:MPGSQL}
MAKE_ENV+= HAS_POSTGRESQL=yes
.endif

.if ${PORT_OPTIONS:MSQLITE3}
MAKE_ENV+= HAS_SQLITE3=yes
.endif

.if ${PORT_OPTIONS:MAMF}
MAKE_ENV+= WANT_AMF=yes
.endif

post-install:
    ${CP} -pR ${DESTINY}${PREFIX}/ ${PREFIX}/
    @cd ${DESTINY}${PREFIX}; ${FIND} * \( -type f -or -type l \) | \
       ${SORT} > ${WRKDIR}/PLIST.all
    @cd ${DESTINY}${PREFIX}; ${FIND} * -type d | ${AWK} '/\//' | ${SORT} -r | \
       ${SED} -e '/lib\/gnat$$/d' -e 's/^/@dirrm /g' >> ${WRKDIR}/PLIST.all
    @echo "@unexec rmdir %D/lib/gnat 2>/dev/null || true" >> ${WRKDIR}/PLIST.all
    @${CAT} ${WRKDIR}/PLIST.all >> ${TMPPLIST}

.include <bsd.port.mk>