2015-08-16 13:15:38 +02:00
|
|
|
# Created by: hsu
|
1999-08-25 08:35:40 +02:00
|
|
|
# $FreeBSD$
|
1994-11-06 10:59:26 +01:00
|
|
|
|
2000-04-12 08:21:15 +02:00
|
|
|
PORTNAME= scm
|
2015-01-27 09:40:34 +01:00
|
|
|
PORTVERSION= 5f2
|
2015-08-19 18:40:57 +02:00
|
|
|
PORTREVISION= 1
|
2003-08-28 02:09:58 +02:00
|
|
|
CATEGORIES= lang scheme
|
2015-08-16 13:15:38 +02:00
|
|
|
MASTER_SITES= http://groups.csail.mit.edu/mac/ftpdir/scm/%SUBDIR%/
|
|
|
|
MASTER_SITE_SUBDIR= . OLD
|
2015-01-27 09:40:34 +01:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} slib-3b5.zip slib-psd1-3.tar.gz
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
1995-04-15 07:44:50 +02:00
|
|
|
|
2015-01-27 09:40:34 +01:00
|
|
|
MAINTAINER= mi@aldan.algebra.com
|
2013-05-28 15:46:00 +02:00
|
|
|
COMMENT= Scheme interpreter
|
|
|
|
|
|
|
|
LICENSE= LGPL21
|
|
|
|
|
2016-04-21 18:43:14 +02:00
|
|
|
BROKEN_powerpc64= Does not build
|
|
|
|
|
2000-08-18 18:29:21 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
2000-01-14 18:19:33 +01:00
|
|
|
|
2015-01-27 09:40:34 +01:00
|
|
|
USES= readline zip
|
2013-05-28 15:46:00 +02:00
|
|
|
USE_GCC= any
|
2014-06-14 07:49:29 +02:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV= --prefix=${PREFIX}
|
2009-11-22 20:49:43 +01:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
1994-11-06 10:59:26 +01:00
|
|
|
|
2015-01-27 09:40:34 +01:00
|
|
|
CFLAGS+= -Wall -Wwrite-strings -Wmissing-declarations -Wredundant-decls -Wcast-qual
|
|
|
|
CFLAGS+= -Wno-unused-label -Wno-uninitialized
|
|
|
|
|
2013-05-28 15:46:00 +02:00
|
|
|
SUB_FILES= require.scm
|
|
|
|
|
2008-02-18 23:15:00 +01:00
|
|
|
PLIST_SUB= VERSION="${PORTVERSION}"
|
|
|
|
|
2014-06-14 07:49:29 +02:00
|
|
|
PKGDEINSTALL= ${PKGINSTALL}
|
|
|
|
|
2013-05-28 15:46:00 +02:00
|
|
|
INFO= scm
|
2000-08-18 18:29:21 +02:00
|
|
|
|
2014-06-14 07:49:29 +02:00
|
|
|
OPTIONS_DEFINE= X11
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
|
|
|
|
X11_USE= xorg=ice,sm,x11,xext
|
|
|
|
|
2009-08-08 08:24:17 +02:00
|
|
|
SCM_DATA= COPYING COPYING.LESSER Iedline.scm Idiffer.scm \
|
|
|
|
Init${PORTVERSION}.scm Link.scm Macexp.scm Macro.scm \
|
|
|
|
Transcen.scm Tscript.scm build build.scm compile.scm \
|
2013-05-28 15:46:00 +02:00
|
|
|
hobbit.scm mkimpcat.scm patchlvl.h \
|
|
|
|
r4rstest.scm rwb-isam.scm scmhob.h scmhob.scm wbtab.scm
|
2014-06-14 07:49:29 +02:00
|
|
|
SCM_DATA_X11= keysymdef.scm x11.scm xatoms.scm xevent.scm
|
2009-08-08 08:24:17 +02:00
|
|
|
SCM_MODULES= byte.so bytenumb.so crs.so differ.so edline.so gsubr.so \
|
|
|
|
ioext.so posix.so ramap.so record.so rgx.so sc2.so \
|
|
|
|
socket.so unix.so
|
2014-06-14 07:49:29 +02:00
|
|
|
SCM_MODULES_X11=x.so
|
2000-01-14 18:19:33 +01:00
|
|
|
|
2013-05-28 15:46:00 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2015-01-27 09:40:34 +01:00
|
|
|
.if ${PORT_OPTIONS:MX11}
|
|
|
|
SCM_MODULES+= ${SCM_MODULES_X11}
|
|
|
|
SCM_DATA+= ${SCM_DATA_X11}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${ARCH} == "ia64"
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/ia64-patch
|
|
|
|
ARCHOBJS= continue-ia64.S
|
2006-12-01 00:42:04 +01:00
|
|
|
.endif
|
|
|
|
|
2000-01-14 18:19:33 +01:00
|
|
|
post-extract:
|
2015-01-27 09:40:34 +01:00
|
|
|
# Certain .scm files are needed during build:
|
|
|
|
@${TAR} -C ${WRKDIR} -zxf ${DISTDIR}/${DISTFILES:Mslib*.zip} '*.scm'
|
2000-01-14 18:19:33 +01:00
|
|
|
|
2002-04-09 09:46:10 +02:00
|
|
|
post-patch:
|
2014-06-14 07:49:29 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/include|${LOCALBASE}/include| ; \
|
|
|
|
/strip/s|^|#|' ${WRKSRC}/Makefile
|
2002-06-21 18:20:23 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|%%CC%%|${CC}|g ; \
|
2003-01-02 18:46:48 +01:00
|
|
|
s|%%CFLAGS%%|${CFLAGS}|g ; \
|
2015-01-27 09:40:34 +01:00
|
|
|
s|%%ARCHOBJS%%|${ARCHOBJS}|g ; \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
s|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/build.scm
|
2014-06-14 07:49:29 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|__osf__|__FreeBSD__|' ${WRKSRC}/gmalloc.c
|
2009-08-08 08:24:17 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|gnuregex\.h|gnu/regex.h|g' ${WRKSRC}/rgx.c
|
2013-05-28 15:46:00 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/include|${LOCALBASE}/include|g' \
|
|
|
|
${WRKSRC}/xgen.scm
|
2000-08-18 18:29:21 +02:00
|
|
|
|
|
|
|
do-install:
|
2015-01-27 09:40:34 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/scm ${WRKSRC}/scmlit \
|
|
|
|
${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/scm.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
2014-06-14 07:49:29 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/scm
|
2015-01-27 09:40:34 +01:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/require.scm ${SCM_DATA:S|^|${WRKSRC}/|} \
|
|
|
|
${STAGEDIR}${PREFIX}/lib/scm
|
|
|
|
${INSTALL_LIB} ${SCM_MODULES:S|^|${WRKSRC}/|} \
|
|
|
|
${STAGEDIR}${PREFIX}/lib/scm
|
|
|
|
${TAR} -C ${STAGEDIR}${PREFIX}/lib/scm -xf ${DISTDIR}/${DISTFILES:Mslib*.tar.gz} '*.scm'
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/slib/*.scm ${STAGEDIR}${PREFIX}/lib/scm/slib/
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/scm/scm.info ${STAGEDIR}${PREFIX}/${INFO_PATH}
|
1994-11-06 10:59:26 +01:00
|
|
|
|
2014-06-14 07:49:29 +02:00
|
|
|
.include <bsd.port.mk>
|