aboutsummaryrefslogtreecommitdiffstats
path: root/lang/scheme48/Makefile
blob: d14712a6fb9c355d1d1048872bc4d067403e39b0 (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
# Created by: jmacd
# $FreeBSD$

PORTNAME=   scheme48
PORTVERSION=    1.9.2
CATEGORIES= lang scheme
MASTER_SITES=   http://www.s48.org/${PORTVERSION}/

MAINTAINER= lichray@gmail.com
COMMENT=    Scheme Underground's implementation of R5RS

LICENSE=    BSD3CLAUSE MIT
LICENSE_COMB=   multi

CONFLICTS=  scsh-[0-9]*

ALL_TARGET= enough
USES=       gmake tar:tgz
GNU_CONFIGURE=  yes

OPTIONS_DEFINE= DOCS

.include <bsd.port.options.mk>

PLIST_SUB+= VER=${PORTVERSION}

post-patch:
    @${REINPLACE_CMD} \
        -e 's/-mthreads/-lpthread/' \
        -e 's/-mt/-lpthread/' \
        -e 's/-munaligned-double//' \
        ${WRKSRC}/configure
    @${REINPLACE_CMD} \
        -e '/INSTALL.*COPYING/d' \
        ${WRKSRC}/Makefile.in
.if ${PORT_OPTIONS:MDOCS}
USE_TEX=    yes
CONFIGURE_ARGS+=--docdir="${DOCSDIR}"
.else
    @${REINPLACE_CMD} \
        -e 's/install-doc$$//' \
        -e 's/go doc$$/go/' \
        ${WRKSRC}/Makefile.in
.endif

test:
    ${MAKE} -C ${WRKSRC} check

.include <bsd.port.mk>