1c6576e3a5
Changes: * A wordfile for Ultraedit and a syntax definition file for Textpad has been added. Many thanks to Renato Lenzi for providing it. This files can be found also on his great italian page about Seed7. * A compilation problem with DJGPP in fil_rtl.c has been fixed (thanks to "Rugxulo" for pointing it out). * The keyboard read function getc(KEYBOARD) has been improved to accept all Unicode characters also under Linux/Unix/BSD. Up do now the function did only accept Latin-1 characters. * The keyboard read function getc(KEYBOARD) has been improved to accept usages of the mouse wheel also under Windows. * Checks for correct UTF-8 encoding of the program source have been added. Overlong UTF-8 encodings, UTF-16 surrogate characters and missing UTF-8 continuation bytes result in a compile time error. * The example program err.sd7, which checks compile time error messages, has been improved. * The FAQ explanations concerning Unicode and automatic casts have been improved. * Documentation comments have been added to gzip.s7i and make.s7i. * The example programs gkbd.sd7 and kbd.sd7 have been improved to write the character, if it is printable. * The example programs pairs.sd7, panic.sd7, tetg.sd7, sokoban.sd7, sudoku7.sd7, mandelbr.sd7 and wator.sd7 have been changed to use proportional Seed7 pixmap fonts. * Tests for the functions lower and upper with cyrillic letters have been added to chkstr.sd7. * The libraries console.s7i, pixmap_file.s7i, graph_file.s7i, file.s7i, editline.s7i, echo.s7i, null_file.s7i, external_file.s7i, strifile.s7i, stritext.s7i, tee.s7i, window.s7i, reverse.s7i, lower.s7i and upper.s7i, have been improved to work with proportional fonts. Proportional font support uses the functions moveLeft, erase, backSpace, cursorOn and cursorOff. * The vector font cronos16 has been improved to look more similar to the font cronos27. * The bitmap fonts stdFont10, stdFont12, stdFont14, stdFont16, stdFont18, stdFont20 and stdFont24 have been improved. * The vector fonts vecFont10 and vecFont18 have been adjusted to look like the corresponding bitmap fonts. * The fonts stdFont8, stdFont9 and cronos27 have been improved to use less spacing between the characters. * In graph_file.s7i the logic of a writeln after a setPosXY has been changed. Now the writeln moves one line downward relative to the position given with setPosXY. * A description of the subrange operator, which gets an array slice from a position with maximum length, has been added to the manual. * A table to map keysym values to Unicode and the function mapKeysymToUnicode, which does a binary search in this table, have been added to gkb_x11.c. * The function gkbGetc in gkb_x11.c has been improved to work without recursion, to use mapKeysymToUnicode and to recognize cursor keys in combination with ALT, NUMLOCK and SHIFT.
78 lines
2 KiB
Makefile
78 lines
2 KiB
Makefile
# Created by: gahr
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= seed7
|
|
DISTVERSION= 05_20130704
|
|
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>
|
|
|
|
.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
|
|
|
|
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 ${PORT_OPTIONS:MEXAMPLES}
|
|
${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.mk>
|