aboutsummaryrefslogtreecommitdiffstats
path: root/lang/mit-scheme/Makefile
blob: 8fbdebcefef63e7bcbc9e4e69fe533396d19f1bf (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
# New ports collection makefile for:    MIT-Scheme
# Date created:     Mar 26 1995
# Whom:         jmacd@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=   mit-scheme
PORTVERSION=    9.0.1
PORTREVISION=   1
CATEGORIES= lang scheme
MASTER_SITES=   ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= mit-scheme/stable.pkg/${PORTVERSION}

MAINTAINER= olgeni@FreeBSD.org
COMMENT=    MIT Scheme: includes runtime, compiler, and edwin binaries

ONLY_FOR_ARCHS= i386
GNU_CONFIGURE=  yes
USE_GMAKE=  yes
WRKSRC=     ${WRKDIR}/mit-scheme-${PORTVERSION}/src/

OPTIONS=    POSTGRESQL  "Enable PostgreSQL support" off

.include <bsd.port.pre.mk>

.if defined(WITH_POSTGRESQL)
PLIST_SUB+= POSTGRESQL=""
CONFIGURE_ARGS+=--with-libpq
.else
PLIST_SUB+= POSTGRESQL="@comment "
CONFIGURE_ARGS+=--without-libpq
.endif

MIT_SCHEME_ARCH=i386

DISTNAME=   ${PORTNAME}-${PORTVERSION}-${MIT_SCHEME_ARCH}
PLIST_SUB+= MIT_SCHEME_ARCH=${MIT_SCHEME_ARCH}

MAN1=   scheme.1

post-build:
    @${FIND} ${WRKDIR} -type d -empty | ${XARGS} ${RMDIR}

do-build:
    @cd ${WRKDIR}/mit-scheme-${PORTVERSION}/src/microcode && ${GMAKE}

do-install:
    @cd ${WRKDIR}/mit-scheme-${PORTVERSION}/src && ${GMAKE} install
    @${INSTALL_MAN} ${WRKDIR}/mit-scheme-${PORTVERSION}/doc/scheme.1 ${MAN1PREFIX}/man/man1/
    @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/lib/mit-scheme-i386

.include <bsd.port.post.mk>