freebsd-ports/lang/seed7/Makefile
Pietro Cerutti e7716bd0d4 - Update to 05_20140105
Changes:

  * The library des.s7i with DES (Data Encryption Standard) cipher
    support has been added.
  * The library tls.s7i has been improved to support block ciphers
    and encoding with DES.
  * The functions blockSize and decode have been added to cipher.s7i
    and arc4.s7i.
  * The the functions str, rotLeft and rotRight and the operators
    radix, RADIX, ~ and ><:= have been added to bin32.s7i.
  * Support to write bin32 values has been added to bin32.s7i.
  * The new library unicode.s7i, with functions to convert between
    Unicode encodings, has been added.
  * The functions utf16beToStri, utf16leToStri, utf7ToStri and
    replaceUtf16SurrogatePairs have been improved and moved from
    charsets.s7i to unicode.s7i. The functions striToUtf8 and
    utf8ToStri have been moved from string.s7i to unicode.s7i. The
    functions striToUtf16be and striToUtf16le have been added to
    unicode.s7i.
  * The actions FLT_MINUS, INT_MINUS and BIG_MINUS have been renamed
    to FLT_NEGATE, INT_NEGATE and BIG_NEGATE respectively.
  * The library gethttps.s7i has been improved to accept links to
    HTTP.
  * The operator symbols ~ and ><:= have been added to syntax.s7i.
  * Checks for -, mdiv, << and >> have been added to chkbig.sd7.
  * The compiler (s7c) has been improved to do more optimizations for
    the actions BIG_DIV, BIG_LSHIFT, BIG_RSHIFT, BIG_MDIV, BIG_MULT,
    BIG_NEGATE and CHR_CLIT.
  * The function charLiteral has been added to the compiler.
  * The compiler has been improved to avoid the generation of long
    lines for bigInteger literals.
  * The function bigMinus has been renamed bigNegate and the function
    bigNegateTemp has been added to big_gmp.c and big_rtl.c.
  * A check for the keyword 'restrict' has been added to chkccomp.c.
  * The function chrCLitToBuffer has been added to chr_rtl.c.
  * Interpreter, compiler and runtime library have been improved to
    support the action INT_XOR_ASSIGN.
  * The functions utf8_char (literal.c), utf8_to_stri (striutl.c),
    utf8_bytes_missing (striutl.c), strUtf8ToStri (str_rtl.c) and
    ut8Getc (in ut8_rtl.c) have been improved to check for ranges
    of characters instead of bit patterns. This improves the
    performance of UTF-8 conversions by up to 6%.
  * The functions freeArgVector and genArgVector have been added to
    cmd_unx.c.
2014-01-08 16:48:25 +00:00

77 lines
2.1 KiB
Makefile

# Created by: gahr
# $FreeBSD$
PORTNAME= seed7
DISTVERSION= 05_20140105
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
OPTIONS_DEFINE= DOCS EXAMPLES
USE_XORG= x11
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}
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>
MAKEFILE= mk_freebsd.mk
post-patch:
${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g;' ${WRKSRC}/${MAKEFILE}
# ${REINPLACE_CMD} -e '/FLOATTYPE_DOUBLE/s|undef|define|' ${WRKSRC}/config.h
do-build:
cd ${WRKSRC} && ${MAKE} -f ${MAKEFILE} depend
cd ${WRKSRC} && ${MAKE} -f ${MAKEFILE} s7 s7c
do-install:
# install interpreter and compiler
${INSTALL_PROGRAM} ${WRKSRC}/../bin/s7 ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/../prg/s7c ${STAGEDIR}${PREFIX}/bin
# install seed7 library
${INSTALL} -d ${STAGEDIR}${SEED7_LIBRARY}
cd ${WRKSRC}/../lib && ${COPYTREE_SHARE} '*.s7i' ${STAGEDIR}${SEED7_LIBRARY}
# install static libraries
${INSTALL} -d ${STAGEDIR}${S7_LIB_DIR}
.for s7_lib in ${S7_LIBS}
${INSTALL_DATA} ${WRKSRC}/../bin/${s7_lib} ${STAGEDIR}${S7_LIB_DIR}
.endfor
# install PORTDOCS
.if ${PORT_OPTIONS:MDOCS}
${INSTALL} -d ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/../doc && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}
.endif
# install PORTEXAMPLES
.if ${PORT_OPTIONS:MEXAMPLES}
${INSTALL} -d ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/../prg && ${COPYTREE_SHARE} '*.dna *.sd7 *.dat *.s7i' ${STAGEDIR}${EXAMPLESDIR}
.endif
# insall man pages
${INSTALL_DATA} ${WRKSRC}/../doc/s7.1 ${STAGEDIR}${PREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/../doc/s7c.1 ${STAGEDIR}${PREFIX}/man/man1
regression-test: build
cd ${WRKSRC} && ${MAKE} -f ${MAKEFILE} test
.include <bsd.port.mk>