1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/lang/seed7/Makefile
Pietro Cerutti ffb32a13d1 - Update to 05_20130602
Changes:

  * The implementation of the type integer has been changed to use a
    64-bit value.
  * Documentation comments have been added to bigint.s7i, integer.s7i,
    string.s7i, arr_rtl.c, big_gmp.c, biglib.c, big_rtl.c, flt_rtl.c,
    intlib.c, int_rtl.c, set_rtl.c and str_rtl.c.
  * The new library bin32.s7i, which defines bit operations for 32-bit
    values, has been added.
  * The new library crc32.s7i, which supports the CRC-32 cyclic
    redundancy check, has been added.
  * The new library deflate.s7i, which supports the deflate compression
    algorithm, has been added.
  * The library binary.s7i has been renamed to bytedata.s7i. The
    functions get_asciiz, get_uint16_le, get_uint32_le, get_uint16_be
    and get_uint32_be have been renamed to getAsciiz, getUInt16Le,
    getUInt32Le, getUInt16Be and getUInt32Be respectively. Definitions
    of the functions int16AsTwoBytesLe, int32AsFourBytesLe,
    int16AsTwoBytesBe and int32AsFourBytesBe have been added.
  * The functions getBitLe, getBitsLe, getNonCompressedBlock,
    getLiteralOrLength, getDistance, decodeLength, decodeDistance,
    decodeFixedHuffmanCodes, getHuffmanValue, computeConversionTable,
    decodeDynamicHuffmanCodes, processCompressedBlock and inflate have
    been moved from gzip.s7i to the new library inflate.s7i.
  * The functions gzip, openGzipFile, close and write have been added
    to the library gzip.s7i.
  * The functions 'name' and 'path' have been added to the library
    progs.s7i.
  * The function openStrifile has been added to strifile.s7i.
  * The library tar.s7i and the example program tar7.sd7 have been
    improved to allow the creation of compressed archives.
  * The compiler has been improved to support the actions BIG_CONV,
    BIN_AND, BIN_OR, BIN_XOR, INT_AND, INT_OR, INT_XOR, INT_URSHIFT,
    INT_URSHIFT_ASSIGN, PRG_OWN_NAME and PRG_OWN_PATH.
  * Optional checks for integer shift operations have been added to
    the compiler.
  * The function bigFromInt64 and bigToInt64 in big_gmp.c have been
    improved.
  * Several functions in big_gmp.c have been improved to free temporary
    values with mpz_clear().
  * The function big_conv() has been added to biglib.c.
  * The functions drw_image and drwRtlImage have been improved.
  * The functions drwImage in drw_win.c and drw_x11.c have been
    improved.
  * The meaning of the actions PRG_NAME and PRG_PATH has changed. The
    new actions PRG_OWN_NAME and PRG_OWN_PATH are used as replacement.
  * The functions strRPos2, strRIPos2 and strRepl2 have been added to
    str_rtl.c. This functions use a modified Boyer–Moore string search
    algorithm.
  * Usages of the macro arraySize have been added to drwlib.c,
    drw_rtl.c, libpath.c and prg_comp.c.
  * The macro arrayMaxPos has been defined in common.h and used in
    arrlib.c and arr_rtl.c.
2013-06-03 13:36:39 +00:00

79 lines
2.0 KiB
Makefile

# Created by: gahr
# $FreeBSD$
PORTNAME= seed7
DISTVERSION= 05_20130602
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>