openbsd-ports/lang/scm/Makefile
pvalchev 9ffd8f5a80 this is now broken on macppc as well, mark it as such until someone can
look into it (especially so it does not hang the bulk builds)
2004-06-08 17:30:50 +00:00

93 lines
2.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.14 2004/06/08 17:30:50 pvalchev Exp $
# losely based on the FreeBSD port
.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "vax" || ${MACHINE_ARCH} == "powerpc"
BROKEN= "hangs at runtime during build process"
.endif
COMMENT= "scheme r5 interpreter"
CATEGORIES= lang
V=5d3
DISTNAME= scm$V
PKGNAME= scm-$V
EXTRACT_SUFX= .zip
HOMEPAGE= http://swissnet.ai.mit.edu/~jaffer/SCM.html
MASTER_SITES= ftp://ftp.swiss.ai.mit.edu/pub/scm/
MAINTAINER= Marc Espie <espie@openbsd.org>
WRKDIST= ${WRKDIR}/scm
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 \
Macexp.scm Macro.scm Transcen.scm Tscript.scm mkimpcat.scm \
disarm.scm build.scm split.scm
FEATURES=arrays bignums cautious edit-line curses posix socket unix \
dynamic-linking i/o-extensions inexact regex
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
BUILD_DEPENDS=::devel/slib
RUN_DEPENDS=::devel/slib
post-build:
cd ${WRKSRC} && ${MAKE_ENV} PATH=${WRKSRC}:${PORTPATH} /bin/sh ./build \
-F '${FEATURES}' \
${OPTIONS} \
-h system \
-o scm \
-s "${PREFIX}/share/scm/"
cd ${WRKSRC} && ${MAKE_ENV} PATH=${WRKSRC}:${PORTPATH} /bin/sh ./build \
-F '${FEATURES} sicp' \
${OPTIONS} \
-h system \
-o scm-sicp \
-s "${PREFIX}/share/scm/"
ALL_TARGET= scmlit
#CFLAGS+= -Dunix
MAKE_FLAGS= CFLAGS='${CFLAGS}' LD='${CC}'
MAKE_ENV= SCHEME_LIBRARY_PATH=${LOCALBASE}/share/slib/
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
${INSTALL_DATA_DIR} ${PREFIX}/include/scm
${INSTALL_DATA} ${WRKBUILD}/scm{,flags,fig}.h ${PREFIX}/include/scm
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
${INSTALL_DATA} ${WRKSRC}/scm.info ${PREFIX}/info
.if ${FLAVOR:L:Mno_x11}
.else
${INSTALL_DATA} ${WRKSRC}/Xlibscm.info ${PREFIX}/info
.endif
REGRESS_TARGET= check
.include <bsd.port.mk>