Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Feb 2014 11:45:26 +0000 (UTC)
From:      Martin Wilke <miwi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r346317 - in head/lang/gcl: . files
Message-ID:  <201402271145.s1RBjQ71019148@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: miwi
Date: Thu Feb 27 11:45:26 2014
New Revision: 346317
URL: http://svnweb.freebsd.org/changeset/ports/346317
QAT: https://qat.redports.org/buildarchive/r346317/

Log:
  - Update to 2.6.10
  - Stage support

Added:
  head/lang/gcl/files/patch-gcl-tk__tkMain.c   (contents, props changed)
  head/lang/gcl/files/patch-makefile   (contents, props changed)
  head/lang/gcl/files/patch-o__plttest.c   (contents, props changed)
  head/lang/gcl/files/patch-o__sfasli.c   (contents, props changed)
  head/lang/gcl/files/patch-xgcl-2__makefile   (contents, props changed)
Deleted:
  head/lang/gcl/files/patch-info_gcl-si.texi
  head/lang/gcl/files/patch-warnings
  head/lang/gcl/pkg-plist
Modified:
  head/lang/gcl/Makefile
  head/lang/gcl/distinfo
  head/lang/gcl/files/patch-configure
  head/lang/gcl/files/patch-h_FreeBSD.defs
  head/lang/gcl/files/patch-h_FreeBSD.h
  head/lang/gcl/files/patch-h_gclincl.h.in
  head/lang/gcl/files/patch-makedefc.in
  head/lang/gcl/files/patch-unixport_makefile

Modified: head/lang/gcl/Makefile
==============================================================================
--- head/lang/gcl/Makefile	Thu Feb 27 11:43:47 2014	(r346316)
+++ head/lang/gcl/Makefile	Thu Feb 27 11:45:26 2014	(r346317)
@@ -2,48 +2,192 @@
 # $FreeBSD$
 
 PORTNAME=	gcl
-PORTVERSION=	2.6.7
-PORTREVISION=	7
+PORTVERSION=	2.6.10
 CATEGORIES=	lang tcl tk
 MASTER_SITES=	GNU
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	GNU Common Lisp
 
-LIB_DEPENDS=	gmp:${PORTSDIR}/math/gmp
+LICENSE=	GPLv2 LGPL21
+LICENSE_COMB=	multi
 
-ONLY_FOR_ARCHS=	i386
+LIB_DEPENDS=	libgmp.so:${PORTSDIR}/math/gmp
 
-USES=		readline gmake tk
-USE_XORG=	x11
+OPTIONS_DEFINE=	EMACS X11 DOCS
+OPTIONS_DEFAULT=EMACS X11
+EMACS_DESC=	Install Emacs syntax files
+
+ONLY_FOR_ARCHS=	amd64 i386
+
+WRKSRC=		${WRKDIR}/${PORTNAME}
+
+USES=		gmake readline
+USE_GCC=	yes
 GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=--prefix=${PREFIX} \
-	--enable-ansi \
-	--enable-machine=FreeBSD \
-	--enable-info=${PREFIX}/info \
-	--enable-tkconfig=${TK_LIBDIR} \
-	--enable-tclconfig=${TCL_LIBDIR} \
-	--with-x \
-	--disable-dlopen \
-	--disable-dynsysbfd \
-	--disable-statsysbfd \
-	--disable-locbfd \
-	--enable-custreloc
+CONFIGURE_ARGS=	--enable-ansi \
+		--enable-machine=${OPSYS} \
+		--enable-emacsdir=${PREFIX}/share/emacs/site-lisp/gcl \
+		--enable-infodir=${PREFIX}/${INFO_PATH} \
+		--disable-dlopen \
+		--disable-dynsysbfd \
+		--disable-statsysbfd \
+		--enable-custreloc
 CONFIGURE_ENV=	C_INCLUDE_PATH="${PREFIX}/include" LIBRARY_PATH="${PREFIX}/lib"
 MAKEFILE=	makefile
+INSTALL_TARGET=	install-command
+LATE_INSTALL_ARGS=\
+		INSTALL_LIB_DIR="${PREFIX}/lib/${DISTNAME}" \
+		prefix="${PREFIX}" \
+		BINDIR="${PREFIX}/lib/${DISTNAME}/unixport"
 MAKE_JOBS_UNSAFE=yes
 
 CFLAGS+=	-I${LOCALBASE}/include
-
-PLIST_SUB=	GCL_VER="${PORTVERSION}"
+LDFLAGS+=	-L${LOCALBASE}/lib -lreadline -lgmp -lm
 
 INFO=		gcl-si gcl-tk
+PORTDOCS=	*
+PLIST_FILES=	bin/gcl \
+		${FILES_CLCS:S|^|lib/${DISTNAME}/clcs/|} \
+		${FILES_CMPNEW:S|^|lib/${DISTNAME}/cmpnew/|} \
+		${FILES_H:S|^|lib/${DISTNAME}/h/|} \
+		${INFO:S|^|lib/${DISTNAME}/info/|:S|$|.info|} \
+		${FILES_LSP:S|^|lib/${DISTNAME}/lsp/|} \
+		${PCL_FILES:S|^|lib/${DISTNAME}/pcl/|} \
+		${FILES_UNIXPORT:S|^|lib/${DISTNAME}/unixport/|}
+PLIST_DIRS=	lib/${DISTNAME}/unixport \
+		lib/${DISTNAME}/pcl \
+		lib/${DISTNAME}/lsp \
+		lib/${DISTNAME}/h \
+		lib/${DISTNAME}/info \
+		lib/${DISTNAME}/cmpnew \
+		lib/${DISTNAME}/clcs \
+		lib/${DISTNAME}
+
+FILES_CLCS=	sys-proclaim.lisp
+FILES_CMPNEW=	gcl_cmpmain.lsp gcl_cmpopt.lsp gcl_collectfn.lsp \
+		gcl_collectfn.o gcl_lfun_list.lsp sys-proclaim.lisp
+FILES_H=	cmpinclude.h
+FILES_LSP=	gcl_auto_new.lsp gcl_autoload.lsp gcl_export.lsp \
+		gcl_gprof.lsp gcl_info.o gcl_profile.lsp \
+		sys-proclaim.lisp
+FILES_PCL=	sys-proclaim.lisp
+FILES_UNIXPORT=	gcl.script init_ansi_gcl.lsp libansi_gcl.a \
+		libgclp.a saved_ansi_gcl
+FILES_ELISP=	add-default.el ansi-doc.el dbl.el doc-to-texi.el gcl.el \
+		man1-to-texi.el smart-complete.el sshell.el
+FILES_GCLTK=	decode.tcl gcl.tcl gcltkaux gcltksrv tinfo.o \
+		tk-package.lsp tkl.o
+FILES_GCLTK_DEMOS=\
+		gc-monitor.lisp gc-monitor.o index.lsp \
+		mkBasic.lisp mkCanvText.lisp mkEntry.lisp \
+		mkEntry2.lisp mkForm.lisp mkHScale.lisp \
+		mkItems.lisp mkLabel.lisp mkListbox.lisp \
+		mkPlot.lisp mkRadio.lisp mkRuler.lisp \
+		mkSearch.lisp mkStyles.lisp mkTextBind.lisp \
+		mkVScale.lisp mkdialog.lisp nqthm-stack.lisp \
+		showVars.lisp widget.lisp
+FILES_XGCL2=	gcl_dwtest.lsp gcl_dwtestcases.lsp sysdef.lisp
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MEMACS}
+USE_EMACS=	yes
+EMACS_NO_BUILD_DEPENDS=yes
+PLIST_FILES+=	${FILES_ELISP:S|^|%%EMACS_SITE_LISPDIR%%/gcl/|}
+PLIST_DIRS+=	%%EMACS_SITE_LISPDIR%%/gcl
+.endif
+
+.if ${PORT_OPTIONS:MX11}
+USES+=		tk
+USE_XORG=	x11
+CONFIGURE_ARGS+=--enable-tclconfig=${TCL_LIBDIR} \
+		--enable-tkconfig=${TK_LIBDIR} \
+		--with-x
+LDFLAGS+=	-lX11
+PLIST_FILES+=	${FILES_GCLTK:S|^|lib/gcl-${PORTVERSION}/gcl-tk/|} \
+		${FILES_GCLTK_DEMOS:S|^|lib/gcl-${PORTVERSION}/gcl-tk/demos/|} \
+		${FILES_XGCL2:S|^|lib/gcl-${PORTVERSION}/xgcl-2/|}
+PLIST_DIRS+=	lib/${DISTNAME}/xgcl-2 \
+		lib/${DISTNAME}/gcl-tk/demos \
+		lib/${DISTNAME}/gcl-tk
+.else
+CONFIGURE_ARGS+=--disable-xgcl
+.endif
 
-NO_STAGE=	yes
-post-patch::
+post-patch:
 	@${REINPLACE_CMD} -e \
-		's|@@CFLAGS@@|${CFLAGS} -I${LOCALBASE}/include| ; \
-		 s|@@LOCALLIBS@@|-lreadline -lm -L${LOCALBASE}/lib -lgmp|' \
-			${WRKSRC}/h/FreeBSD.defs
+		's|@@CFLAGS@@|${CFLAGS}| ; \
+		 s|@@LOCALLIBS@@|${LDFLAGS}|' ${WRKSRC}/h/FreeBSD.defs
+
+post-install:
+	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/${DISTNAME}/clcs
+.for i in ${FILES_CLCS}
+	(cd ${WRKSRC}/clcs && ${INSTALL_DATA} ${i} \
+		${STAGEDIR}${PREFIX}/lib/${DISTNAME}/clcs)
+.endfor
+	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/${DISTNAME}/cmpnew
+.for i in ${FILES_CMPNEW}
+	(cd ${WRKSRC}/cmpnew && ${INSTALL_DATA} ${i} \
+		${STAGEDIR}${PREFIX}/lib/${DISTNAME}/cmpnew)
+.endfor
+	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/${DISTNAME}/info
+.for i in ${INFO}
+	(cd ${WRKSRC}/info && ${INSTALL_DATA} ${i}.info \
+		${STAGEDIR}${PREFIX}/lib/${DISTNAME}/info)
+	(cd ${WRKSRC}/info && ${INSTALL_DATA} ${i}.info \
+		${STAGEDIR}${PREFIX}/${INFO_PATH})
+.endfor
+	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/${DISTNAME}/h
+.for i in ${FILES_H}
+	(cd ${WRKSRC}/h && ${INSTALL_DATA} ${i} \
+		${STAGEDIR}${PREFIX}/lib/${DISTNAME}/h)
+.endfor
+	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/${DISTNAME}/lsp
+.for i in ${FILES_LSP}
+	(cd ${WRKSRC}/lsp && ${INSTALL_DATA} ${i} \
+		${STAGEDIR}${PREFIX}/lib/${DISTNAME}/lsp)
+.endfor
+	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/${DISTNAME}/pcl
+.for i in ${PCL_FILES}
+	(cd ${WRKSRC}/pcl && ${INSTALL_DATA} ${i} \
+		${STAGEDIR}${PREFIX}/lib/${DISTNAME}/pcl)
+.endfor
+	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/${DISTNAME}/unixport
+.for i in ${FILES_UNIXPORT}
+	(cd ${WRKSRC}/unixport && ${INSTALL_DATA} ${i} \
+		${STAGEDIR}${PREFIX}/lib/${DISTNAME}/unixport)
+.endfor
+	@${CHMOD} a+x ${STAGEDIR}${PREFIX}/lib/${DISTNAME}/unixport/saved_ansi_gcl
+.if ${PORT_OPTIONS:MEMACS}
+	@${MKDIR} ${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR}/gcl
+.for i in ${FILES_ELISP}
+	(cd ${WRKSRC}/elisp && ${INSTALL_DATA} ${i} \
+		${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR}/gcl)
+.endfor
+.endif
+.if ${PORT_OPTIONS:MX11}
+	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/${DISTNAME}/gcl-tk
+.for i in ${FILES_GCLTK}
+	(cd ${WRKSRC}/gcl-tk && ${INSTALL_DATA} ${i} \
+		${STAGEDIR}${PREFIX}/lib/${DISTNAME}/gcl-tk)
+.endfor
+	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/${DISTNAME}/gcl-tk/demos
+.for i in ${FILES_GCLTK_DEMOS}
+	(cd ${WRKSRC}/gcl-tk/demos && ${INSTALL_DATA} ${i} \
+		${STAGEDIR}${PREFIX}/lib/${DISTNAME}/gcl-tk/demos)
+.endfor
+	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/${DISTNAME}/xgcl-2
+.for i in ${FILES_XGCL2}
+	(cd ${WRKSRC}/xgcl-2 && ${INSTALL_DATA} ${i} \
+		${STAGEDIR}${PREFIX}/lib/${DISTNAME}/xgcl-2)
+.endfor
+.endif
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	(cd ${WRKSRC}/xgcl-2 && ${INSTALL_DATA} *.tex \
+		${STAGEDIR}${DOCSDIR})
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}/dwdoc
+	(cd ${WRKSRC}/xgcl-2/dwdoc && ${INSTALL_DATA} *.html \
+		${STAGEDIR}${DOCSDIR}/dwdoc)
 
 .include <bsd.port.mk>

Modified: head/lang/gcl/distinfo
==============================================================================
--- head/lang/gcl/distinfo	Thu Feb 27 11:43:47 2014	(r346316)
+++ head/lang/gcl/distinfo	Thu Feb 27 11:45:26 2014	(r346317)
@@ -1,2 +1,2 @@
-SHA256 (gcl-2.6.7.tar.gz) = 2aa134bc03f12ad03f40666ad00db78b8b9c195cf2cf0b3db4d176158f722c06
-SIZE (gcl-2.6.7.tar.gz) = 8193901
+SHA256 (gcl-2.6.10.tar.gz) = 79a1fb2f92b5e86f24988448db3e34116ab6ef7c93ad839848edd01ad06651ef
+SIZE (gcl-2.6.10.tar.gz) = 5490689

Modified: head/lang/gcl/files/patch-configure
==============================================================================
--- head/lang/gcl/files/patch-configure	Thu Feb 27 11:43:47 2014	(r346316)
+++ head/lang/gcl/files/patch-configure	Thu Feb 27 11:45:26 2014	(r346317)
@@ -1,21 +1,31 @@
 --- configure	2005-01-15 11:17:17.000000000 -0800
 +++ configure	2007-09-22 18:17:38.000000000 -0700
-@@ -1713,3 +1713,3 @@
- 	if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
--	    system=MP-RAS-`${AWK} '{print $3}' /etc/.relid'`
-+	    system=MP-RAS-`${AWK} '{print $3}' /etc/.relid`
- 	fi
-@@ -6368,4 +6368,4 @@
+@@ -4998,7 +4998,7 @@
+ 				TLIBS="$TLIBS -lgmp"
+ 				echo "#include \"gmp.h\"" >foo.c
+ 				echo "int main() {return 0;}" >>foo.c
+-				MP_INCLUDE=`cpp foo.c | grep /gmp.h | head -n 1 | $AWK '{print $3}' | tr -d '"'`
++				MP_INCLUDE=`$CPP $CPPFLAGS foo.c | grep /gmp.h | head -n 1 | $AWK '{print $3}' | tr -d '"'`
+ 				rm -f foo.c
+ else
+   echo "Cannot use dynamic gmp lib"
+@@ -8399,15 +8399,15 @@
+ if test -f ${TK_CONFIG_PREFIX}/../include/tk.h ; then
+   TK_INCLUDE=-I${TK_CONFIG_PREFIX}/../include
    else
 -  if test -f /usr/include/tcl${TCL_VERSION}/tk.h ; then
 -    TK_INCLUDE=-I/usr/include/tcl${TCL_VERSION}
 +  if test -f ${TK_CONFIG_PREFIX}/../../include/tk${TCL_VERSION}/tk.h ; then
 +    TK_INCLUDE=-I${TK_CONFIG_PREFIX}/../../include/tk${TCL_VERSION}
-   fi	
-@@ -6375,4 +6375,4 @@
+   fi
+ fi
+ if test -f ${TCL_CONFIG_PREFIX}/../include/tcl.h ; then
+   TCL_INCLUDE=-I${TCL_CONFIG_PREFIX}/../include
    else
 -  if test -f /usr/include/tcl${TCL_VERSION}/tcl.h ; then
 -    TCL_INCLUDE=-I/usr/include/tcl${TCL_VERSION}
 +  if test -f ${TK_CONFIG_PREFIX}/../../include/tcl${TCL_VERSION}/tcl.h ; then
 +    TCL_INCLUDE=-I${TK_CONFIG_PREFIX}/../../include/tcl${TCL_VERSION}
    fi
+ fi
+ 

Added: head/lang/gcl/files/patch-gcl-tk__tkMain.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/gcl/files/patch-gcl-tk__tkMain.c	Thu Feb 27 11:45:26 2014	(r346317)
@@ -0,0 +1,72 @@
+--- gcl-tk/tkMain.c.orig
++++ gcl-tk/tkMain.c
+@@ -206,7 +206,7 @@
+ 
+     if (Tk_ParseArgv(interp, (Tk_Window) NULL, &argc, (const char **)argv, argTable, 0)
+ 	    != TCL_OK) {
+-	fprintf(stderr, "%s\n", interp->result);
++	fprintf(stderr, "%s\n", Tcl_GetStringResult(interp));
+ 	exit(1);
+     }
+     if (name == NULL) {
+@@ -290,7 +290,7 @@
+      */
+ 
+     if (Tcl_AppInit(interp) != TCL_OK) {
+-	fprintf(stderr, "Tcl_AppInit failed: %s\n", interp->result);
++	fprintf(stderr, "Tcl_AppInit failed: %s\n", Tcl_GetStringResult(interp));
+     }
+ 
+     /*
+@@ -300,7 +300,7 @@
+     if (geometry != NULL) {
+ 	code = Tcl_VarEval(interp, "wm geometry . ", geometry, (char *) NULL);
+ 	if (code != TCL_OK) {
+-	    fprintf(stderr, "%s\n", interp->result);
++	    fprintf(stderr, "%s\n", Tcl_GetStringResult(interp));
+ 	}
+     }
+ 
+@@ -330,13 +330,13 @@
+     
+ 	    fullName = Tcl_TildeSubst(interp, tcl_RcFileName, &buffer);
+ 	    if (fullName == NULL) {
+-		fprintf(stderr, "%s\n", interp->result);
++		fprintf(stderr, "%s\n", Tcl_GetStringResult(interp));
+ 	    } else {
+ 		f = fopen(fullName, "r");
+ 		if (f != NULL) {
+ 		    code = Tcl_EvalFile(interp, fullName);
+ 		    if (code != TCL_OK) {
+-			fprintf(stderr, "%s\n", interp->result);
++			fprintf(stderr, "%s\n", Tcl_GetStringResult(interp));
+ 		    }
+ 		    fclose(f);
+ 		}
+@@ -371,7 +371,7 @@
+ error:
+     msg = Tcl_GetVar(interp, "errorInfo", TCL_GLOBAL_ONLY);
+     if (msg == NULL) {
+-	msg = interp->result;
++	msg = Tcl_GetStringResult(interp);
+     }
+     dfprintf(stderr, "%s\n", msg);
+     Tcl_Eval(interp, errorExitCmd);
+@@ -502,7 +502,7 @@
+ 	      bcopy(msg->msg_id,p,3);
+ 	      /* end header */
+ 	      if(sock_write_str2(dsfd, m_reply, buf, 4 ,
+-				 interp->result, strlen(interp->result))
++				 Tcl_GetStringResult(interp), strlen(Tcl_GetStringResult(interp)))
+ 		 < 0)
+ 		{		/* what do we want to do if the write failed */}
+ 	      
+@@ -686,7 +686,7 @@
+   code = Tcl_Eval(interp, szCmd);
+   if (code != TCL_OK)
+     {
+-      dfprintf(stderr, "TCL Error int bind : %s\n", interp->result);
++      dfprintf(stderr, "TCL Error int bind : %s\n", Tcl_GetStringResult(interp));
+ 
+     }
+   return code;

Modified: head/lang/gcl/files/patch-h_FreeBSD.defs
==============================================================================
--- head/lang/gcl/files/patch-h_FreeBSD.defs	Thu Feb 27 11:43:47 2014	(r346316)
+++ head/lang/gcl/files/patch-h_FreeBSD.defs	Thu Feb 27 11:45:26 2014	(r346317)
@@ -20,7 +20,7 @@ diff -u -d -r1.2.6.1.4.1 FreeBSD.defs
 -#LIBS    = -lm -L/usr/local/lib
 +#CFLAGS	= @@.CFLAGS@@
 +CFLAGS	= @@CFLAGS@@
-+CFLAGS	+= -fomit-frame-pointer -fsigned-char -DVOL=volatile -I$(GCLDIR)/o -I${prefix}/include -Wall -Werror
++CFLAGS	+= -fomit-frame-pointer -fsigned-char -DVOL=volatile -I$(GCLDIR)/o -Wall
 +CFLAGS += -UDBEGIN -DDBEGIN=0
 +#LIBS = @@.LOCALLIBS@@
 +LIBS = @@LOCALLIBS@@

Modified: head/lang/gcl/files/patch-h_FreeBSD.h
==============================================================================
--- head/lang/gcl/files/patch-h_FreeBSD.h	Thu Feb 27 11:43:47 2014	(r346316)
+++ head/lang/gcl/files/patch-h_FreeBSD.h	Thu Feb 27 11:45:26 2014	(r346317)
@@ -1,18 +1,34 @@
 --- h/FreeBSD.h	2004-06-12 12:28:15.000000000 -0400
 +++ h/FreeBSD.h	2009-12-07 12:07:37.000000000 -0500
-@@ -32,6 +32,11 @@
+@@ -11,9 +11,12 @@
+ #endif
+ 
+ #if defined(__i386__)
++#define RELOC_H "elf32_i386_reloc.h"
+ #define __ELF_NATIVE_CLASS 32
+ #endif
+-#if defined(__alpha__) || defined(__sparc64__) || defined(__ia64__)
++#if defined(__amd64__) || defined(__sparc64__) || defined(__ia64__)
++#define C_GC_OFFSET 4
++#define RELOC_H "elf64_i386_reloc.h"
+ #define __ELF_NATIVE_CLASS 64
+ #endif
+ 
+@@ -32,7 +35,12 @@
  #endif
  #include "linux.h"
  
+-#if defined(__i386__)
 +#if defined(SET_SESSION_ID)
 +#undef SET_SESSION_ID
 +#endif
 +#define SET_SESSION_ID() (setpgrp(0,0) ? -1 : 0)
 +
- #if defined(__i386__)
++#if defined(__i386__) || defined(__amd64__)
  #define I386
  #endif
-@@ -68,7 +73,11 @@
+ 
+@@ -68,7 +76,11 @@
  #ifdef CLOCKS_PER_SEC
  #define HZ CLOCKS_PER_SEC
  #else
@@ -25,3 +41,19 @@
  #endif
  /* #define ss_base ss_sp */
  
+@@ -79,6 +91,7 @@
+ #define HAVE_SIGPROCMASK
+ #define SIG_STACK_SIZE (SIGSTKSZ/sizeof(double))
+ 
++/*
+ #undef SETUP_SIG_STACK
+ #define SETUP_SIG_STACK {					\
+ 	static struct sigaltstack estack;			\
+@@ -90,6 +103,7 @@
+ 	if (sigaltstack(&estack, 0) < 0)			\
+ 		perror("sigaltstack");				\
+ }
++ */
+ 
+ #undef INSTALL_SEGMENTATION_CATCHER
+ #define INSTALL_SEGMENTATION_CATCHER				\

Modified: head/lang/gcl/files/patch-h_gclincl.h.in
==============================================================================
--- head/lang/gcl/files/patch-h_gclincl.h.in	Thu Feb 27 11:43:47 2014	(r346316)
+++ head/lang/gcl/files/patch-h_gclincl.h.in	Thu Feb 27 11:45:26 2014	(r346317)
@@ -1,17 +1,12 @@
 --- h/gclincl.h.in	2005-01-15 14:17:18.000000000 -0500
 +++ h/gclincl.h.in	2009-12-07 12:11:34.000000000 -0500
-@@ -10,7 +10,5 @@
- #undef X_DISPLAY_MISSING
- 
--#define DBEGIN 0
--
--#define MAXPAGE 128*1024
-+#define MAXPAGE (128*1024*(SIZEOF_LONG>>2)/(1<<(PAGEWIDTH-12)))
- #define VSSIZE 128*1024
- #define BDSSIZE 2*1024
-@@ -205,5 +203,4 @@
+@@ -219,9 +216,6 @@
+ /* Host system */
  #undef HOST_SYSTEM
- #undef GCL_GPROF_START
+ 
+-/* time system constant */
 -#undef HZ
+-
+ /* invocation history stack size */
+ #undef IHSSIZE
  
- /* The number of bytes in a long.  */

Modified: head/lang/gcl/files/patch-makedefc.in
==============================================================================
--- head/lang/gcl/files/patch-makedefc.in	Thu Feb 27 11:43:47 2014	(r346316)
+++ head/lang/gcl/files/patch-makedefc.in	Thu Feb 27 11:45:26 2014	(r346317)
@@ -1,29 +1,11 @@
-Index: makedefc.in
-===================================================================
-RCS file: /cvsroot/gcl/gcl/makedefc.in,v
-retrieving revision 1.15.6.3
-diff -u -d -r1.15.6.3 makedefc.in
---- makedefc.in	10 Mar 2004 22:51:36 -0000	1.15.6.3
-+++ makedefc.in	18 Aug 2004 16:29:20 -0000
-@@ -16,13 +16,18 @@
- prefix=@prefix@
- 
- # where to place the info files
--INFO_DIR=@INFO_DIR@
-+INFO_DIR=@prefix@/info
-+
-+# configure has a clever process for figuring out where Emacs
-+# really expects to find site-lisp and default.el.  We use
-+# these values instead to ensure that building with --prefix=PREFIX
-+# will not make changes outside the specified tree. -twp
- 
- # where to put emacs lisp files.
--EMACS_SITE_LISP=@EMACS_SITE_LISP@
-+EMACS_SITE_LISP=@prefix@/share/emacs/site-lisp
+--- makedefc.in.orig
++++ makedefc.in
+@@ -22,7 +22,7 @@
+ EMACS_SITE_LISP=@EMACS_SITE_LISP@
  
  # the default.el file
 -EMACS_DEFAULT_EL=@EMACS_DEFAULT_EL@
-+EMACS_DEFAULT_EL=@prefix@/share/emacs/site-lisp/default.el
++EMACS_DEFAULT_EL=@EMACS_SITE_LISP@/default.el
  
  # numerous TCL/TK variables culled from the tkConfig.sh and tclConfig.sh
  # if these are found.

Added: head/lang/gcl/files/patch-makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/gcl/files/patch-makefile	Thu Feb 27 11:45:26 2014	(r346317)
@@ -0,0 +1,11 @@
+--- makefile.orig
++++ makefile
+@@ -132,7 +132,7 @@
+ 	rm -f bin/gcl xbin/gcl
+ 	MGCLDIR=`echo $(GCLDIR) | sed -e 'sX^\([a-z]\):X/\1Xg'` ; \
+ 	GCLDIR=`echo $(GCLDIR)` ; \
+-	$(MAKE) install-command "INSTALL_LIB_DIR=$$GCLDIR" "prefix=$$GCLDIR" "BINDIR=$$MGCLDIR/$(PORTDIR)"
++	$(MAKE) install-command "DESTDIR=" "INSTALL_LIB_DIR=$$GCLDIR" "prefix=$$GCLDIR" "BINDIR=$$MGCLDIR/$(PORTDIR)"
+ 	(cd xbin ; cp ../bin/gcl .)
+ 
+ #	GCLDIR=`echo $(GCLDIR) | sed -e 'sX^/cygdrive/\([a-z]\)X\1!Xg' -e 'sX^//\([a-z]\)X\1!Xg'` ; \

Added: head/lang/gcl/files/patch-o__plttest.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/gcl/files/patch-o__plttest.c	Thu Feb 27 11:45:26 2014	(r346317)
@@ -0,0 +1,16 @@
+--- o/plttest.c.orig
++++ o/plttest.c
+@@ -11,11 +11,13 @@
+ #define DARWIN
+ #endif
+ 
++#ifndef __FreeBSD__
+ #ifndef DARWIN
+ extern int _mcount();
+ #define mmcount _mcount
+ extern void sincos(double,double *,double *);
+ #endif
++#endif
+ 
+ int
+ main(int argc,char * argv[],char *envp[]) {

Added: head/lang/gcl/files/patch-o__sfasli.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/gcl/files/patch-o__sfasli.c	Thu Feb 27 11:45:26 2014	(r346317)
@@ -0,0 +1,18 @@
+--- o/sfasli.c.orig
++++ o/sfasli.c
+@@ -131,6 +131,7 @@
+ extern int __remq();
+ extern int __remqu();
+ 
++#ifndef __FreeBSD__
+ #ifndef DARWIN
+ #ifndef _WIN32
+ int
+@@ -147,6 +148,7 @@
+ }
+ #endif
+ #endif
++#endif
+ 
+ void
+ gcl_init_sfasl() {

Modified: head/lang/gcl/files/patch-unixport_makefile
==============================================================================
--- head/lang/gcl/files/patch-unixport_makefile	Thu Feb 27 11:43:47 2014	(r346316)
+++ head/lang/gcl/files/patch-unixport_makefile	Thu Feb 27 11:45:26 2014	(r346317)
@@ -1,9 +1,20 @@
 --- unixport/makefile	2005-01-15 11:34:45.000000000 -0500
 +++ unixport/makefile	2009-12-07 12:35:23.000000000 -0500
-@@ -15,5 +15,5 @@
+@@ -18,7 +18,7 @@
  
- LD_LIBS_PRE=$(FIRST_FILE) $(addprefix -u ,$(PATCHED_SYMBOLS))
+ LD_FLAGS=$(LDFLAGS) $(FIRST_FILE)
+ LD_LIBS_PRE=$(addprefix -u ,$(PATCHED_SYMBOLS))
 -LD_LIBS_POST=$(LIBS) $(LIBC) -lgclp $(LAST_FILE)
 +LD_LIBS_POST=-lgclp $(LIBS) $(LAST_FILE)
  
  ifeq ($(ARRS),)
+ ARRS:=ar rs
+@@ -127,7 +127,7 @@
+ 	$(CC) $(LD_FLAGS) $(CFLAGS) -I$(HDIR) -I$(ODIR) -o $(RSYM) $(SPECIAL_RSYM)
+ 
+ msys: msys.c
+-	PATH=/usr/bin:$$PATH gcc $< -o $@ # Unix binary if running wine
++	PATH=/usr/bin:$$PATH $(CC) $< -o $@ # Unix binary if running wine
+ 
+ $(HDIR)/mdefs.h: $(HDIR)/include.h
+ 	cat $(HDIR)/include.h | sed -e "/include/d" > $(HDIR)/mdefs.h

Added: head/lang/gcl/files/patch-xgcl-2__makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/gcl/files/patch-xgcl-2__makefile	Thu Feb 27 11:45:26 2014	(r346317)
@@ -0,0 +1,11 @@
+--- xgcl-2/makefile.orig
++++ xgcl-2/makefile
+@@ -9,7 +9,7 @@
+ saved_xgcl: $(LISP)
+ 	echo '(load "sysdef.lisp")(xlib::compile-xgcl)(xlib::save-xgcl "$@")' | $(LISP)
+ 
+-docs: dwdoc/dwdoccontents.html dwdoc.pdf
++docs: dwdoc/dwdoccontents.html
+ 
+ dwdoc/dwdoccontents.html: $(LISP)
+ 	mkdir -p $(@D) && \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402271145.s1RBjQ71019148>