aboutsummaryrefslogtreecommitdiffstats
path: root/lang/rscheme/Makefile
blob: 3ecf11eedc2af8154b2826e9a09d0a2a1dcc46e3 (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: Maxim Sobolev <sobomax@FreeBSD.org>
# $FreeBSD$

PORTNAME=   rscheme
PORTVERSION=    0.7.3.3
PORTREVISION=   1
CATEGORIES= lang scheme
MASTER_SITES=   http://www.rscheme.org/rs/b/${PORTVERSION}/32/
DISTNAME=   rs-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    An object-oriented, extended version of the Scheme dialect of Lisp

DEPRECATED= No more public distfiles
EXPIRATION_DATE=    2014-03-10

WRKSRC=     ${WRKDIR}/${DISTNAME}/src

HAS_CONFIGURE=  yes
CONFIGURE_ARGS= --prefix=${WRKDIR}/build ${CONFIGURE_TARGET}
MAKE_ENV=   REAL_PREFIX=${PREFIX}

BOOTSTRAP_DIR=  ${WRKDIR}/${DISTNAME}
BOOTSTRAP_TARGET=   stage1

NO_STAGE=   yes
.include <bsd.port.pre.mk>

.if ${ARCH} != "i386"
BROKEN=     fails to install on ${ARCH}
.endif

post-extract:
    @${MKDIR} ${WRKSRC} ${WRKDIR}/build

pre-configure:
    @${RM} -rf ${WRKSRC}
    @(cd ${BOOTSTRAP_DIR}; ${SETENV} ${MAKE_ENV} ${CONFIGURE_ENV} ${MAKE} \
        ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${BOOTSTRAP_TARGET})

do-install:
    ${INSTALL_PROGRAM} ${WRKDIR}/build/bin/rs ${PREFIX}/bin/rs
    (cd ${WRKDIR}/build && ${TAR} -c -f - include/rscheme* lib/librs.a) \
        | (cd ${PREFIX} && ${TAR} --unlink -x -f -)
    ${MKDIR} ${DATADIR}
    (cd ${WRKDIR}/build && ${TAR} -c -f - resource) \
        | (cd ${DATADIR} && ${TAR} --unlink -x -f -)

.include <bsd.port.post.mk>