Tweak lang/scheme48 version 1.9
[dports.git] / lang / scheme48 / Makefile
1 # Created by: jmacd
2 # $FreeBSD: lang/scheme48/Makefile 340722 2014-01-22 17:00:46Z mat $
3
4 PORTNAME=       scheme48
5 PORTVERSION=    1.9
6 CATEGORIES=     lang scheme
7 MASTER_SITES=   http://www.s48.org/${PORTVERSION}/
8 EXTRACT_SUFX=   .tgz
9
10 MAINTAINER=     lichray@gmail.com
11 COMMENT=        The Scheme Underground's implementation of R5RS
12
13 LICENSE=        BSD
14
15 CONFLICTS=      scsh-[0-9]*
16
17 ALL_TARGET=     enough
18 USE_GMAKE=      yes
19 GNU_CONFIGURE=  yes
20
21 MAN1=           scheme48.1
22
23 NO_STAGE=       yes
24 .include <bsd.port.options.mk>
25
26 PLIST_SUB+=     VER=${PORTVERSION}
27
28 post-patch:
29         @${REINPLACE_CMD} \
30                 -e 's/-mthreads/${PTHREAD_LIBS}/' \
31                 -e 's/-mt/${PTHREAD_LIBS}/' \
32                 -e 's/-munaligned-double//' \
33                 ${WRKSRC}/configure
34         @${REINPLACE_CMD} \
35                 -e '/INSTALL.*COPYING/d' \
36                 ${WRKSRC}/Makefile.in
37 .if ${PORT_OPTIONS:MDOCS}
38 USE_TEX=        yes
39 CONFIGURE_ARGS+=--docdir=${DOCSDIR}
40 .else
41         @${REINPLACE_CMD} \
42                 -e 's/install-doc$$//' \
43                 -e 's/go doc$$/go/' \
44                 ${WRKSRC}/Makefile.in
45 .endif
46
47 test:
48         cd ${WRKSRC}; ${MAKE} check
49
50 .include <bsd.port.mk>