aboutsummaryrefslogtreecommitdiffstats
path: root/lang/algol68g/Makefile
blob: aabe0404e7c9dfa7bf789687bfce922bf3bc1422 (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
# New ports collection makefile for:    xshttpd
# Date created:             9 September 2010
# Whom:                 Johan van Selst <johans@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   algol68g
PORTVERSION=    2.0.1
CATEGORIES= lang
MASTER_SITES=   http://www.xs4all.nl/~jmvdveer/
DISTFILES=  ${PORTNAME}-${PORTVERSION}.tgz
EXTRACT_ONLY=   ${PORTNAME}-${PORTVERSION}.tgz

MAINTAINER= johans@FreeBSD.org
COMMENT=    Alogol 68 Genie compiler

LIB_DEPENDS=    gsl.15:${PORTSDIR}/math/gsl

OPTIONS=    PLOT "GNU plot support" On \
        PGSQL "Postgresql support" On

HAS_CONFIGURE=  yes
CONFIGURE_ARGS= -macosx
CONFIGURE_ENV+= LOCALBASE=${LOCALBASE}
MAKEFILE=   makefile

MAN1=       a68g.1
PLIST_FILES=    bin/a68g include/a68g.h

.include <bsd.port.options.mk>

.ifdef WITH_PLOT
LIB_DEPENDS+=   plot.4:${PORTSDIR}/graphics/plotutils
.endif

.ifdef WITH_PGSQL
USE_PGSQL=  yes
.endif

post-install:
    @:
.ifndef NOPORTEXAMPLES
    @${MKDIR} ${EXAMPLESDIR}
    @${INSTALL_DATA} ${WRKSRC}/demo/* ${EXAMPLESDIR}
.endif
.ifndef NOPORTDOCS
    @${MKDIR} ${DOCSDIR}
    @${INSTALL_DATA} ${DISTDIR}/${PORTDOCS} ${DOCSDIR}

PORTDOCS=   a68g-doc.pdf
DISTFILES+= ${PORTDOCS}
.endif

.ifndef NOPORTEXAMPLES
PORTEXAMPLES=   *
.endif

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 700000
BROKEN=     does not build on 6.X
.endif

.include <bsd.port.post.mk>