2008-01-04 12:48:33 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.23 2008/01/04 17:48:36 espie Exp $
|
2001-01-30 09:59:19 -05:00
|
|
|
# losely based on the FreeBSD port
|
|
|
|
|
2004-06-18 13:00:51 -04:00
|
|
|
.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "vax" || \
|
2004-07-07 05:39:45 -04:00
|
|
|
${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "sparc" || \
|
|
|
|
${MACHINE_ARCH} == "sparc64"
|
2007-09-15 20:27:05 -04:00
|
|
|
BROKEN= segfaults in longjump return while testing continuations
|
2003-09-07 15:53:08 -04:00
|
|
|
.endif
|
|
|
|
|
2007-09-15 20:27:05 -04:00
|
|
|
COMMENT= scheme r5 interpreter
|
2001-05-05 21:27:52 -04:00
|
|
|
|
2001-01-30 09:59:19 -05:00
|
|
|
CATEGORIES= lang
|
|
|
|
|
2005-10-30 04:27:08 -05:00
|
|
|
V=5e1
|
2001-02-03 15:42:45 -05:00
|
|
|
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
|
2005-02-24 08:20:41 -05:00
|
|
|
WANTLIB= c curses termcap m readline
|
2001-01-30 09:59:19 -05:00
|
|
|
|
2004-09-15 15:12:09 -04:00
|
|
|
FLAVORS=no_x11
|
|
|
|
|
|
|
|
FLAVOR?=
|
2005-10-30 04:27:08 -05:00
|
|
|
SCM_DATA= COPYING Idiffer.scm Iedline.scm Init5e1.scm Link.scm \
|
2004-09-15 15:12:09 -04:00
|
|
|
Macexp.scm Macro.scm Transcen.scm Tscript.scm \
|
|
|
|
build build.scm compile.scm hobbit.scm mkimpcat.scm \
|
|
|
|
r4rstest.scm scmhob.scm \
|
|
|
|
disarm.scm split.scm
|
|
|
|
|
|
|
|
SCM_INFO= scm.info hobbit.info
|
|
|
|
SCM_INCLUDES= scmflags.h scmfig.h patchlvl.h scmhob.h
|
|
|
|
.if !{FLAVOR:L:Mno_x11}
|
|
|
|
SCM_DATA+= keysymdef.scm x11.scm xatoms.scm xevent.scm
|
|
|
|
SCM_INFO+= Xlibscm.info
|
|
|
|
.endif
|
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
|
|
|
.if ${FLAVOR:L:Mno_x11}
|
|
|
|
.else
|
|
|
|
FEATURES+=x
|
2004-09-15 15:12:09 -04:00
|
|
|
OPTIONS+=--compiler-options=-I${X11BASE}/include --compiler-options=-O2
|
2001-01-31 17:51:39 -05:00
|
|
|
OPTIONS+=--linker-options=-L${X11BASE}/lib
|
|
|
|
SCM_DATA+= x11.scm xevent.scm
|
2005-02-24 08:20:41 -05:00
|
|
|
WANTLIB+= X11
|
2006-11-13 06:20:24 -05:00
|
|
|
USE_X11= Yes
|
2001-01-31 17:51:39 -05:00
|
|
|
.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
|
|
|
|
2005-10-30 04:27:08 -05:00
|
|
|
FEATURE_LIST=
|
|
|
|
.for f in ${FEATURES}
|
|
|
|
FEATURE_LIST+=-F $f
|
|
|
|
.endfor
|
|
|
|
|
2004-09-15 15:12:09 -04:00
|
|
|
pre-build:
|
|
|
|
@echo "srcdir=${WRKSRC}" >${WRKSRC}/srcdir.mk
|
|
|
|
|
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 \
|
2005-10-30 04:27:08 -05:00
|
|
|
${FEATURE_LIST} \
|
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 \
|
2005-10-30 04:27:08 -05:00
|
|
|
${FEATURE_LIST} -F 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
|
2004-09-15 15:12:09 -04:00
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/scmlit ${PREFIX}/bin
|
2001-01-30 09:59:19 -05:00
|
|
|
${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
|
2001-01-30 09:59:19 -05:00
|
|
|
sed -e 's,@PREFIX@,${TRUEPREFIX},' \
|
|
|
|
<${FILESDIR}/require.scm.in \
|
|
|
|
>${PREFIX}/share/scm/require.scm
|
2004-09-15 15:12:09 -04:00
|
|
|
.for file in ${SCM_INCLUDES}
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/${file} ${PREFIX}/include/scm
|
|
|
|
.endfor
|
2001-01-30 09:59:19 -05:00
|
|
|
.for file in ${SCM_DATA}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/scm
|
|
|
|
.endfor
|
2004-09-15 15:12:09 -04:00
|
|
|
.for file in ${SCM_INFO}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/info
|
|
|
|
.endfor
|
2001-01-30 09:59:19 -05:00
|
|
|
|
2008-01-04 12:48:33 -05:00
|
|
|
FAKE_FLAGS=exec_prefix=${WRKINST}${TRUEPREFIX}/
|
2001-10-07 10:20:13 -04:00
|
|
|
REGRESS_TARGET= check
|
|
|
|
|
2001-01-30 09:59:19 -05:00
|
|
|
.include <bsd.port.mk>
|