2003-11-12 20:18:45 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.13 2003/11/13 01:18:45 pvalchev Exp $
|
2001-01-30 09:59:19 -05:00
|
|
|
# losely based on the FreeBSD port
|
|
|
|
|
2003-11-12 20:18:45 -05:00
|
|
|
.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "vax"
|
2003-09-07 15:53:08 -04:00
|
|
|
BROKEN= "hangs at runtime during build process"
|
|
|
|
.endif
|
|
|
|
|
2001-05-05 21:27:52 -04:00
|
|
|
COMMENT= "scheme r5 interpreter"
|
|
|
|
|
2001-01-30 09:59:19 -05:00
|
|
|
CATEGORIES= lang
|
|
|
|
|
2001-02-03 15:42:45 -05:00
|
|
|
V=5d3
|
|
|
|
DISTNAME= scm$V
|
|
|
|
PKGNAME= scm-$V
|
|
|
|
EXTRACT_SUFX= .zip
|
2001-01-30 09:59:19 -05:00
|
|
|
|
2001-01-30 10:31:37 -05:00
|
|
|
HOMEPAGE= http://swissnet.ai.mit.edu/~jaffer/SCM.html
|
|
|
|
|
2001-01-30 09:59:19 -05:00
|
|
|
MASTER_SITES= ftp://ftp.swiss.ai.mit.edu/pub/scm/
|
|
|
|
|
|
|
|
MAINTAINER= Marc Espie <espie@openbsd.org>
|
|
|
|
|
2001-02-03 15:42:45 -05:00
|
|
|
WRKDIST= ${WRKDIR}/scm
|
2001-01-30 09:59:19 -05:00
|
|
|
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
SCM_DATA= COPYING Iedline.scm Init5d3.scm Link.scm \
|
2001-01-31 17:51:39 -05:00
|
|
|
Macexp.scm Macro.scm Transcen.scm Tscript.scm mkimpcat.scm \
|
|
|
|
disarm.scm build.scm split.scm
|
2001-01-30 09:59:19 -05:00
|
|
|
|
|
|
|
FEATURES=arrays bignums cautious edit-line curses posix socket unix \
|
2001-01-31 09:16:47 -05:00
|
|
|
dynamic-linking i/o-extensions inexact regex
|
2001-01-30 09:59:19 -05:00
|
|
|
|
2001-01-31 17:51:39 -05:00
|
|
|
FLAVORS=no_x11
|
|
|
|
|
|
|
|
FLAVOR?=
|
|
|
|
.if ${FLAVOR:L:Mno_x11}
|
|
|
|
.else
|
|
|
|
FEATURES+=x
|
|
|
|
OPTIONS+=--compiler-options=-I${X11BASE}/include
|
|
|
|
OPTIONS+=--linker-options=-L${X11BASE}/lib
|
|
|
|
SCM_DATA+= x11.scm xevent.scm
|
|
|
|
.endif
|
|
|
|
|
2001-11-10 10:00:47 -05:00
|
|
|
BUILD_DEPENDS=::devel/slib
|
|
|
|
RUN_DEPENDS=::devel/slib
|
2001-02-03 15:42:45 -05:00
|
|
|
|
2001-01-30 09:59:19 -05:00
|
|
|
post-build:
|
2001-02-03 15:42:45 -05:00
|
|
|
cd ${WRKSRC} && ${MAKE_ENV} PATH=${WRKSRC}:${PORTPATH} /bin/sh ./build \
|
2001-01-30 09:59:19 -05:00
|
|
|
-F '${FEATURES}' \
|
2001-01-31 17:51:39 -05:00
|
|
|
${OPTIONS} \
|
2001-01-30 09:59:19 -05:00
|
|
|
-h system \
|
|
|
|
-o scm \
|
|
|
|
-s "${PREFIX}/share/scm/"
|
2001-02-03 15:42:45 -05:00
|
|
|
cd ${WRKSRC} && ${MAKE_ENV} PATH=${WRKSRC}:${PORTPATH} /bin/sh ./build \
|
2001-01-30 09:59:19 -05:00
|
|
|
-F '${FEATURES} sicp' \
|
2001-01-31 17:51:39 -05:00
|
|
|
${OPTIONS} \
|
2001-01-30 09:59:19 -05:00
|
|
|
-h system \
|
|
|
|
-o scm-sicp \
|
|
|
|
-s "${PREFIX}/share/scm/"
|
|
|
|
|
|
|
|
ALL_TARGET= scmlit
|
|
|
|
|
|
|
|
#CFLAGS+= -Dunix
|
|
|
|
MAKE_FLAGS= CFLAGS='${CFLAGS}' LD='${CC}'
|
2001-02-03 15:42:45 -05:00
|
|
|
MAKE_ENV= SCHEME_LIBRARY_PATH=${LOCALBASE}/share/slib/
|
2001-01-30 09:59:19 -05:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/scm ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/scm-sicp ${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKBUILD}/scm.1 ${PREFIX}/man/man1
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/scm
|
2001-02-03 15:42:45 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/include/scm
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/scm{,flags,fig}.h ${PREFIX}/include/scm
|
2001-01-30 09:59:19 -05:00
|
|
|
sed -e 's,@PREFIX@,${TRUEPREFIX},' \
|
|
|
|
<${FILESDIR}/require.scm.in \
|
|
|
|
>${PREFIX}/share/scm/require.scm
|
|
|
|
.for file in ${SCM_DATA}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/scm
|
|
|
|
.endfor
|
2001-01-31 17:51:39 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/scm.info ${PREFIX}/info
|
|
|
|
.if ${FLAVOR:L:Mno_x11}
|
|
|
|
.else
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Xlibscm.info ${PREFIX}/info
|
|
|
|
.endif
|
2001-01-30 09:59:19 -05:00
|
|
|
|
2001-10-07 10:20:13 -04:00
|
|
|
REGRESS_TARGET= check
|
|
|
|
|
2001-01-30 09:59:19 -05:00
|
|
|
.include <bsd.port.mk>
|