blob: 5378c710c0f8cb50f27cea95cde9793affc35fa0 (
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
# New ports collection makefile for: scm
# Date created: Sat Nov 5 17:11:01 PST 1994
# Whom: hsu
#
# $FreeBSD$
#
PORTNAME= scm
PORTVERSION= 5d8
CATEGORIES= lang
MASTER_SITES= http://swissnet.ai.mit.edu/ftpdir/scm/
DISTFILES= scm5d8.zip slib2d6.zip slib-psd1-3.tar.gz
EXTRACT_ONLY= scm5d8.zip slib2d6.zip
MAINTAINER= ports@FreeBSD.org
COMMENT= A scheme interpreter
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_ZIP= yes
USE_REINPLACE= yes
USE_GMAKE= yes
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}"
ALL_TARGET= scmlit
MAN1= scm.1
INFO= scm slib
PLIST_SUB= VERSION=${PORTVERSION}
SCM_DATA= COPYING Iedline.scm Init${PORTVERSION}.scm Link.scm \
Macexp.scm Macro.scm Transcen.scm Tscript.scm mkimpcat.scm \
r4rstest.scm
SCM_MODULES= crs.so edline.so gsubr.so ioext.so posix.so ramap.so \
record.so rgx.so sc2.so socket.so unix.so
post-extract:
@${TAR} -C ${WRKDIR} -zxf ${DISTDIR}/slib-psd1-3.tar.gz
@${CP} ${FILESDIR}/require.scm.in ${WRKDIR}/require.scm
post-patch:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKDIR}/require.scm
@${REINPLACE_CMD} -e 's|%%CC%%|${CC}|g ; \
s|%%CFLAGS%%|${CFLAGS}|g ; \
s|%%X11BASE%%|${X11BASE}|g' ${WRKSRC}/build.scm
post-build:
@cd ${WRKSRC} \
&& SCMLIT="./scmlit" ${SH} ./build \
-F "arrays bignums cautious inexact macro dynamic-linking" \
-h system \
-o scm \
-s "${PREFIX}/lib/scm/" \
&& SCMLIT="./scmlit" ${SH} ./build \
-F edit-line \
-h system \
-t dll \
&& SCMLIT="./scmlit" ${SH} ./build \
-F curses \
-h system \
-t dll \
&& SCMLIT="./scmlit" ${SH} ./build \
-c "sc2.c rgx.c record.c gsubr.c ioext.c posix.c unix.c \
socket.c ramap.c" \
-h system \
-t dll
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/scm ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/scmlit ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/scm.1 ${MANPREFIX}/man/man1
@${MKDIR} ${PREFIX}/lib/scm
${INSTALL_DATA} ${WRKDIR}/require.scm ${PREFIX}/lib/scm
.for file in ${SCM_DATA} ${SCM_MODULES}
${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/lib/scm
.endfor
@${MKDIR} ${PREFIX}/lib/scm/slib
${INSTALL_DATA} ${WRKDIR}/slib/*.scm ${PREFIX}/lib/scm/slib
@${MKDIR} ${PREFIX}/lib/scm/slib/psd
${INSTALL_DATA} ${WRKDIR}/slib/psd/*.scm ${PREFIX}/lib/scm/slib/psd
${INSTALL_DATA} ${WRKDIR}/scm/scm.info ${PREFIX}/info
@install-info ${PREFIX}/info/scm.info ${PREFIX}/info/dir
${INSTALL_DATA} ${WRKDIR}/slib/slib.info ${PREFIX}/info
@install-info ${PREFIX}/info/slib.info ${PREFIX}/info/dir
cd ${PREFIX}/lib/scm && ${PREFIX}/bin/scm -lmkimpcat.scm
.include <bsd.port.mk>
|