Index: head/math/oleo/Makefile =================================================================== --- head/math/oleo/Makefile (revision 549723) +++ head/math/oleo/Makefile (revision 549724) @@ -1,53 +1,54 @@ # Created by: mr # $FreeBSD$ PORTNAME= oleo PORTVERSION= 1.99.16 -PORTREVISION= 10 +PORTREVISION= 11 CATEGORIES= math MASTER_SITES= GNU MAINTAINER= ports@FreeBSD.org COMMENT= GNU spreadsheet for X11 and terminals LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING USES= bison:alias localbase ncurses perl5 USE_PERL5= build GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-x --without-xlt --without-SciPlot +CONFIGURE_ENV= CFLAGS=-fwrapv MAKE_ARGS+= DESTDIR="${STAGEDIR}" BINARY_ALIAS= makeinfo=false # disable detecting local makeinfo INFO= oleo OPTIONS_DEFINE= MOTIF NLS OPTIONS_SUB= yes MOTIF_LIB_DEPENDS= libplot.so:graphics/plotutils \ libXbae.so:x11-toolkits/xbae \ libXmHTML.so:x11-toolkits/xmhtml MOTIF_USES_OFF= xorg MOTIF_USES= motif MOTIF_CONFIGURE_WITH= motif MOTIF_USE_OFF= XORG=xt,ice,sm NLS_USES= gettext NLS_LIBS= -lintl NLS_CONFIGURE_ENABLE= nls NLS_USES_OFF= gettext-tools -post-patch: +pre-build: @${GREP} -lR "malloc\.h" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \ 's|malloc\.h|stdlib.h|g' .for pof in en fr nl @${REINPLACE_CMD} -e "s|CHARSET|ISO-8859-1|;s|ENCODING|8bit|" \ ${WRKSRC}/po/${pof}.po .endfor @${REINPLACE_CMD} -e "s|am: install-docDATA|am:|" ${WRKSRC}/Makefile.in @${REINPLACE_CMD} -e "s|install-info-am install-htmlDATA|install-info-am|" \ ${WRKSRC}/doc/Makefile.in .include Index: head/math/oleo/files/patch-src_posixtm.y =================================================================== --- head/math/oleo/files/patch-src_posixtm.y (revision 549723) +++ head/math/oleo/files/patch-src_posixtm.y (revision 549724) @@ -1,10 +1,22 @@ --- src/posixtm.y.orig 2000-07-22 06:13:16 UTC +++ src/posixtm.y -@@ -85,6 +85,7 @@ date : +@@ -40,6 +40,11 @@ char *alloca (); + #include + + #define YYDEBUG 1 ++#define yychar yychar_posixtm ++#define yyerrflag yyerrflag_posixtm ++#define yylval yylval_posixtm ++#define yynerrs yynerrs_posixtm ++#define yyval yyval_posixtm + + /* Lexical analyzer's current scan position in the input string. */ + static char *curpos; +@@ -85,6 +90,7 @@ date : YYABORT; } } + ; year : digitpair { t.tm_year = $1;