2000-01-14 17:19:33 +00:00
|
|
|
# New ports collection makefile for: scm
|
|
|
|
# Date created: Sat Nov 5 17:11:01 PST 1994
|
|
|
|
# Whom: hsu
|
1994-11-06 09:59:26 +00:00
|
|
|
#
|
1999-08-25 06:35:40 +00:00
|
|
|
# $FreeBSD$
|
1994-11-06 09:59:26 +00:00
|
|
|
#
|
|
|
|
|
2000-04-12 06:21:15 +00:00
|
|
|
PORTNAME= scm
|
2006-06-24 20:08:56 +00:00
|
|
|
PORTVERSION= 5e2
|
2003-08-28 00:09:58 +00:00
|
|
|
CATEGORIES= lang scheme
|
2003-12-09 19:48:13 +00:00
|
|
|
MASTER_SITES= http://swissnet.ai.mit.edu/ftpdir/scm/%SUBDIR%/
|
|
|
|
MASTER_SITE_SUBDIR= . OLD
|
2006-06-24 20:08:56 +00:00
|
|
|
DISTFILES= ${PORTNAME}${PORTVERSION}.zip slib3a2.zip slib-psd1-3.tar.gz
|
|
|
|
EXTRACT_ONLY= ${PORTNAME}${PORTVERSION}.zip slib3a2.zip
|
1995-04-15 05:44:50 +00:00
|
|
|
|
1998-08-10 12:11:44 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 19:00:52 +00:00
|
|
|
COMMENT= A scheme interpreter
|
1998-08-10 12:11:44 +00:00
|
|
|
|
2000-08-18 16:29:21 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
2000-01-14 17:19:33 +00:00
|
|
|
|
|
|
|
USE_ZIP= yes
|
2002-03-12 00:47:02 +00:00
|
|
|
USE_GMAKE= yes
|
2000-08-18 16:29:21 +00:00
|
|
|
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}"
|
|
|
|
ALL_TARGET= scmlit
|
1996-11-18 14:17:24 +00:00
|
|
|
MAN1= scm.1
|
2003-12-09 19:48:13 +00:00
|
|
|
INFO= scm
|
1994-11-06 09:59:26 +00:00
|
|
|
|
2000-08-18 16:29:21 +00:00
|
|
|
PLIST_SUB= VERSION=${PORTVERSION}
|
|
|
|
|
|
|
|
SCM_DATA= COPYING Iedline.scm Init${PORTVERSION}.scm Link.scm \
|
2002-03-12 00:47:02 +00:00
|
|
|
Macexp.scm Macro.scm Transcen.scm Tscript.scm mkimpcat.scm \
|
|
|
|
r4rstest.scm
|
2005-07-06 15:53:10 +00:00
|
|
|
SCM_MODULES= byte.so crs.so edline.so gsubr.so ioext.so posix.so ramap.so \
|
2002-04-09 07:46:10 +00:00
|
|
|
record.so rgx.so sc2.so socket.so unix.so
|
2000-01-14 17:19:33 +00:00
|
|
|
|
2004-02-23 05:21:24 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} != "i386"
|
2006-06-24 20:08:56 +00:00
|
|
|
BROKEN= Does not compile on !i386
|
2004-02-23 05:21:24 +00:00
|
|
|
.endif
|
|
|
|
|
2000-01-14 17:19:33 +00:00
|
|
|
post-extract:
|
2002-03-12 00:47:02 +00:00
|
|
|
@${TAR} -C ${WRKDIR} -zxf ${DISTDIR}/slib-psd1-3.tar.gz
|
2002-04-09 07:46:10 +00:00
|
|
|
@${CP} ${FILESDIR}/require.scm.in ${WRKDIR}/require.scm
|
2000-01-14 17:19:33 +00:00
|
|
|
|
2002-04-09 07:46:10 +00:00
|
|
|
post-patch:
|
2002-06-21 16:20:23 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKDIR}/require.scm
|
|
|
|
@${REINPLACE_CMD} -e 's|%%CC%%|${CC}|g ; \
|
2003-01-02 17:46:48 +00:00
|
|
|
s|%%CFLAGS%%|${CFLAGS}|g ; \
|
|
|
|
s|%%X11BASE%%|${X11BASE}|g' ${WRKSRC}/build.scm
|
2000-08-18 16:29:21 +00:00
|
|
|
|
|
|
|
post-build:
|
2002-04-09 07:46:10 +00:00
|
|
|
@cd ${WRKSRC} \
|
|
|
|
&& SCMLIT="./scmlit" ${SH} ./build \
|
2005-07-06 15:53:10 +00:00
|
|
|
-F arrays \
|
|
|
|
-F bignums \
|
|
|
|
-F cautious \
|
|
|
|
-F engineering-notation \
|
|
|
|
-F inexact \
|
|
|
|
-F macro \
|
|
|
|
-F dynamic-linking \
|
2002-04-09 07:46:10 +00:00
|
|
|
-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 \
|
2005-07-06 15:53:10 +00:00
|
|
|
-c sc2.c \
|
|
|
|
-h system \
|
|
|
|
-t dll \
|
|
|
|
&& SCMLIT="./scmlit" ${SH} ./build \
|
|
|
|
-c rgx.c \
|
|
|
|
-h system \
|
|
|
|
-t dll \
|
|
|
|
&& SCMLIT="./scmlit" ${SH} ./build \
|
|
|
|
-c record.c \
|
|
|
|
-h system \
|
|
|
|
-t dll \
|
|
|
|
&& SCMLIT="./scmlit" ${SH} ./build \
|
|
|
|
-c gsubr.c \
|
|
|
|
-h system \
|
|
|
|
-t dll \
|
|
|
|
&& SCMLIT="./scmlit" ${SH} ./build \
|
|
|
|
-c ioext.c \
|
|
|
|
-h system \
|
|
|
|
-t dll \
|
|
|
|
&& SCMLIT="./scmlit" ${SH} ./build \
|
|
|
|
-c posix.c \
|
|
|
|
-h system \
|
|
|
|
-t dll \
|
|
|
|
&& SCMLIT="./scmlit" ${SH} ./build \
|
|
|
|
-c unix.c \
|
|
|
|
-h system \
|
|
|
|
-t dll \
|
|
|
|
&& SCMLIT="./scmlit" ${SH} ./build \
|
|
|
|
-c socket.c \
|
|
|
|
-h system \
|
|
|
|
-t dll \
|
|
|
|
&& SCMLIT="./scmlit" ${SH} ./build \
|
|
|
|
-c ramap.c \
|
|
|
|
-h system \
|
|
|
|
-t dll \
|
|
|
|
&& SCMLIT="./scmlit" ${SH} ./build \
|
|
|
|
-c byte.c \
|
2002-04-09 07:46:10 +00:00
|
|
|
-h system \
|
|
|
|
-t dll
|
2000-08-18 16:29:21 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/scm ${PREFIX}/bin
|
2002-03-12 00:47:02 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/scmlit ${PREFIX}/bin
|
2000-10-24 15:49:54 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/scm.1 ${MANPREFIX}/man/man1
|
2002-04-09 07:46:10 +00:00
|
|
|
@${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
|
2000-08-18 16:29:21 +00:00
|
|
|
.endfor
|
2002-04-09 07:46:10 +00:00
|
|
|
@${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
|
2000-01-14 17:19:33 +00:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/scm/scm.info ${PREFIX}/info
|
2002-04-09 07:46:10 +00:00
|
|
|
cd ${PREFIX}/lib/scm && ${PREFIX}/bin/scm -lmkimpcat.scm
|
1994-11-06 09:59:26 +00:00
|
|
|
|
2004-02-23 05:21:24 +00:00
|
|
|
.include <bsd.port.post.mk>
|