head	1.58;
access;
symbols
	RELEASE_8_3_0:1.42
	RELEASE_9_0_0:1.37
	RELEASE_7_4_0:1.32
	RELEASE_8_2_0:1.32
	RELEASE_6_EOL:1.30
	RELEASE_8_1_0:1.24
	RELEASE_7_3_0:1.20
	RELEASE_8_0_0:1.17
	RELEASE_7_2_0:1.11
	RELEASE_7_1_0:1.5
	RELEASE_6_4_0:1.5;
locks; strict;
comment	@# @;


1.58
date	2013.03.21.12.53.35;	author svnexp;	state Exp;
branches;
next	1.57;

1.57
date	2013.03.07.14.12.33;	author svnexp;	state Exp;
branches;
next	1.56;

1.56
date	2013.02.20.10.47.18;	author svnexp;	state Exp;
branches;
next	1.55;

1.55
date	2013.02.05.09.44.38;	author svnexp;	state Exp;
branches;
next	1.54;

1.54
date	2013.01.21.17.46.31;	author svnexp;	state Exp;
branches;
next	1.53;

1.53
date	2013.01.09.19.00.16;	author svnexp;	state Exp;
branches;
next	1.52;

1.52
date	2012.12.18.15.27.14;	author svnexp;	state Exp;
branches;
next	1.51;

1.51
date	2012.12.18.10.21.38;	author svnexp;	state Exp;
branches;
next	1.50;

1.50
date	2012.11.28.14.21.16;	author svnexp;	state Exp;
branches;
next	1.49;

1.49
date	2012.11.17.05.58.56;	author svnexp;	state Exp;
branches;
next	1.48;

1.48
date	2012.10.29.08.54.40;	author gahr;	state Exp;
branches;
next	1.47;

1.47
date	2012.10.18.13.01.49;	author gahr;	state Exp;
branches;
next	1.46;

1.46
date	2012.09.24.12.56.05;	author gahr;	state Exp;
branches;
next	1.45;

1.45
date	2012.08.16.09.44.04;	author gahr;	state Exp;
branches;
next	1.44;

1.44
date	2012.07.09.12.07.29;	author gahr;	state Exp;
branches;
next	1.43;

1.43
date	2012.06.14.10.20.37;	author gahr;	state Exp;
branches;
next	1.42;

1.42
date	2012.03.06.14.17.24;	author gahr;	state Exp;
branches;
next	1.41;

1.41
date	2012.02.28.11.37.59;	author gahr;	state Exp;
branches;
next	1.40;

1.40
date	2012.02.06.08.52.16;	author gahr;	state Exp;
branches;
next	1.39;

1.39
date	2012.02.03.10.28.24;	author gahr;	state Exp;
branches;
next	1.38;

1.38
date	2012.01.03.09.08.47;	author gahr;	state Exp;
branches;
next	1.37;

1.37
date	2011.11.24.09.05.43;	author gahr;	state Exp;
branches;
next	1.36;

1.36
date	2011.11.23.09.27.46;	author gahr;	state Exp;
branches;
next	1.35;

1.35
date	2011.09.07.07.33.44;	author gahr;	state Exp;
branches;
next	1.34;

1.34
date	2011.04.05.09.35.33;	author gahr;	state Exp;
branches;
next	1.33;

1.33
date	2011.03.15.19.46.17;	author gahr;	state Exp;
branches;
next	1.32;

1.32
date	2011.02.04.13.30.52;	author gahr;	state Exp;
branches;
next	1.31;

1.31
date	2010.12.24.10.52.58;	author gahr;	state Exp;
branches;
next	1.30;

1.30
date	2010.11.11.18.55.40;	author gahr;	state Exp;
branches;
next	1.29;

1.29
date	2010.10.13.09.50.58;	author gahr;	state Exp;
branches;
next	1.28;

1.28
date	2010.09.20.11.36.12;	author gahr;	state Exp;
branches;
next	1.27;

1.27
date	2010.09.18.07.17.16;	author gahr;	state Exp;
branches;
next	1.26;

1.26
date	2010.08.18.10.07.23;	author gahr;	state Exp;
branches;
next	1.25;

1.25
date	2010.07.14.10.33.06;	author gahr;	state Exp;
branches;
next	1.24;

1.24
date	2010.06.30.22.49.53;	author pav;	state Exp;
branches;
next	1.23;

1.23
date	2010.06.21.13.05.49;	author gahr;	state Exp;
branches;
next	1.22;

1.22
date	2010.06.07.10.32.01;	author gahr;	state Exp;
branches;
next	1.21;

1.21
date	2010.05.31.08.06.27;	author gahr;	state Exp;
branches;
next	1.20;

1.20
date	2010.03.04.14.02.13;	author gahr;	state Exp;
branches;
next	1.19;

1.19
date	2009.12.23.08.38.31;	author gahr;	state Exp;
branches;
next	1.18;

1.18
date	2009.11.27.08.15.19;	author gahr;	state Exp;
branches;
next	1.17;

1.17
date	2009.08.27.15.04.14;	author amdmi3;	state Exp;
branches;
next	1.16;

1.16
date	2009.08.25.13.43.47;	author gahr;	state Exp;
branches;
next	1.15;

1.15
date	2009.08.22.00.24.35;	author amdmi3;	state Exp;
branches;
next	1.14;

1.14
date	2009.07.08.15.03.54;	author gahr;	state Exp;
branches;
next	1.13;

1.13
date	2009.05.01.19.37.26;	author gahr;	state Exp;
branches;
next	1.12;

1.12
date	2009.04.22.18.37.09;	author gahr;	state Exp;
branches;
next	1.11;

1.11
date	2009.04.05.18.57.48;	author gahr;	state Exp;
branches;
next	1.10;

1.10
date	2009.03.10.21.13.30;	author gahr;	state Exp;
branches;
next	1.9;

1.9
date	2008.11.03.13.40.44;	author gahr;	state Exp;
branches;
next	1.8;

1.8
date	2008.10.21.21.13.32;	author gahr;	state Exp;
branches;
next	1.7;

1.7
date	2008.10.06.17.42.42;	author gahr;	state Exp;
branches;
next	1.6;

1.6
date	2008.09.23.14.36.41;	author gahr;	state Exp;
branches;
next	1.5;

1.5
date	2008.09.03.09.50.57;	author gahr;	state Exp;
branches;
next	1.4;

1.4
date	2008.08.22.16.18.08;	author gahr;	state Exp;
branches;
next	1.3;

1.3
date	2008.08.05.14.10.46;	author gahr;	state Exp;
branches;
next	1.2;

1.2
date	2008.07.31.05.45.17;	author gahr;	state Exp;
branches;
next	1.1;

1.1
date	2008.07.16.22.42.13;	author gahr;	state Exp;
branches;
next	;


desc
@@


1.58
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/314745
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: gahr
# $FreeBSD: head/lang/seed7/Makefile 314745 2013-03-20 16:59:15Z gahr $

PORTNAME=	seed7
DISTVERSION=	05_20130317
CATEGORIES=	lang
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${DISTNAME}/
DISTNAME=	${PORTNAME}_${DISTVERSION}
EXTRACT_SUFX=	.tgz

MAINTAINER=	gahr@@FreeBSD.org
COMMENT=	High-level, extensible programming language

LICENSE=	LGPL21

USE_GMAKE=	yes
USE_XORG=	x11
MAN1=		s7.1 s7c.1

ONLY_FOR_ARCHS=	i386 amd64 sparc64

WRKSRC=		${WRKDIR}/${PORTNAME}/src
MAKEFILE=	makefile
MAKE_ENV+=	S7_LIB_DIR=${S7_LIB_DIR} \
		SEED7_LIBRARY=${SEED7_LIBRARY} \
		C_COMPILER=${CC} \
		CPLUSPLUS_COMPILER=${CPP}
ALL_TARGET=	depend s7 s7c

SEED7_LIBRARY=	${PREFIX}/lib/${PORTNAME}/lib
S7_LIB_DIR=	${PREFIX}/lib/${PORTNAME}/bin
S7_LIBS=	s7_comp.a s7_con.a s7_draw.a s7_data.a seed7_05.a

PORTEXAMPLES=	*
PORTDOCS=	*

.include <bsd.port.options.mk>

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 800000
BROKEN=		does not compile
.endif

.if ${OSVERSION} >= 1000024 || ${CC} == clang
MAKEFILE=	mk_clang.mak
.else
MAKEFILE=	makefile
.endif

post-patch:
	${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g;' ${WRKSRC}/makefile ${WRKSRC}/mk_clang.mak
	${REINPLACE_CMD} -e '/FLOATTYPE_DOUBLE/s|undef|define|' ${WRKSRC}/config.h
#	${REINPLACE_CMD} -i '' -e 's|./s7|${PREFIX}/bin/s7|g' ${WRKSRC}/../prg/chk_all.sd7

do-install:
#	install interpreter and compiler
	${INSTALL_PROGRAM} ${WRKSRC}/../bin/s7 ${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/../prg/s7c ${PREFIX}/bin
#	install seed7 library
	${INSTALL} -d ${SEED7_LIBRARY}
	cd ${WRKSRC}/../lib && ${COPYTREE_SHARE} '*.s7i' ${SEED7_LIBRARY}
#	install static libraries
	${INSTALL} -d ${S7_LIB_DIR}
.for s7_lib in ${S7_LIBS}
	${INSTALL_DATA} ${WRKSRC}/../bin/${s7_lib} ${S7_LIB_DIR}
.endfor
#	install PORTDOCS
.if ${PORT_OPTIONS:MDOCS}
	${INSTALL} -d ${DOCSDIR}
	cd ${WRKSRC}/../doc && ${COPYTREE_SHARE} \* ${DOCSDIR}
.endif
#	install PORTEXAMPLES
.if !defined(NOPORTEXAMPLES)
	${INSTALL} -d ${EXAMPLESDIR}
	cd ${WRKSRC}/../prg && ${COPYTREE_SHARE} '*.dna *.sd7 *.dat *.s7i' ${EXAMPLESDIR}
.endif
#	insall man pages
	${INSTALL_DATA} ${WRKSRC}/../doc/s7.1 ${MANPREFIX}/man/man1
	${INSTALL_DATA} ${WRKSRC}/../doc/s7c.1 ${MANPREFIX}/man/man1

regression-test: build
	cd ${WRKSRC} && ${GMAKE} test

.include <bsd.port.post.mk>
@


1.57
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/313572
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d2 1
a2 1
# $FreeBSD: head/lang/seed7/Makefile 313572 2013-03-07 09:54:34Z gahr $
d5 1
a5 1
DISTVERSION=	05_20130303
@


1.56
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/312621
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d2 1
a2 1
# $FreeBSD: head/lang/seed7/Makefile 312621 2013-02-20 09:56:01Z gahr $
d5 1
a5 1
DISTVERSION=	05_20130217
@


1.55
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/311669
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d2 1
a2 1
# $FreeBSD: head/lang/seed7/Makefile 311669 2013-02-05 08:46:44Z gahr $
d5 1
a5 1
DISTVERSION=	05_20130203
@


1.54
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/310774
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d2 1
a2 1
# $FreeBSD: head/lang/seed7/Makefile 310774 2013-01-21 17:04:13Z gahr $
d5 1
a5 1
DISTVERSION=	05_20130120
d18 1
d78 3
d83 1
a83 3
	@@echo ""
	@@echo "Testing the ${PORTNAME} installation"
	@@(cd ${WRKSRC}/../prg && ${WRKSRC}/../bin/s7 -l ${WRKSRC}/../lib chk_all build)
@


1.53
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/310158
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r310158 | gahr | 2013-01-09 16:48:22 +0000 (Wed, 09 Jan 2013) | 28 lines
## SVN ##
## SVN ## - Update to 05_20130105
## SVN ##   Changes:
## SVN ##
## SVN ##   * The Seed7 interpreter was renamed. The new name of the Seed7 interpreter
## SVN ##     is s7.
## SVN ##   * Manual, FAQ, read_me files and several example programs were updated to
## SVN ##     use the new name of the Seed7 interpreter (s7).
## SVN ##   * The build process of a package can compile interpreter and compiler with
## SVN ##     (xx and yy must be replaced with a path):
## SVN ##     $ make S7_LIB_DIR=xx SEED7_LIBRARY=yy depend s7 s7c
## SVN ##   * The function drwOpen in drw_win.c was improved to hide the console
## SVN ##     window, when the program was not started from a console.
## SVN ##   * Descriptions of the operators 'sci' and 'exp' were added to the manual.
## SVN ##   * Documentation comments were added to clib_file.s7i.
## SVN ##   * In pixmap_file.s7i the functions for pixmapFontFiles were improved.
## SVN ##   * Interpreter and compiler were improved to allow using winmain as main
## SVN ##     function.
## SVN ##   * In cmd_win.c the function prepareCommandLine was improved and in the
## SVN ##     function cmdStartProcess the flag wShowWindow was changed to 1.
## SVN ##   * The file hi.c was renamed to s7.c.
## SVN ##   * In striutl.c the function escape_command was changed to quote commands
## SVN ##     with special characters under windows.
## SVN ##   * In striutl.c the function cp_to_command was improved to do a quoting
## SVN ##     under windows, even when there are no parameters.
## SVN ##   * Parameter names were added to null_file.s7i, osfiles.s7i, time.s7i,
## SVN ##     pixmapfont.s7i, progs.s7i, reference.s7i, seed7_05.s7i, shell.s7i,
## SVN ##     stritext.s7i, text.s7i, rever.sd7 and snake.sd7.
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: head/lang/seed7/Makefile 310158 2013-01-09 16:48:22Z gahr $
d5 1
a5 1
DISTVERSION=	05_20130105
d27 1
a27 1
ALL_TARGET=	depend s7
d44 6
d51 1
a51 1
	${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g;' ${WRKSRC}/makefile
d53 1
a53 1
	${REINPLACE_CMD} -i '' -e 's|./s7|${PREFIX}/bin/s7|g' ${WRKSRC}/../prg/chk_all.sd7
d56 1
a56 1
#	install interpreter
d58 1
a66 4
#	compile the seed7 compiler (needs the libraries to be installed)
	cd ${WRKSRC} && ${GMAKE} s7c
	${INSTALL_PROGRAM} ${WRKSRC}/../prg/s7c ${PREFIX}/bin/s7c
	${RM} ${WRKSRC}/../prg/tmp_s7c.c ${WRKSRC}/../prg/s7c
d78 1
a78 1
regression-test: ${INSTALL_TARGET}
d81 1
a81 1
	@@(cd ${WRKSRC}/../prg && ${PREFIX}/bin/s7 chk_all)
@


1.52
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/309190
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r309190 | gahr | 2012-12-18 15:23:09 +0000 (Tue, 18 Dec 2012) | 2 lines
## SVN ##
## SVN ## - Use double-precision floating point numbers
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: head/lang/seed7/Makefile 309190 2012-12-18 15:23:09Z gahr $
d5 1
a5 1
DISTVERSION=	05_20121212
d27 1
a27 1
ALL_TARGET=	depend hi
d36 2
d47 1
a47 1
	${REINPLACE_CMD} -i '' -e 's|./hi|${PREFIX}/bin/hi|g' ${WRKSRC}/../prg/chk_all.sd7
d51 1
a51 1
	${INSTALL_PROGRAM} ${WRKSRC}/../bin/hi ${PREFIX}/bin
d65 1
a65 1
.if !defined(NOPORTDOCS)
d75 1
a75 1
regression-test: install
d78 1
a78 1
	@@(cd ${WRKSRC}/../prg && ${PREFIX}/bin/hi chk_all)
@


1.51
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/309159
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r309159 | gahr | 2012-12-18 10:17:50 +0000 (Tue, 18 Dec 2012) | 38 lines
## SVN ##
## SVN ## - Update to 05_20121212
## SVN ##   Changes:
## SVN ##
## SVN ##   * The Seed7 compiler was renamed. The new name of the Seed7 compiler
## SVN ##     is s7c.
## SVN ##   * Manual, FAQ, read_me files and several example programs were
## SVN ##     updated to use the new name of the Seed7 compiler (s7c).
## SVN ##   * A description of ltrim and rtrim and some links were added to the
## SVN ##     manual.
## SVN ##   * The library make.s7i and the example program make7.sd7 were
## SVN ##     improved to execute make commands with predefined macros.
## SVN ##   * The library makedata.s7i was improved to support dependencies
## SVN ##     which contain a space.
## SVN ##   * The library make.s7i was improved to support the command cp -a.
## SVN ##   * A variant of the function popen, with the parameters 'command' and
## SVN ##     'parameters', was added to shell.s7i.
## SVN ##   * An explanation, why & and <& are defined for string concatenation,
## SVN ##     was added to the FAQ.
## SVN ##   * The program tar7.sd7 was improved to accept also DOS paths for all
## SVN ##     file arguments.
## SVN ##   * Documentation comments were added to progs.s7i and reference.s7i.
## SVN ##   * The files drw_win.c, drw_x11.c and gkb_x11.c were improved to
## SVN ##     exit a program when the close button (X) is pressed.
## SVN ##   * The functions refFile, refLine, refParams and refSetParams in
## SVN ##     ref_data.c were improved to raise RANGE_ERROR, when they are
## SVN ##     called with NULL.
## SVN ##   * The function ref_params in reflib.c was improved to call refParams.
## SVN ##   * The makefiles were improved such that 'make s7c' generates an
## SVN ##     executable of the Seed7 compiler.
## SVN ##   * The makefile mk_mingc.mak, which supports the compilation of the
## SVN ##     self extracting version of Seed7, was improved.
## SVN ##   * The support for the unused action REF_NAME was removed.
## SVN ##
## SVN ## - Reorganize installed files structure as per author's request
## SVN ##   (see http://seed7.sourceforge.net/faq.htm#seed7_package)
## SVN ##
## SVN ## - Remove article from COMMENT
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: head/lang/seed7/Makefile 309159 2012-12-18 10:17:50Z gahr $
d44 1
@


1.50
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/307906
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r307906 | gahr | 2012-11-28 14:18:12 +0000 (Wed, 28 Nov 2012) | 58 lines
## SVN ##
## SVN ## - Update to 05_20121125
## SVN ##
## SVN ##   20121125:
## SVN ##   - The makefiles and the file setpaths.c were improved to accept the
## SVN ##     macros S7_LIB_DIR (Directory with static Seed7 object libraries)
## SVN ##     and SEED7_LIBRARY (Directory with the Seed7 include libraries).
## SVN ##     Now the build process of a package can call make e.g. with:
## SVN ##     make S7_LIB_DIR=/abc/seed7/bin SEED7_LIBRARY=/abc/seed7/lib depend
## SVN ##     This way the two paths are defined in version.h. This defines them
## SVN ##     as default paths in the interpreter executable and in the compiler.
## SVN ##   - An explanation, what a binary Seed7 package should install, was
## SVN ##     added to the FAQ. This can be used as guideline for Seed7 packages.
## SVN ##   - The description of the times-operator in the manual and in
## SVN ##     array.s7i was improved.
## SVN ##   - A description of the function name(PROGRAM), file(PROGRAM) and
## SVN ##     'environment' was added to the manual.
## SVN ##   - The new library environment.s7i was added. Most of the contents of
## SVN ##     this library was extracted from "seed7_05.sd7". The new library is
## SVN ##     included from "seed7_05.s7i", so no change in existing programs is
## SVN ##     necessary.
## SVN ##   - A documentation comment for getSearchPath was added to shell.s7i.
## SVN ##   - The functions ltrim and rtrim were added to the library string.s7i.
## SVN ##   - Testcases for ltrim and rtrim were added to chkstr.sd7.
## SVN ##   - The function getProgramName in arr_rtl.c was improved to do the
## SVN ##     comparison with EXECUTABLE_FILE_EXTENSION correctly.
## SVN ##   - The program tar7.sd7 was improved to accept also DOS paths for the
## SVN ##     file specified with -f.
## SVN ##   - The function homeDir was improved to work with DJGPP (either $HOME
## SVN ##     or C:\ is used).
## SVN ##   - The function prc_cpy in prclib.c was improved.
## SVN ##   - The files executl.c, hshlib.c, ref_data.c, reflib.c and sctlib.c
## SVN ##     were improved to copy the descriptor union with memcpy and to copy
## SVN ##     the posinfo flag with SET_ANY_FLAG, when necessary.
## SVN ##
## SVN ##   20121104:
## SVN ##   - The new function homeDir was added to the library osfiles.s7i.
## SVN ##     Interpreter and compiler were improved to support homeDir.
## SVN ##   - The libraries makedata.s7i and make.s7i were improved to support
## SVN ##     replacement macros.
## SVN ##   - A check for division by zero with /:= was added to chkflt.sd7.
## SVN ##   - The compiler (comp.sd7) was improved to use definitions of
## SVN ##     NOT_A_NUMBER, POSITIVE_INFINITY and NEGATIVE_INFINITY.
## SVN ##   - The program chkccomp.c was improved. Now it manages the macros
## SVN ##     likely, unlikely, UNISTD_H_PRESENT, POPEN_MISSING, os_utime_orig,
## SVN ##     os_utime, USE_ALTERNATE_UTIME, INCLUDE_SYS_UTIME, USE_LOCALTIME_R,
## SVN ##     USE_LOCALTIME_S, FLOAT_ZERO_DIV_ERROR, CHECK_FLOAT_DIV_BY_ZERO,
## SVN ##     ISNAN_WITH_UNDERLINE and HOME_DIR_ENV_VAR. Additionally chkccomp.c
## SVN ##     does not depend on the definitions of long_long_EXISTS,
## SVN ##     long_long_SUFFIX_LL, __int64_EXISTS, __int64_SUFFIX_LL and
## SVN ##     USE_BUILTIN_EXPECT in chkccomp.h.
## SVN ##   - The functions flt_div and flt_div_assign in fltlib.c were improved
## SVN ##     to work correctly when CHECK_FLOAT_DIV_BY_ZERO is defined.
## SVN ##   - Several #defines were ommitted from the makefiles.
## SVN ##   - Explanations of several version.h #defines were added to
## SVN ##     read_me.txt
## SVN ##
## SVN ## Feature safe:	yes
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: head/lang/seed7/Makefile 307906 2012-11-28 14:18:12Z gahr $
d5 1
a5 1
DISTVERSION=	05_20121125
d12 1
a12 1
COMMENT=	A high-level, extensible programming language
d23 2
a24 2
MAKE_ENV+=	S7_LIB_DIR=${PREFIX}/lib/seed7 \
		SEED7_LIBRARY=${PREFIX}/lib/seed7 \
d29 7
d47 1
d49 8
a56 9
	${INSTALL} -d ${PREFIX}/lib/${PORTNAME}
	(cd ${WRKSRC}/../lib && ${COPYTREE_SHARE} \* ${PREFIX}/lib/${PORTNAME})
	${INSTALL_DATA} ${WRKSRC}/../bin/s7_comp.a ${PREFIX}/lib/${PORTNAME}
	${INSTALL_DATA} ${WRKSRC}/../bin/s7_con.a ${PREFIX}/lib/${PORTNAME}
	${INSTALL_DATA} ${WRKSRC}/../bin/s7_draw.a ${PREFIX}/lib/${PORTNAME}
	${INSTALL_DATA} ${WRKSRC}/../bin/s7_data.a ${PREFIX}/lib/${PORTNAME}
	${INSTALL_DATA} ${WRKSRC}/../bin/seed7_05.a ${PREFIX}/lib/${PORTNAME}

post-install:
d58 3
a60 3
	cd ${WRKSRC}/../prg && ./hi comp -O2 comp
	${INSTALL_PROGRAM} ${WRKSRC}/../prg/comp ${PREFIX}/bin/hi_comp
	${RM} ${WRKSRC}/../prg/tmp_comp.c ${WRKSRC}/../prg/comp
d64 1
a64 1
	(cd ${WRKSRC}/../doc && ${COPYTREE_SHARE} \* ${DOCSDIR})
d69 1
a69 1
	(cd ${WRKSRC}/../prg && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
d72 1
a72 1
test: ${INSTALL_TARGET}
@


1.49
log
@Switch exporter over
@
text
@d2 1
a2 1
# $FreeBSD: head/lang/seed7/Makefile 306597 2012-10-29 08:54:40Z gahr $
d5 1
a5 1
DISTVERSION=	05_20121021
d23 5
a27 1
ALL_TARGET=	hi
d36 2
a37 9
	${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g;\
	    s|`pwd`|${PREFIX}/lib/${PORTNAME}|g;\
	    s|-lX11|$${LFLAGS} -lX11|g' \
	    ${WRKSRC}/makefile
	${REINPLACE_CMD} -i '' -e 's|./hi|${PREFIX}/bin/hi|g' \
	    ${WRKSRC}/../prg/chk_all.sd7

do-configure:
	(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} depend)
d50 5
d59 1
d65 1
a65 1
test: install
@


1.48
log
@SVN rev 306597 on 2012-10-29 08:54:40Z by gahr

- Update to 05_20121021

  Changes:

  - The library vecfont10.s7i, which defines the standard vector font
    with capital height 10, was added. Now mahjong.sd7 and shisen.sd7
    use vecfont10.s7i.
  - The programs mahjong.sd7, pairs.sd7, shisen.sd7 and sokoban.sd7
    were improved to fit into a screen with a resolution of 1024 x 768.
  - The library make.s7i was improved: The parsing of command
    parameters (used by the Unix version of the echo command), was
    improved. The processing of pattern rules was improved (The rule
    with the shortest stem value is used, when several rules match).
  - Functions to read a makefile were moved from make.s7i to the new
    library makedata.s7i.
  - The reading of makefiles was improved: The processing of the gmake
    directives 'ifeq' and 'ifneq' was improved to allow else clauses.
    The processing of the nmake directive 'if' was added. Merging of
    dependencies for rules with the same target was improved.
  - The parse function for time values (library time.s7i) was improved
    to allow fractions of a second.
  - The functions getSubNodes and getContent and a for-loop for xmlNode
    values were defined in the library xmldom.s7i.
  - The compiler was improved to initialize bstring literals correctly,
    when pointers are 64-bit and integers are 32-bit.
  - The font libraries cronos16.s7i, cronos27.s7i, modern27.s7i and
    vecfont18.s7i were improved to include vectorfont.s7i.
  - The font libraries stdfont10.s7i, stdfont12.s7i, stdfont14.s7i,
    stdfont16.s7i, stdfont18.s7i, stdfont20.s7i and stdfont24.s7i were
    improved to include bitmapfont.s7i.
  - The program dnafight.sd7 was improved to limit the speed of the
    animation.
  - The program make7.sd7 was improved to recognize the options
    correctly. Additionally make7 inherits also all improvements of
    makedata.s7i and make.s7i.
  - The program ftp7.sd7 was improved to accept the option -?.
  - The graphic libraries drw_x11.c and drw_win.c were improved to draw
    the background of maximized windows with the color of the last
    clear command.

Feature safe:	yes
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.47
log
@SVN rev 306068 on 2012-10-18 13:01:49Z by gahr

- Update to 05_20121007

  Changes:

  20121007:
  - An error message, that could occur when the Seed7 interpreter is
    compiled, is explained in the FAQ and to 'src/read_me.txt'.
  - A description of the for-step-statement was added to the manual.
  - The library make.s7i was improved. Now makefile dependencies can
    contain colons (:) and equal signs (=). The parameters of the echo
    command are parsed better now. Calls of the function callOwnProgram
    are also avoided now. This way the library works correctly, when it
    is used by programs other than make7.sd7.
  - The library tar.s7i was improved to set the file mode, when an
    archive is extracted.
  - Testcases for a variant of the @@:= operator, which copies a string
    to another, were added to the program chkstr.sd7.
  - Interpreter and compiler were improved to support the situation,
    when source and destination of the @@:= operator (action STR_POSCPY)
    are identical.
  - The compiler was improved to support the action ITF_DESTR.
  - The compiler was improved, to call C compiler and linker with
    specific options, such that unneeded functions are ommited (when
    the linker and executable file format support this feature).
  - The compiler was improved to remove debug symbols, unless called
    with -g (some makefiles now define LINKER_OPT_NO_DEBUG_INFO).
  - The function name(PROGRAM) was improved, to return the program name
    without following symbolic links.
  - The function path(PROGRAM) was improved, to follow symbolic links
    (see function followLink in cmd_rtl.c). Consequently dir(PROGRAM)
    also follows symbolic links.
  - The function CommandLineToArgvW in cmd_win.c was improved.
  - The files itf_rtl.c and itf_rtl.h, which contain interface
    functions, were added.
  - The makefile mk_mingc.mak was added to support compilation of the
    self extracting version of Seed7.

  20120923:
  - Experimental support for automatic memory management with reference
    counting was added to the interpreter.
  - The libraries external_file.s7i, field.s7i, stritext.s7i, gzip.s7i,
    listener.s7i, pixmap_file.s7i, shell.s7i, socket.s7i, strifile.s7i,
    dir.s7i, utf16.s7i, utf8.s7i and xmldom.s7i were improved to use
    the function toInterface.
  - The function name(PROGRAM) was improved, to return the name of the
    program without extension and without path.
  - The interpreter was improved to support the action ITF_DESTR.

Feature safe:	yes
@
text
@d1 1
a1 4
# New ports collection Makefile for:	seed7
# Date created:				16 July 2008
# Whom:					gahr
#
a2 1
#
d5 1
a5 1
DISTVERSION=	05_20121007
@


1.46
log
@SVN rev 304777 on 2012-09-24 12:56:05Z by gahr

- update to 05_20120909

  Changes:

    20120909:
    - The chapters about predefined statements and the foreign function
      interface in the manual, were improved.
    - An explanation, why the div operator is used for integer divisions,
      was added to the FAQ.
    - The FAQ about garbage collection was improved.
    - Links to EBNF syntax descriptions and exceptions were added to the
      HTML version of the manual.
    - EBNF syntax descriptions in the manual were improved.
    - Interpreter and compiler were improved to support the actions
      CMD_ENVIRONMENT and CMD_GET_SEARCH_PATH.
    - The library shell.s7i was improved to define the functions
      getSearchPath and environment.
    - The function path(PROGRAM) was improved to return the accurate
      value under all circumstances.
    - Several preprocessor defines were moved from "common.h to the new
      include file "config.h".
    - In cmdlib.c the function toArraytype() was introduced and used in
      cmd_environment() and cmd_getSearchPath().
    - In cmd_rtl.c the functions add_stri_to_array() and
      complete_stri_array() were introduced and used in read_dir(),
      getSearchPath() and cmdEnvironment().
    - Parameter names in drw_win.c, drw_x11.c and drw_dos.c were changed
      to fit to the names used in graph.s7i.
    - Parameter names in clib_file.s7i, keybd.s7i, sockbase.s7i,
      socket.s7i, utf8.s7i, fil_rtl.c, gkb_rtl.c, kbd_rtl.c, soc_dos.c,
      soc_rtl.c and ut8_rtl.c were changed to fit to each other.
    - The function conv_from_os_stri() was added to striutl.c .
    - The function concat_path in str_rtl.c was improved to work
      correctly, when the relative path contains "..".
    - In several makefiles defines for SEARCH_PATH_DELIMITER and
      os_environ were added and defines for
      MAP_ABSOLUTE_PATH_TO_DRIVE_LETTERS were replaced with
      defines for OS_PATH_HAS_DRIVE_LETTERS.
    - A description of several C preprocessor macros used in "version.h"
      and "config.h" was added to the file "src/read_me.txt".
    - Parameter names were added to function definitions in various
      libraries.
    - Documentation comments were added or improved in the files
      "clib_file.s7i", "external_file.s7i", "socket.s7i", "fil_rtl.c" and
      "striutl.c".
    - The function determineEnvironDefines was added to "chkccomp.c".

    20120826:
    - A chapter, which explains the foreign function interface, was added
      to the manual.
    - Syntax descriptions, code examples and tables in the HTML version
      of the manual were improved.
    - Documentation comments were added to the file "striutl.c".
    - A description of several C preprocessor macros used in "version.h"
      was added to the file "src/read_me.txt".
@
text
@d9 1
a9 1
DISTVERSION=	05_20120909
@


1.45
log
@SVN rev 302631 on 2012-08-16 09:44:04Z by gahr

- Update to 05_20120806
  Changes:
  * The new library image.s7i was added. The contents of this library
    was extracted from the program "carddemo.sd7".
  * The new library make.s7i was added. The contents of this library
    was extracted from the program "make7.sd7".
  * The function 'str' and the 'parse' operator were added to the
    library bstring.s7i.
  * The function readDir was added to the library tar.s7i.
  * A documentation comment was improved in the library bigint.s7i.
  * The generation of bstring constants in the compiler (comp.sd7) was
    improved.
  * The function intStrHex was renamed to intStrPow2Base in the files
    "int_rtl.c", "int_rtl.h" and in the compiler. The new function is
    used to convert an integer to a string, when the number base is a
    power of two.
  * The function stri_export was renamed to stri_export_utf8 in the C
    source files.
  * The function cp_to_cstri was renamed to cp_to_cstri8 in the C
    source files.
  * Documentation comments were added and improved in the file
    "striutl.c".
  * The makefile mk_msvc.mak was changed to write a definition of
    LIMITED_CSTRI_LITERAL_LEN to "version.h".
  * Documentation comments were improved in the libraries idxarray.s7i,
    array.s7i, dir.s7i, external_file.s7i, osfiles.s7i, duration.s7i
    and time.s7i.
  * Parameter names were added to function definitions in the
    libraries array.s7i, bigfile.s7i, hash.s7i and idxarray.s7i.
  * The compiler was improved to generate better inline code for set
    membership (operator: in).
  * The functions 'cmdFileType' and 'cmdFileTypeSL' in "cmd_rtl.c" were
    improved to return FILE_ABSENT, when the file name is too long
    (stat() respectively lstat() return an error and errno has the
    value ENAMETOOLONG) or when the file name is an empty string.
  * The new libraries subrange.s7i, ref_list.s7i and reference.s7i were
    added. The contents of this libraries were extracted from the
    seed7_05.s7i library.
@
text
@d9 1
a9 1
DISTVERSION=	05_20120806
@


1.44
log
@- Update to 05_20120703
@
text
@d9 1
a9 1
DISTVERSION=	05_20120703
@


1.43
log
@- Update to 05_20120603
  Since I've missed a few releases the list of changes is quite bit.
  Please see the chlog.txt file in DOCSDIR.
@
text
@d9 1
a9 1
DISTVERSION=	05_20120603
@


1.42
log
@- Update to 05_20120304
  Changes:
   * The "ftpserv.sd7" example program was improved to support the
     commands RNFR and RNTO and to work correctly, when the listener
     cannot open a passive data port.
   * The font support was improved, such that caching of character
     pixmaps works.
   * Some characters in the standard bitmap fonts were added or
     improved.
   * The functions 'socSend' and 'socSendto' in "soc_rtl.c" were
     improved to work correctly under 64-bit systems.
   * The function 'fltSci' in "flt_rtl.c", was improved to avoid
     a C compiler warning about the change of a constant value.
   * The function 'redraw' in "drw_x11.c" was changed, such that it
     does not use a parameter of type 'XExposeEvent'.
   * The functions 'drwHeight', 'drwWidth', 'drwXPos' and 'drwYPos'
     in "drw_x11.c" were improved to raise RANGE_ERROR when the
     window does not exist.
   * The function 'handleExpose' was introduced in "gkb_x11.c", to
     handle the job of calling 'redraw'.
   * The type 'unsigned int' was replaced by 'sysizetype' in
     'findid.c', 'findid.h', 'identutl.c', 'identutl.h', 'literal.c',
     'numlit.c', 'scanner.c' and 'symbol.h'.
   * Some improvements were done in 'prg_comp.c', 'reflib.c',
     'analyze.c', 'exec.c', 'infile.c', 'info.c' and 'typlib.c' to
     reduce the number of warnings.
   * Support for the unused action "ENU_SIZE" was removed.
- Add LICENSE
@
text
@d9 1
a9 1
DISTVERSION=	05_20120304
@


1.41
log
@- Update to 05_20120219
- Fixes to the console library have been pushed upstreams
@
text
@d9 1
a9 1
DISTVERSION=	05_20120219
d18 2
@


1.40
log
@- Update to 05_20120205
@
text
@d9 1
a9 1
DISTVERSION=	05_20120205
@


1.39
log
@- Update to 05_20120115
- Install console library as well
@
text
@d9 1
a9 1
DISTVERSION=	05_20120115
@


1.38
log
@- Update to 05_20120101
@
text
@d9 1
a9 1
DISTVERSION=	05_20120101
d49 1
@


1.37
log
@- second attempt to respect CC and CFLAGS

Feature safe:	yes
@
text
@d9 1
a9 1
DISTVERSION=	05_20111111
@


1.36
log
@- Update to 05_20111111
- Respect CC and CFLAGS [1]

PR:		162542 [1]
Submitted by:	Jan Beich <jbeich@@tormail.net>
Feature safe:	yes
@
text
@d42 1
a42 1
	(cd ${WRKSRC} && ${GMAKE} depend)
@


1.35
log
@- Update to 05_20110904
@
text
@d9 1
a9 1
DISTVERSION=	05_20110904
@


1.34
log
@- Update to 05_20110403
@
text
@d9 1
a9 1
DISTVERSION=	05_20110403
d49 1
@


1.33
log
@- Update to 05_20110306
@
text
@d9 1
a9 1
DISTVERSION=	05_20110306
@


1.32
log
@- Update to 05_20110203
  Many changes since the last update, see doc/chlog.txt for the details.

Feature safe:	yes
@
text
@d9 1
a9 1
DISTVERSION=	05_20110203
@


1.31
log
@- Update to 05_20101219
@
text
@d9 1
a9 1
DISTVERSION=	05_20101219
@


1.30
log
@- Update to 05_20101107
  Changes:
  - The chapter explaining exception handling in the manual was improved.
  - The support for bitmap fonts was improved to use fontProperties as base type.
  - The '-' function, which computes the differance of two 'time' values (with a
    'duration' result) in "time.s7i", was improved.
  - The function cmdConfigValue in "cmd_rtl.c" was improved to support the config
    values C_COMPILER_VERSION and GET_CC_VERSION_INFO.
  - In the file "fil_rtl.c" the functions myLseek, myFseek and myFtell were
    renamed to os_lseek, os_fseek and os_ftell respectively.
  - The makefiles were changed to define os_fseek, os_ftell, C_COMPILER_VERSION
    and GET_CC_VERSION_INFO.
  - Documentation comments were added to the function alternate_utime in the file
    "tim_win.c".
@
text
@d9 1
a9 1
DISTVERSION=	05_20101107
d45 1
a45 1
	${INSTALL_PROGRAM} ${WRKSRC}/hi ${PREFIX}/bin
d48 3
a50 3
	${INSTALL_DATA} ${WRKSRC}/s7_comp.a ${PREFIX}/lib/${PORTNAME}
	${INSTALL_DATA} ${WRKSRC}/s7_data.a ${PREFIX}/lib/${PORTNAME}
	${INSTALL_DATA} ${WRKSRC}/seed7_05.a ${PREFIX}/lib/${PORTNAME}
@


1.29
log
@- Update to 05_20101010
  Changes:
  - The first steps towards support of bitmap fonts were done.
  - The standard bitmap font was defined for the sizes 10, 12, 14, 16, 18 and 24.
  - A new example program (testfont.sd7), which writes with the standard font
    in various sizes, was added.
  - The initialisation of the random number generator in the function
    uint_rand in "int_rtl.c" was improved.
  - The function timMycroSec was defined in "tim_unx.c" and "tim_win.c".
@
text
@d9 1
a9 1
DISTVERSION=	05_20101010
@


1.28
log
@- Update to 05_20100919
  Changes:
  - The chapter explaining string indexing in the manual was improved.
  - The compiler (comp.sd7) and the hi interpreter were improved to support the
    actions "ITF_CMP" and "ITF_HASHCODE".
  - The parameter names of the functions arc, chord and pieslice in the
    "draw.s7i" library were changed to startAngle and sweepAngle.
  - The compiler was improved such that compiled programs which use SIGALARM
    (the functions 'wait' and 'await' from the "time.s7i" library may use
    SIGALARM) can be terminated with ctrl-c followed by * and enter.
  - Parameter names were added to the prototypes in the file "drw_drv.h".
  - The function drwPFArcPieSlice in "drw_win.c" was implemented.
  - The functions drwFCircle and drwPFCircle in "drw_x11.c were improved.
@
text
@d9 1
a9 1
DISTVERSION=	05_20100919
@


1.27
log
@- Update to 05_20100905
  Changes:
  - The chapter explaining the type 'time' in the manual was improved.
  - The support for source level debugging in the compiler (comp.sd7) was
    improved. Now the option -g generates better #line directives and the 'main'
    function was arranged such that the current line shown by a debugger is
    correct when the program is started.
  - In the "seed7_05.s7i" library the function "rpos" was overloaded to do a
    reverse search for a character in a string starting from a given position.
  - The files "str_rtl.c", "strlib.c", "primitiv.c" and the compiler were
    improved to support the primitive action STR_RCHIPOS (which implements the
    new overloaded 'rpos' function).
@
text
@d9 1
a9 1
DISTVERSION=	05_20100905
@


1.26
log
@- Update to 05_20100801
@
text
@d9 1
a9 1
DISTVERSION=	05_20100801
@


1.25
log
@- Update to 05_20100704
@
text
@d9 1
a9 1
DISTVERSION=	05_20100704
@


1.24
log
@- Mark BROKEN on 7.X and older

Reported by:	pointyhat
Feature safe:	yes
@
text
@d9 1
a9 1
DISTVERSION=	05_20100620
@


1.23
log
@- Update to 05_20100620

Feature safe:	yes
@
text
@d27 6
d67 1
a67 1
.include <bsd.port.mk>
@


1.22
log
@- Update to 05_20100606
@
text
@d9 1
a9 1
DISTVERSION=	05_20100606
d11 1
a11 1
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${DISTNAME}.tgz
d21 1
a21 1
ONLY_FOR_ARCHS=	i386 amd64
@


1.21
log
@- Update to 05_20100516
@
text
@d9 1
a9 1
DISTVERSION=	05_20100516
@


1.20
log
@- Update to 05_20100221

Feature safe:	yes
@
text
@d9 1
a9 1
DISTVERSION=	05_20100221
@


1.19
log
@- Update to 05_20091220
@
text
@d9 1
a9 1
DISTVERSION=	05_20091220
@


1.18
log
@- Update to 05_20091115
- Mark only for i386 and amd64
@
text
@d9 1
a9 1
DISTVERSION=	05_20091115
@


1.17
log
@- Remove remaining SFP references (switch these ports to SF)

Approved by:	portmgr (pav)
@
text
@d9 1
a9 1
DISTVERSION=	05_20090816
d21 2
@


1.16
log
@- Update to 05_20090816
- Update MASTER_SITES to new SFP layout
@
text
@d11 1
a11 1
MASTER_SITES=	SFP/${PORTNAME}/${PORTNAME}/${DISTNAME}.tgz/
@


1.15
log
@- Switch SourceForge ports to the new File Release System: categories starting with H,I,J,K,L
@
text
@d9 1
a9 1
DISTVERSION=	05_20090705
d11 1
a11 1
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}_05_20090705.tgz
@


1.14
log
@- Update to 05_20090705
@
text
@d11 1
a11 1
MASTER_SITES=	SF
@


1.13
log
@- Update to 05_20090426
@
text
@d9 1
a9 1
DISTVERSION=	05_20090426
d21 1
a21 1
WRKSRC=	${WRKDIR}/${PORTNAME}/src
@


1.12
log
@- Update to 05_20090413
@
text
@d9 1
a9 1
DISTVERSION=	05_20090413
@


1.11
log
@- Update to 05_20090329
@
text
@d9 1
a9 1
DISTVERSION=	05_20090329
@


1.10
log
@- Update to 05_20090309
@
text
@d9 1
a9 1
DISTVERSION=	05_20090309
@


1.9
log
@- Update to 05_20081102
@
text
@d9 1
a9 1
DISTVERSION=	05_20081102
@


1.8
log
@- Update to 05_20081019
@
text
@d9 1
a9 1
DISTVERSION=	05_20081019
@


1.7
log
@- Update to 05_20081005
@
text
@d9 1
a9 1
DISTVERSION=	05_20081005
@


1.6
log
@- Update to 05_20080921
@
text
@d9 1
a9 1
DISTVERSION=	05_20080921
@


1.5
log
@- Update to 05_20080902
@
text
@d9 1
a9 1
DISTVERSION=	05_20080902
@


1.4
log
@- Update to 05_20080817
@
text
@d9 1
a9 1
DISTVERSION=	05_20080817
@


1.3
log
@- Update to 05_20080803
- Partially remove makefile's patch (committed upstream)
@
text
@d9 1
a9 1
DISTVERSION=	05_20080803
@


1.2
log
@- Update to 05_20080720
- Add compiler's libraries and fix their paths [1]
- Add test target [1]

Reported by:	Thomas Merter (author, via private email)
@
text
@d9 1
a9 1
DISTVERSION=	05_20080720
@


1.1
log
@- New port: seed7

  Seed7 is an extensible general purpose high-level programming language.
@
text
@d9 1
a9 1
DISTVERSION=	05_20080707
d26 3
a28 1
	${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
d30 2
d40 3
d54 5
@

