# HG changeset patch # User Aleksej Bobylev # Date 1525873579 -10800 # Node ID b1a1deb20f42da763d43ca10ae52440be12aaad0 # Parent 0a9b2a43d493e73cf0861c23cc2516dd749effe7 Up libical (3.0.1), libidn2 (2.0.4), libunistring (0.9.8), logrotate (3.11.0), mc (4.8.20), mercurial (4.5), nasm (2.13.03), newt (0.52.20), node (9.5.0), opencv (3.4.1), slitaz-tools-boxes (1028), slitaz-tools (1028), spacefm (1.0.6), tiff (4.0.9); add npapi-sdk, obex-data-server. diff -r 0a9b2a43d493 -r b1a1deb20f42 libical/receipt --- a/libical/receipt Sun May 06 04:24:54 2018 +0300 +++ b/libical/receipt Wed May 09 16:46:19 2018 +0300 @@ -1,42 +1,43 @@ # SliTaz package receipt v2. PACKAGE="libical" -VERSION="2.0.0" +VERSION="3.0.1" CATEGORY="system-tools" SHORT_DESC="iCalendar library implementation in C" MAINTAINER="erjo@slitaz.org" LICENSE="MPL LGPL2.1" WEB_SITE="https://github.com/libical" +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/libical.html" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://github.com/libical/libical/releases/download/v$VERSION/$TARBALL" -BUILD_DEPENDS="cmake perl db-dev gobject-introspection-dev" +BUILD_DEPENDS="cmake perl db-dev glib-dev gobject-introspection-dev libxml2-dev" SPLIT="libical-dev" -# Rules to configure and make the package. -compile_rules() -{ - # http://www.linuxfromscratch.org/blfs/view/stable/general/libical.html - mkdir build && - cd build && +compile_rules() { + mkdir build + cd build cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DSHARED_ONLY=yes \ .. && - make && make install || return 1 + make && + make install || return 1 - docdir="$install/usr/share/doc/$PACKAGE-$VERSION" - mkdir -p $docdir - cp -r $src/doc/UsingLibical.txt $docdir + cook_pick_docs $src/doc/UsingLibical.txt } -# Rules to gen a SliTaz package suitable for Tazpkg. -genpkg_rules() -{ +genpkg_rules() { case $PACKAGE in - libical) copy @std;; - *-dev) copy @dev;; + libical) + copy @std + DEPENDS="glib libdb" + ;; + *-dev) + copy @dev + DEPENDS="libical glib-dev" + ;; esac } diff -r 0a9b2a43d493 -r b1a1deb20f42 libidn2/receipt --- a/libidn2/receipt Sun May 06 04:24:54 2018 +0300 +++ b/libidn2/receipt Wed May 09 16:46:19 2018 +0300 @@ -1,21 +1,24 @@ # SliTaz package receipt v2. PACKAGE="libidn2" -VERSION="2.0.0" +VERSION="2.0.4" CATEGORY="system-tools" SHORT_DESC="Encode and decode internationalized domain names" MAINTAINER="al.bobylev@gmail.com" LICENSE="GPL3 LGPL2.1" WEB_SITE="https://www.gnu.org/software/libidn/" +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/libidn2.html" -TARBALL="$PACKAGE-$VERSION.tar.xz" -WGET_URL="https://alpha.gnu.org/gnu/libidn/$TARBALL" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WGET_URL="$GNU_MIRROR/libidn/$TARBALL" BUILD_DEPENDS="gtk-doc gettext" SPLIT="libidn2-dev" compile_rules() { - ./configure $CONFIGURE_ARGS && + ./configure \ + --disable-static \ + $CONFIGURE_ARGS && fix libtool && make && make install diff -r 0a9b2a43d493 -r b1a1deb20f42 libunique/receipt --- a/libunique/receipt Sun May 06 04:24:54 2018 +0300 +++ b/libunique/receipt Wed May 09 16:46:19 2018 +0300 @@ -33,20 +33,11 @@ case $PACKAGE in libunique) copy @std - DEPENDS="atk bzlib cairo fontconfig freetype gdk-pixbuf glib gtk+ \ - libffi libharfbuzz liblzma libpng16 libxml2 pango pcre \ - util-linux-blkid util-linux-mount util-linux-uuid xorg-libX11 \ - xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXrender xorg-libxcb \ - xorg-pixman zlib" + DEPENDS="glib gtk+ xorg-libX11" ;; *-dev) copy @dev - DEPENDS="libunique atk-dev bzip2-dev cairo-dev fontconfig-dev \ - freetype-dev gdk-pixbuf-dev glib-dev gtk+-dev harfbuzz-dev \ - libffi-dev libpng16-dev libxml2-dev pango-dev pcre-dev \ - util-linux-blkid-dev util-linux-mount-dev util-linux-uuid-dev \ - xorg-libX11-dev xorg-libXau-dev xorg-libXdmcp-dev xorg-libXext-dev \ - xorg-libXrender-dev xorg-libxcb-dev xorg-pixman-dev xz-dev zlib-dev" + DEPENDS="libunique gtk+-dev" ;; esac } diff -r 0a9b2a43d493 -r b1a1deb20f42 libunistring/receipt --- a/libunistring/receipt Sun May 06 04:24:54 2018 +0300 +++ b/libunistring/receipt Wed May 09 16:46:19 2018 +0300 @@ -1,12 +1,13 @@ # SliTaz package receipt v2. PACKAGE="libunistring" -VERSION="0.9.7" +VERSION="0.9.8" CATEGORY="libdevel" SHORT_DESC="Unicode string library" MAINTAINER="al.bobylev@gmail.com" LICENSE="GPL3 LGPL3 FDL" WEB_SITE="https://www.gnu.org/software/libunistring/" +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/libunistring.html" TARBALL="$PACKAGE-$VERSION.tar.xz" WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" @@ -14,7 +15,9 @@ SPLIT="libunistring-dev" compile_rules() { - ./configure $CONFIGURE_ARGS && + ./configure \ + --disable-static \ + $CONFIGURE_ARGS && fix libtool && make && make install diff -r 0a9b2a43d493 -r b1a1deb20f42 logrotate/receipt --- a/logrotate/receipt Sun May 06 04:24:54 2018 +0300 +++ b/logrotate/receipt Wed May 09 16:46:19 2018 +0300 @@ -1,49 +1,47 @@ -# SliTaz package receipt. +# SliTaz package receipt v2. PACKAGE="logrotate" -VERSION="3.8.2" +VERSION="3.11.0" CATEGORY="system-tools" -SHORT_DESC="Automatic rotation compression, removal of log files." +SHORT_DESC="Automatic rotation compression, removal of log files" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" -TARBALL="$PACKAGE-$VERSION.tar.gz" -WEB_SITE="https://fedorahosted.org/logrotate/" -WGET_URL="https://fedorahosted.org/releases/l/o/logrotate/$TARBALL" -CONFIG_FILE="/etc/logrotate.conf" +WEB_SITE="https://github.com/logrotate/logrotate" +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/logrotate.html" -DEPENDS="popt" +TARBALL="$PACKAGE-$VERSION.tar.xz" +WGET_URL="https://github.com/logrotate/logrotate/releases/download/$VERSION/$TARBALL" + BUILD_DEPENDS="popt-dev" -# Rules to configure and make the package. -compile_rules() -{ - make && make PREFIX=$DESTDIR MANDIR=/usr/share/man install +compile_rules() { + sed -i '/exit 5/s/^/echo uncompress failed -- skipping #/' test/test + + ./configure $CONFIGURE_ARGS && + make && + make install || return 1 + + install -Dm644 $stuff/logrotate.conf $install/etc/logrotate.conf + install -Dm644 $stuff/sys.log $install/etc/logrotate.d/sys.log } -# Rules to gen a SliTaz package suitable for Tazpkg. -genpkg_rules() -{ - mkdir -p $fs/usr $fs/etc - echo -e "#Logrotate Config file\n\ninclude /etc/logrotate.d" \ - > $fs/etc/logrotate.conf - cp -a $install/usr/sbin $fs/usr +genpkg_rules() { + copy @std + DEPENDS="popt" + CONFIG_FILE="/etc/logrotate.conf" } -post_install() -{ +post_install() { if [ -f "$1/var/spool/cron/crontabs/root" ]; then - echo "Runing post install command..." - echo -e "#Run log rotation\n25 6 * * * /usr/sbin/logrotate /etc/logrotate.conf " \ - >> "$1/var/spool/cron/crontabs/root" + cat >> "$1/var/spool/cron/crontabs/root" <&1", "xz > %s", ".xz"}, + { "lz4 -cd %s 2>&1", "lz4 > %s", ".lz4" }, + { "lzip -cd %s 2>&1", "lzip > %s", ".lz"}, +- { "lzma -cd %s 2>&1", "lzma > %s", ".lzma" }, ++ { "lzcat %s 2>&1", "lzma > %s", ".lzma" }, + { "bzip2 -cd %s 2>&1", "bzip2 > %s", ".bz2" }, + { "gzip -cd %s 2>&1", "gzip > %s", ".gz" }, + { "gzip -cd %s 2>&1", "gzip > %s", ".Z" } +--- a/misc/syntax/Syntax.in ++++ b/misc/syntax/Syntax.in +@@ -37,7 +37,7 @@ + file ..\*\\.lsm$ LSM\sFile + include lsm.syntax + +-file .\*(bash_completion|profile|\\.(sh|bash_login|bash_profile|bash_logout|bash_aliases|bash_exports|bash_history|bashrc|profile|zlogin|zlogout|zprofile|zshenv|zshrc))$ Shell\sScript ^#!\s\*/(.\*/|usr/bin/env\s)([a-z]?|ba|pdk)sh ++file .\*(bash_completion|profile|receipt|\\.(sh|bash_login|bash_profile|bash_logout|bash_aliases|bash_exports|bash_history|bashrc|profile|zlogin|zlogout|zprofile|zshenv|zshrc))$ Shell\sScript ^#!\s\*/(.\*/|usr/bin/env\s)([a-z]?|ba|pdk)sh + include sh.syntax + + file ..\*\\.((?i:pl|pm|psgi)|t)$ Perl\sProgram ^#!.\*([\s/]perl|@PERL@) +--- a/misc/ext.d/archive.sh ++++ b/misc/ext.d/archive.sh +@@ -30,7 +30,7 @@ + lz4 -dc "${MC_EXT_FILENAME}" 2>/dev/null + ;; + lzma) +- lzma -dc "${MC_EXT_FILENAME}" 2>/dev/null ++ lzcat "${MC_EXT_FILENAME}" 2>/dev/null + ;; + xz) + xz -dc "${MC_EXT_FILENAME}" 2>/dev/null diff -r 0a9b2a43d493 -r b1a1deb20f42 mc/stuff/patches/series --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mc/stuff/patches/series Wed May 09 16:46:19 2018 +0300 @@ -0,0 +1,1 @@ +mc-slitaz.patch diff -r 0a9b2a43d493 -r b1a1deb20f42 mercurial/receipt --- a/mercurial/receipt Sun May 06 04:24:54 2018 +0300 +++ b/mercurial/receipt Wed May 09 16:46:19 2018 +0300 @@ -1,7 +1,7 @@ # SliTaz package receipt v2. PACKAGE="mercurial" -VERSION="4.3.1" +VERSION="4.5" CATEGORY="development" SHORT_DESC="Revision tools system" MAINTAINER="pankso@slitaz.org" @@ -36,7 +36,7 @@ genpkg_rules() { copy @std - DEPENDS="python patch openssl cacerts" + DEPENDS="python patch openssl cacerts" CONFIG_FILES="/etc/mercurial/hgweb.config" PROVIDE="hg" } diff -r 0a9b2a43d493 -r b1a1deb20f42 nasm/receipt --- a/nasm/receipt Sun May 06 04:24:54 2018 +0300 +++ b/nasm/receipt Wed May 09 16:46:19 2018 +0300 @@ -1,16 +1,16 @@ # SliTaz package receipt v2. PACKAGE="nasm" -VERSION="2.12.02" +VERSION="2.13.03" CATEGORY="development" SHORT_DESC="The netwide assembler" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="BSD" WEB_SITE="http://www.nasm.us/" -HOST_ARCH="i486 arm x86_64" +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/nasm.html" TARBALL="$PACKAGE-$VERSION.tar.xz" -WGET_URL="${WEB_SITE}pub/nasm/releasebuilds/$VERSION/$TARBALL" +WGET_URL="http://www.nasm.us/pub/nasm/releasebuilds/$VERSION/$TARBALL" compile_rules() { ./configure $CONFIGURE_ARGS && @@ -19,6 +19,6 @@ } genpkg_rules() { - copy bin/ + copy @std TAGS="assembler" } diff -r 0a9b2a43d493 -r b1a1deb20f42 newt/receipt --- a/newt/receipt Sun May 06 04:24:54 2018 +0300 +++ b/newt/receipt Wed May 09 16:46:19 2018 +0300 @@ -1,17 +1,18 @@ # SliTaz package receipt v2. PACKAGE="newt" -VERSION="0.52.19" +VERSION="0.52.20" CATEGORY="libdevel" SHORT_DESC="Programming library for color text mode" MAINTAINER="erjo@slitaz.org" LICENSE="GPL2" -WEB_SITE="https://fedorahosted.org/newt/" +WEB_SITE="https://pagure.io/newt" +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/newt.html" TARBALL="$PACKAGE-$VERSION.tar.gz" -WGET_URL="https://fedorahosted.org/releases/n/e/$PACKAGE/$TARBALL" +WGET_URL="https://releases.pagure.org/newt/$TARBALL" -BUILD_DEPENDS="slang-dev popt-dev python-dev tcl-dev" +BUILD_DEPENDS="slang-dev popt-dev python-dev tcl-dev gpm-dev" SPLIT="newt-dev" compile_rules() { @@ -23,14 +24,16 @@ ./configure \ --with-gpm-support \ $CONFIGURE_ARGS && - make && make install + make && + make install } genpkg_rules() { case $PACKAGE in newt) copy @std *.mo - DEPENDS="popt python slang tcl gpm" + DEPENDS="popt python slang tcl" + SUGGESTED="gpm" ;; *-dev) copy @dev;; esac diff -r 0a9b2a43d493 -r b1a1deb20f42 node/receipt --- a/node/receipt Sun May 06 04:24:54 2018 +0300 +++ b/node/receipt Wed May 09 16:46:19 2018 +0300 @@ -1,30 +1,41 @@ -# SliTaz package receipt. +# SliTaz package receipt v2. PACKAGE="node" -VERSION="0.10.41" +VERSION="9.5.0" CATEGORY="network" -SHORT_DESC="Node.js is a platform for easily building network applications." +SHORT_DESC="Node.js - JavaScript runtime built on Chrome's V8 JavaScript engine" MAINTAINER="pankso@slitaz.org" LICENSE="MIT" -TARBALL="$PACKAGE-v$VERSION.tar.gz" -WEB_SITE="http://nodejs.org/" -WGET_URL="http://nodejs.org/dist/v$VERSION/$TARBALL" +WEB_SITE="https://nodejs.org/" +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/nodejs.html" -DEPENDS="python openssl" -BUILD_DEPENDS="python-dev openssl-dev" +TARBALL="$PACKAGE-v$VERSION.tar.xz" +WGET_URL="https://nodejs.org/dist/v$VERSION/$TARBALL" -# Rules to configure and make the package. -compile_rules() -{ - #patch -p0 < ${stuff}/SConstruct.patch || return 1 - ./configure --prefix=/usr && - make && make install +BUILD_DEPENDS="python-dev zlib-dev c-ares-dev openssl-dev icu-dev" +SPLIT="node-dev" + +compile_rules() { + # site script didn't used, define prefix here + ./configure \ + --prefix=/usr \ + --shared-cares \ + --shared-openssl \ + --shared-zlib \ + --with-intl=system-icu \ + && + make && + make install } -# Rules to gen a SliTaz package suitable for Tazpkg. -genpkg_rules() -{ - mkdir -p $fs/usr/lib - cp -a $install/usr/bin $fs/usr - cp -a $install/usr/lib/node* $fs/usr/lib +genpkg_rules() { + case $PACKAGE in + node) + copy @std + DEPENDS="c-ares icu libicu openssl python zlib" + ;; + *-dev) + copy @dev + ;; + esac } diff -r 0a9b2a43d493 -r b1a1deb20f42 node/stuff/SConstruct --- a/node/stuff/SConstruct Sun May 06 04:24:54 2018 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1636 +0,0 @@ -# Copyright 2012 the V8 project authors. All rights reserved. -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are -# met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following -# disclaimer in the documentation and/or other materials provided -# with the distribution. -# * Neither the name of Google Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -import platform -import re -import subprocess -import sys -import os -from os.path import join, dirname, abspath -from types import DictType, StringTypes -root_dir = dirname(File('SConstruct').rfile().abspath) -src_dir = join(root_dir, 'src') -sys.path.insert(0, join(root_dir, 'tools')) -import js2c, utils - -# ARM_TARGET_LIB is the path to the dynamic library to use on the target -# machine if cross-compiling to an arm machine. You will also need to set -# the additional cross-compiling environment variables to the cross compiler. -ARM_TARGET_LIB = os.environ.get('ARM_TARGET_LIB') -if ARM_TARGET_LIB: - ARM_LINK_FLAGS = ['-Wl,-rpath=' + ARM_TARGET_LIB + '/lib:' + - ARM_TARGET_LIB + '/usr/lib', - '-Wl,--dynamic-linker=' + ARM_TARGET_LIB + - '/lib/ld-linux.so.3'] -else: - ARM_LINK_FLAGS = [] - -GCC_EXTRA_CCFLAGS = [] -GCC_DTOA_EXTRA_CCFLAGS = [] - -LIBRARY_FLAGS = { - 'all': { - 'CPPPATH': [src_dir], - 'regexp:interpreted': { - 'CPPDEFINES': ['V8_INTERPRETED_REGEXP'] - }, - 'mode:debug': { - 'CPPDEFINES': ['V8_ENABLE_CHECKS', 'OBJECT_PRINT', 'VERIFY_HEAP'] - }, - 'objectprint:on': { - 'CPPDEFINES': ['OBJECT_PRINT'], - }, - 'debuggersupport:on': { - 'CPPDEFINES': ['ENABLE_DEBUGGER_SUPPORT'], - }, - 'inspector:on': { - 'CPPDEFINES': ['INSPECTOR'], - }, - 'fasttls:off': { - 'CPPDEFINES': ['V8_NO_FAST_TLS'], - }, - 'liveobjectlist:on': { - 'CPPDEFINES': ['ENABLE_DEBUGGER_SUPPORT', 'INSPECTOR', - 'LIVE_OBJECT_LIST', 'OBJECT_PRINT'], - } - }, - 'gcc': { - 'all': { - 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS', '-march=armv6'], - 'CXXFLAGS': ['-fno-rtti', '-fno-exceptions', '-march=armv6'], - }, - 'visibility:hidden': { - # Use visibility=default to disable this. - 'CXXFLAGS': ['-fvisibility=hidden'] - }, - 'strictaliasing:off': { - 'CCFLAGS': ['-fno-strict-aliasing'] - }, - 'mode:debug': { - 'CCFLAGS': ['-g', '-O0'], - 'CPPDEFINES': ['ENABLE_DISASSEMBLER', 'DEBUG'], - }, - 'mode:release': { - 'CCFLAGS': ['-O3', '-fomit-frame-pointer', '-fdata-sections', - '-ffunction-sections'], - }, - 'os:linux': { - 'CCFLAGS': ['-ansi'] + GCC_EXTRA_CCFLAGS, - 'library:shared': { - 'CPPDEFINES': ['V8_SHARED', 'BUILDING_V8_SHARED'], - 'LIBS': ['pthread'] - } - }, - 'os:macos': { - 'CCFLAGS': ['-ansi', '-mmacosx-version-min=10.4'], - 'library:shared': { - 'CPPDEFINES': ['V8_SHARED', 'BUILDING_V8_SHARED'], - } - }, - 'os:freebsd': { - 'CPPPATH' : [src_dir, '/usr/local/include'], - 'LIBPATH' : ['/usr/local/lib'], - 'CCFLAGS': ['-ansi'], - 'LIBS': ['execinfo'] - }, - 'os:openbsd': { - 'CPPPATH' : [src_dir, '/usr/local/include'], - 'LIBPATH' : ['/usr/local/lib'], - 'CCFLAGS': ['-ansi'], - }, - 'os:solaris': { - # On Solaris, to get isinf, INFINITY, fpclassify and other macros one - # needs to define __C99FEATURES__. - 'CPPDEFINES': ['__C99FEATURES__'], - 'CPPPATH' : [src_dir, '/usr/local/include'], - 'LIBPATH' : ['/usr/local/lib'], - 'CCFLAGS': ['-ansi'], - }, - 'os:netbsd': { - 'CPPPATH' : [src_dir, '/usr/pkg/include'], - 'LIBPATH' : ['/usr/pkg/lib'], - }, - 'os:win32': { - 'CCFLAGS': ['-DWIN32'], - 'CXXFLAGS': ['-DWIN32'], - }, - 'arch:ia32': { - 'CPPDEFINES': ['V8_TARGET_ARCH_IA32'], - 'CCFLAGS': ['-m32'], - 'LINKFLAGS': ['-m32'] - }, - 'arch:arm': { - 'CPPDEFINES': ['V8_TARGET_ARCH_ARM'], - 'unalignedaccesses:on' : { - 'CPPDEFINES' : ['CAN_USE_UNALIGNED_ACCESSES=1'] - }, - 'unalignedaccesses:off' : { - 'CPPDEFINES' : ['CAN_USE_UNALIGNED_ACCESSES=0'] - }, - 'armeabi:soft' : { - 'CPPDEFINES' : ['USE_EABI_HARDFLOAT=0'], - 'simulator:none': { - 'CCFLAGS': ['-mfloat-abi=soft'], - } - }, - 'armeabi:softfp' : { - 'CPPDEFINES' : ['USE_EABI_HARDFLOAT=0'], - 'vfp3:on': { - 'CPPDEFINES' : ['CAN_USE_VFP_INSTRUCTIONS'] - }, - 'simulator:none': { - 'CCFLAGS': ['-mfloat-abi=softfp'], - } - }, - 'armeabi:hard' : { - 'CPPDEFINES' : ['USE_EABI_HARDFLOAT=1'], - 'vfp3:on': { - 'CPPDEFINES' : ['CAN_USE_VFP_INSTRUCTIONS'] - }, - 'simulator:none': { - 'CCFLAGS': ['-mfloat-abi=hard'], - } - } - }, - 'simulator:arm': { - 'CCFLAGS': ['-m32'], - 'LINKFLAGS': ['-m32'], - }, - 'arch:mips': { - 'CPPDEFINES': ['V8_TARGET_ARCH_MIPS'], - 'mips_arch_variant:mips32r2': { - 'CPPDEFINES': ['_MIPS_ARCH_MIPS32R2'] - }, - 'mips_arch_variant:loongson': { - 'CPPDEFINES': ['_MIPS_ARCH_LOONGSON'] - }, - 'simulator:none': { - 'CCFLAGS': ['-EL'], - 'LINKFLAGS': ['-EL'], - 'mips_arch_variant:mips32r2': { - 'CCFLAGS': ['-mips32r2', '-Wa,-mips32r2'] - }, - 'mips_arch_variant:mips32r1': { - 'CCFLAGS': ['-mips32', '-Wa,-mips32'] - }, - 'mips_arch_variant:loongson': { - 'CCFLAGS': ['-march=mips3', '-Wa,-march=mips3'] - }, - 'library:static': { - 'LINKFLAGS': ['-static', '-static-libgcc'] - }, - 'mipsabi:softfloat': { - 'CCFLAGS': ['-msoft-float'], - 'LINKFLAGS': ['-msoft-float'] - }, - 'mipsabi:hardfloat': { - 'CCFLAGS': ['-mhard-float'], - 'LINKFLAGS': ['-mhard-float'] - } - } - }, - 'simulator:mips': { - 'CCFLAGS': ['-m32'], - 'LINKFLAGS': ['-m32'], - 'mipsabi:softfloat': { - 'CPPDEFINES': ['__mips_soft_float=1'], - 'fpu:on': { - 'CPPDEFINES' : ['CAN_USE_FPU_INSTRUCTIONS'] - } - }, - 'mipsabi:hardfloat': { - 'CPPDEFINES': ['__mips_hard_float=1', 'CAN_USE_FPU_INSTRUCTIONS'], - } - }, - 'arch:x64': { - 'CPPDEFINES': ['V8_TARGET_ARCH_X64'], - 'CCFLAGS': ['-m64'], - 'LINKFLAGS': ['-m64'], - }, - 'gdbjit:on': { - 'CPPDEFINES': ['ENABLE_GDB_JIT_INTERFACE'] - }, - 'compress_startup_data:bz2': { - 'CPPDEFINES': ['COMPRESS_STARTUP_DATA_BZ2'] - } - }, - 'msvc': { - 'all': { - 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], - 'CXXFLAGS': ['/GR-', '/Gy'], - 'CPPDEFINES': ['WIN32'], - 'LINKFLAGS': ['/INCREMENTAL:NO', '/NXCOMPAT', '/IGNORE:4221'], - 'CCPDBFLAGS': ['/Zi'] - }, - 'verbose:off': { - 'DIALECTFLAGS': ['/nologo'], - 'ARFLAGS': ['/NOLOGO'] - }, - 'arch:ia32': { - 'CPPDEFINES': ['V8_TARGET_ARCH_IA32', '_USE_32BIT_TIME_T'], - 'LINKFLAGS': ['/MACHINE:X86'], - 'ARFLAGS': ['/MACHINE:X86'] - }, - 'arch:x64': { - 'CPPDEFINES': ['V8_TARGET_ARCH_X64'], - 'LINKFLAGS': ['/MACHINE:X64'], - 'ARFLAGS': ['/MACHINE:X64'] - }, - 'mode:debug': { - 'CCFLAGS': ['/Od', '/Gm'], - 'CPPDEFINES': ['_DEBUG', 'ENABLE_DISASSEMBLER', 'DEBUG'], - 'LINKFLAGS': ['/DEBUG'], - 'msvcrt:static': { - 'CCFLAGS': ['/MTd'] - }, - 'msvcrt:shared': { - 'CCFLAGS': ['/MDd'] - } - }, - 'mode:release': { - 'CCFLAGS': ['/O2'], - 'LINKFLAGS': ['/OPT:REF', '/OPT:ICF'], - 'msvcrt:static': { - 'CCFLAGS': ['/MT'] - }, - 'msvcrt:shared': { - 'CCFLAGS': ['/MD'] - }, - 'msvcltcg:on': { - 'CCFLAGS': ['/GL'], - 'ARFLAGS': ['/LTCG'], - 'pgo:off': { - 'LINKFLAGS': ['/LTCG'], - }, - 'pgo:instrument': { - 'LINKFLAGS': ['/LTCG:PGI'] - }, - 'pgo:optimize': { - 'LINKFLAGS': ['/LTCG:PGO'] - } - } - } - } -} - - -V8_EXTRA_FLAGS = { - 'gcc': { - 'all': { - 'WARNINGFLAGS': ['-Wall', - '-Werror', - '-W', - '-Wno-unused-parameter', - '-Woverloaded-virtual', - '-Wnon-virtual-dtor'] - }, - 'os:win32': { - 'WARNINGFLAGS': ['-pedantic', - '-Wno-long-long', - '-Wno-pedantic-ms-format'], - 'library:shared': { - 'LIBS': ['winmm', 'ws2_32'] - } - }, - 'os:linux': { - 'WARNINGFLAGS': ['-pedantic'], - 'library:shared': { - 'soname:on': { - 'LINKFLAGS': ['-Wl,-soname,${SONAME}'] - } - } - }, - 'os:macos': { - 'WARNINGFLAGS': ['-pedantic'] - }, - 'arch:arm': { - # This is to silence warnings about ABI changes that some versions of the - # CodeSourcery G++ tool chain produce for each occurrence of varargs. - 'WARNINGFLAGS': ['-Wno-abi'] - }, - 'disassembler:on': { - 'CPPDEFINES': ['ENABLE_DISASSEMBLER'] - } - }, - 'msvc': { - 'all': { - 'WARNINGFLAGS': ['/W3', '/WX', '/wd4351', '/wd4355', '/wd4800'] - }, - 'library:shared': { - 'CPPDEFINES': ['BUILDING_V8_SHARED'], - 'LIBS': ['winmm', 'ws2_32'] - }, - 'arch:arm': { - 'CPPDEFINES': ['V8_TARGET_ARCH_ARM'], - # /wd4996 is to silence the warning about sscanf - # used by the arm simulator. - 'WARNINGFLAGS': ['/wd4996'] - }, - 'arch:mips': { - 'CPPDEFINES': ['V8_TARGET_ARCH_MIPS'], - 'mips_arch_variant:mips32r2': { - 'CPPDEFINES': ['_MIPS_ARCH_MIPS32R2'] - }, - }, - 'disassembler:on': { - 'CPPDEFINES': ['ENABLE_DISASSEMBLER'] - } - } -} - - -MKSNAPSHOT_EXTRA_FLAGS = { - 'gcc': { - 'os:linux': { - 'LIBS': ['pthread'], - }, - 'os:macos': { - 'LIBS': ['pthread'], - }, - 'os:freebsd': { - 'LIBS': ['execinfo', 'pthread'] - }, - 'os:solaris': { - 'LIBS': ['m', 'pthread', 'socket', 'nsl', 'rt'], - 'LINKFLAGS': ['-mt'] - }, - 'os:openbsd': { - 'LIBS': ['execinfo', 'pthread'] - }, - 'os:win32': { - 'LIBS': ['winmm', 'ws2_32'], - }, - 'os:netbsd': { - 'LIBS': ['execinfo', 'pthread'] - }, - 'compress_startup_data:bz2': { - 'os:linux': { - 'LIBS': ['bz2'] - } - }, - }, - 'msvc': { - 'all': { - 'CPPDEFINES': ['_HAS_EXCEPTIONS=0'], - 'LIBS': ['winmm', 'ws2_32'] - } - } -} - - -DTOA_EXTRA_FLAGS = { - 'gcc': { - 'all': { - 'WARNINGFLAGS': ['-Werror', '-Wno-uninitialized'], - 'CCFLAGS': GCC_DTOA_EXTRA_CCFLAGS - } - }, - 'msvc': { - 'all': { - 'WARNINGFLAGS': ['/WX', '/wd4018', '/wd4244'] - } - } -} - - -CCTEST_EXTRA_FLAGS = { - 'all': { - 'CPPPATH': [src_dir], - 'library:shared': { - 'CPPDEFINES': ['USING_V8_SHARED'] - }, - }, - 'gcc': { - 'all': { - 'LIBPATH': [abspath('.')], - 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], - 'CXXFLAGS': ['-fno-rtti', '-fno-exceptions'], - 'LINKFLAGS': ['$CCFLAGS'], - }, - 'os:linux': { - 'LIBS': ['pthread'], - 'CCFLAGS': ['-Wno-unused-but-set-variable'], - }, - 'os:macos': { - 'LIBS': ['pthread'], - }, - 'os:freebsd': { - 'LIBS': ['execinfo', 'pthread'] - }, - 'os:solaris': { - 'LIBS': ['m', 'pthread', 'socket', 'nsl', 'rt'], - 'LINKFLAGS': ['-mt'] - }, - 'os:openbsd': { - 'LIBS': ['execinfo', 'pthread'] - }, - 'os:win32': { - 'LIBS': ['winmm', 'ws2_32'] - }, - 'os:netbsd': { - 'LIBS': ['execinfo', 'pthread'] - }, - 'arch:arm': { - 'LINKFLAGS': ARM_LINK_FLAGS - }, - }, - 'msvc': { - 'all': { - 'CPPDEFINES': ['_HAS_EXCEPTIONS=0'], - 'LIBS': ['winmm', 'ws2_32'] - }, - 'arch:ia32': { - 'CPPDEFINES': ['V8_TARGET_ARCH_IA32'] - }, - 'arch:x64': { - 'CPPDEFINES': ['V8_TARGET_ARCH_X64'], - 'LINKFLAGS': ['/STACK:2097152'] - }, - } -} - - -SAMPLE_FLAGS = { - 'all': { - 'CPPPATH': [join(root_dir, 'include')], - 'library:shared': { - 'CPPDEFINES': ['USING_V8_SHARED'] - }, - }, - 'gcc': { - 'all': { - 'LIBPATH': ['.'], - 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], - 'CXXFLAGS': ['-fno-rtti', '-fno-exceptions'], - 'LINKFLAGS': ['$CCFLAGS'], - }, - 'os:linux': { - 'LIBS': ['pthread'], - }, - 'os:macos': { - 'LIBS': ['pthread'], - }, - 'os:freebsd': { - 'LIBPATH' : ['/usr/local/lib'], - 'LIBS': ['execinfo', 'pthread'] - }, - 'os:solaris': { - # On Solaris, to get isinf, INFINITY, fpclassify and other macros one - # needs to define __C99FEATURES__. - 'CPPDEFINES': ['__C99FEATURES__'], - 'LIBPATH' : ['/usr/local/lib'], - 'LIBS': ['m', 'pthread', 'socket', 'nsl', 'rt'], - 'LINKFLAGS': ['-mt'] - }, - 'os:openbsd': { - 'LIBPATH' : ['/usr/local/lib'], - 'LIBS': ['execinfo', 'pthread'] - }, - 'os:win32': { - 'LIBS': ['winmm', 'ws2_32'] - }, - 'os:netbsd': { - 'LIBPATH' : ['/usr/pkg/lib'], - 'LIBS': ['execinfo', 'pthread'] - }, - 'arch:arm': { - 'LINKFLAGS': ARM_LINK_FLAGS, - 'armeabi:soft' : { - 'CPPDEFINES' : ['USE_EABI_HARDFLOAT=0'], - 'simulator:none': { - 'CCFLAGS': ['-mfloat-abi=soft'], - } - }, - 'armeabi:softfp' : { - 'CPPDEFINES' : ['USE_EABI_HARDFLOAT=0'], - 'simulator:none': { - 'CCFLAGS': ['-mfloat-abi=softfp'], - } - }, - 'armeabi:hard' : { - 'CPPDEFINES' : ['USE_EABI_HARDFLOAT=1'], - 'vfp3:on': { - 'CPPDEFINES' : ['CAN_USE_VFP_INSTRUCTIONS'] - }, - 'simulator:none': { - 'CCFLAGS': ['-mfloat-abi=hard'], - } - } - }, - 'arch:ia32': { - 'CCFLAGS': ['-m32'], - 'LINKFLAGS': ['-m32'] - }, - 'arch:x64': { - 'CCFLAGS': ['-m64'], - 'LINKFLAGS': ['-m64'] - }, - 'arch:mips': { - 'CPPDEFINES': ['V8_TARGET_ARCH_MIPS'], - 'mips_arch_variant:mips32r2': { - 'CPPDEFINES': ['_MIPS_ARCH_MIPS32R2'] - }, - 'mips_arch_variant:loongson': { - 'CPPDEFINES': ['_MIPS_ARCH_LOONGSON'] - }, - 'simulator:none': { - 'CCFLAGS': ['-EL'], - 'LINKFLAGS': ['-EL'], - 'mips_arch_variant:mips32r2': { - 'CCFLAGS': ['-mips32r2', '-Wa,-mips32r2'] - }, - 'mips_arch_variant:mips32r1': { - 'CCFLAGS': ['-mips32', '-Wa,-mips32'] - }, - 'mips_arch_variant:loongson': { - 'CCFLAGS': ['-march=mips3', '-Wa,-march=mips3'] - }, - 'library:static': { - 'LINKFLAGS': ['-static', '-static-libgcc'] - }, - 'mipsabi:softfloat': { - 'CCFLAGS': ['-msoft-float'], - 'LINKFLAGS': ['-msoft-float'] - }, - 'mipsabi:hardfloat': { - 'CCFLAGS': ['-mhard-float'], - 'LINKFLAGS': ['-mhard-float'], - 'fpu:on': { - 'CPPDEFINES' : ['CAN_USE_FPU_INSTRUCTIONS'] - } - } - } - }, - 'simulator:arm': { - 'CCFLAGS': ['-m32'], - 'LINKFLAGS': ['-m32'] - }, - 'simulator:mips': { - 'CCFLAGS': ['-m32'], - 'LINKFLAGS': ['-m32'] - }, - 'mode:release': { - 'CCFLAGS': ['-O2'] - }, - 'mode:debug': { - 'CCFLAGS': ['-g', '-O0'], - 'CPPDEFINES': ['DEBUG'] - }, - 'compress_startup_data:bz2': { - 'CPPDEFINES': ['COMPRESS_STARTUP_DATA_BZ2'], - 'os:linux': { - 'LIBS': ['bz2'] - } - }, - }, - 'msvc': { - 'all': { - 'LIBS': ['winmm', 'ws2_32'] - }, - 'verbose:off': { - 'CCFLAGS': ['/nologo'], - 'LINKFLAGS': ['/NOLOGO'] - }, - 'verbose:on': { - 'LINKFLAGS': ['/VERBOSE'] - }, - 'prof:on': { - 'LINKFLAGS': ['/MAP'] - }, - 'mode:release': { - 'CCFLAGS': ['/O2'], - 'LINKFLAGS': ['/OPT:REF', '/OPT:ICF'], - 'msvcrt:static': { - 'CCFLAGS': ['/MT'] - }, - 'msvcrt:shared': { - 'CCFLAGS': ['/MD'] - }, - 'msvcltcg:on': { - 'CCFLAGS': ['/GL'], - 'pgo:off': { - 'LINKFLAGS': ['/LTCG'], - }, - }, - 'pgo:instrument': { - 'LINKFLAGS': ['/LTCG:PGI'] - }, - 'pgo:optimize': { - 'LINKFLAGS': ['/LTCG:PGO'] - } - }, - 'arch:ia32': { - 'CPPDEFINES': ['V8_TARGET_ARCH_IA32', 'WIN32'], - 'LINKFLAGS': ['/MACHINE:X86'] - }, - 'arch:x64': { - 'CPPDEFINES': ['V8_TARGET_ARCH_X64', 'WIN32'], - 'LINKFLAGS': ['/MACHINE:X64', '/STACK:2097152'] - }, - 'mode:debug': { - 'CCFLAGS': ['/Od'], - 'LINKFLAGS': ['/DEBUG'], - 'CPPDEFINES': ['DEBUG'], - 'msvcrt:static': { - 'CCFLAGS': ['/MTd'] - }, - 'msvcrt:shared': { - 'CCFLAGS': ['/MDd'] - } - } - } -} - - -PREPARSER_FLAGS = { - 'all': { - 'CPPPATH': [join(root_dir, 'include'), src_dir], - 'library:shared': { - 'CPPDEFINES': ['USING_V8_SHARED'] - }, - }, - 'gcc': { - 'all': { - 'LIBPATH': ['.'], - 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], - 'CXXFLAGS': ['-fno-rtti', '-fno-exceptions'], - 'LINKFLAGS': ['$CCFLAGS'], - }, - 'os:win32': { - 'LIBS': ['winmm', 'ws2_32'] - }, - 'arch:arm': { - 'LINKFLAGS': ARM_LINK_FLAGS, - 'armeabi:soft' : { - 'CPPDEFINES' : ['USE_EABI_HARDFLOAT=0'], - 'simulator:none': { - 'CCFLAGS': ['-mfloat-abi=soft'], - } - }, - 'armeabi:softfp' : { - 'simulator:none': { - 'CCFLAGS': ['-mfloat-abi=softfp'], - } - }, - 'armeabi:hard' : { - 'simulator:none': { - 'CCFLAGS': ['-mfloat-abi=hard'], - } - } - }, - 'arch:ia32': { - 'CCFLAGS': ['-m32'], - 'LINKFLAGS': ['-m32'] - }, - 'arch:x64': { - 'CCFLAGS': ['-m64'], - 'LINKFLAGS': ['-m64'] - }, - 'arch:mips': { - 'CPPDEFINES': ['V8_TARGET_ARCH_MIPS'], - 'mips_arch_variant:mips32r2': { - 'CPPDEFINES': ['_MIPS_ARCH_MIPS32R2'] - }, - 'mips_arch_variant:loongson': { - 'CPPDEFINES': ['_MIPS_ARCH_LOONGSON'] - }, - 'simulator:none': { - 'CCFLAGS': ['-EL'], - 'LINKFLAGS': ['-EL'], - 'mips_arch_variant:mips32r2': { - 'CCFLAGS': ['-mips32r2', '-Wa,-mips32r2'] - }, - 'mips_arch_variant:mips32r1': { - 'CCFLAGS': ['-mips32', '-Wa,-mips32'] - }, - 'mips_arch_variant:loongson': { - 'CCFLAGS': ['-march=mips3', '-Wa,-march=mips3'] - }, - 'library:static': { - 'LINKFLAGS': ['-static', '-static-libgcc'] - }, - 'mipsabi:softfloat': { - 'CCFLAGS': ['-msoft-float'], - 'LINKFLAGS': ['-msoft-float'] - }, - 'mipsabi:hardfloat': { - 'CCFLAGS': ['-mhard-float'], - 'LINKFLAGS': ['-mhard-float'] - } - } - }, - 'simulator:arm': { - 'CCFLAGS': ['-m32'], - 'LINKFLAGS': ['-m32'] - }, - 'simulator:mips': { - 'CCFLAGS': ['-m32'], - 'LINKFLAGS': ['-m32'], - 'mipsabi:softfloat': { - 'CPPDEFINES': ['__mips_soft_float=1'], - }, - 'mipsabi:hardfloat': { - 'CPPDEFINES': ['__mips_hard_float=1'], - } - }, - 'mode:release': { - 'CCFLAGS': ['-O2'] - }, - 'mode:debug': { - 'CCFLAGS': ['-g', '-O0'], - 'CPPDEFINES': ['DEBUG'] - }, - 'os:freebsd': { - 'LIBPATH' : ['/usr/local/lib'], - }, - }, - 'msvc': { - 'all': { - 'LIBS': ['winmm', 'ws2_32'] - }, - 'verbose:off': { - 'CCFLAGS': ['/nologo'], - 'LINKFLAGS': ['/NOLOGO'] - }, - 'verbose:on': { - 'LINKFLAGS': ['/VERBOSE'] - }, - 'prof:on': { - 'LINKFLAGS': ['/MAP'] - }, - 'mode:release': { - 'CCFLAGS': ['/O2'], - 'LINKFLAGS': ['/OPT:REF', '/OPT:ICF'], - 'msvcrt:static': { - 'CCFLAGS': ['/MT'] - }, - 'msvcrt:shared': { - 'CCFLAGS': ['/MD'] - }, - 'msvcltcg:on': { - 'CCFLAGS': ['/GL'], - 'pgo:off': { - 'LINKFLAGS': ['/LTCG'], - }, - }, - 'pgo:instrument': { - 'LINKFLAGS': ['/LTCG:PGI'] - }, - 'pgo:optimize': { - 'LINKFLAGS': ['/LTCG:PGO'] - } - }, - 'arch:ia32': { - 'CPPDEFINES': ['V8_TARGET_ARCH_IA32', 'WIN32'], - 'LINKFLAGS': ['/MACHINE:X86'] - }, - 'arch:x64': { - 'CPPDEFINES': ['V8_TARGET_ARCH_X64', 'WIN32'], - 'LINKFLAGS': ['/MACHINE:X64', '/STACK:2097152'] - }, - 'mode:debug': { - 'CCFLAGS': ['/Od'], - 'LINKFLAGS': ['/DEBUG'], - 'CPPDEFINES': ['DEBUG'], - 'msvcrt:static': { - 'CCFLAGS': ['/MTd'] - }, - 'msvcrt:shared': { - 'CCFLAGS': ['/MDd'] - } - } - } -} - - -D8_FLAGS = { - 'all': { - 'library:shared': { - 'CPPDEFINES': ['V8_SHARED'], - 'LIBS': ['v8'], - 'LIBPATH': ['.'] - }, - }, - 'gcc': { - 'all': { - 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], - 'CXXFLAGS': ['-fno-rtti', '-fno-exceptions'], - 'LINKFLAGS': ['$CCFLAGS'], - }, - 'console:readline': { - 'LIBS': ['readline'] - }, - 'os:linux': { - 'LIBS': ['pthread'], - }, - 'os:macos': { - 'LIBS': ['pthread'], - }, - 'os:freebsd': { - 'LIBS': ['pthread'], - }, - 'os:solaris': { - 'LIBS': ['m', 'pthread', 'socket', 'nsl', 'rt'], - 'LINKFLAGS': ['-mt'] - }, - 'os:openbsd': { - 'LIBS': ['pthread'], - }, - 'os:win32': { - 'LIBS': ['winmm', 'ws2_32'], - }, - 'os:netbsd': { - 'LIBS': ['pthread'], - }, - 'arch:arm': { - 'LINKFLAGS': ARM_LINK_FLAGS - }, - 'compress_startup_data:bz2': { - 'CPPDEFINES': ['COMPRESS_STARTUP_DATA_BZ2'], - 'os:linux': { - 'LIBS': ['bz2'] - } - } - }, - 'msvc': { - 'all': { - 'LIBS': ['winmm', 'ws2_32'] - }, - 'verbose:off': { - 'CCFLAGS': ['/nologo'], - 'LINKFLAGS': ['/NOLOGO'] - }, - 'verbose:on': { - 'LINKFLAGS': ['/VERBOSE'] - }, - 'prof:on': { - 'LINKFLAGS': ['/MAP'] - }, - 'mode:release': { - 'CCFLAGS': ['/O2'], - 'LINKFLAGS': ['/OPT:REF', '/OPT:ICF'], - 'msvcrt:static': { - 'CCFLAGS': ['/MT'] - }, - 'msvcrt:shared': { - 'CCFLAGS': ['/MD'] - }, - 'msvcltcg:on': { - 'CCFLAGS': ['/GL'], - 'pgo:off': { - 'LINKFLAGS': ['/LTCG'], - }, - }, - 'pgo:instrument': { - 'LINKFLAGS': ['/LTCG:PGI'] - }, - 'pgo:optimize': { - 'LINKFLAGS': ['/LTCG:PGO'] - } - }, - 'arch:ia32': { - 'CPPDEFINES': ['V8_TARGET_ARCH_IA32', 'WIN32'], - 'LINKFLAGS': ['/MACHINE:X86'] - }, - 'arch:x64': { - 'CPPDEFINES': ['V8_TARGET_ARCH_X64', 'WIN32'], - 'LINKFLAGS': ['/MACHINE:X64', '/STACK:2097152'] - }, - 'mode:debug': { - 'CCFLAGS': ['/Od'], - 'LINKFLAGS': ['/DEBUG'], - 'CPPDEFINES': ['DEBUG'], - 'msvcrt:static': { - 'CCFLAGS': ['/MTd'] - }, - 'msvcrt:shared': { - 'CCFLAGS': ['/MDd'] - } - } - } -} - - -SUFFIXES = { - 'release': '', - 'debug': '_g' -} - - -def Abort(message): - print message - sys.exit(1) - - -def GuessOS(env): - return utils.GuessOS() - - -def GuessArch(env): - return utils.GuessArchitecture() - - -def GuessToolchain(env): - tools = env['TOOLS'] - if 'gcc' in tools: - return 'gcc' - elif 'msvc' in tools: - return 'msvc' - else: - return None - - -def GuessVisibility(env): - os = env['os'] - toolchain = env['toolchain']; - if (os == 'win32' or os == 'cygwin') and toolchain == 'gcc': - # MinGW / Cygwin can't do it. - return 'default' - elif os == 'solaris': - return 'default' - else: - return 'hidden' - - -def GuessStrictAliasing(env): - # There seems to be a problem with gcc 4.5.x. - # See http://code.google.com/p/v8/issues/detail?id=884 - # It can be worked around by disabling strict aliasing. - toolchain = env['toolchain']; - if toolchain == 'gcc': - env = Environment(tools=['gcc']) - # The gcc version should be available in env['CCVERSION'], - # but when scons detects msvc this value is not set. - version = subprocess.Popen([env['CC'], '-dumpversion'], - stdout=subprocess.PIPE).communicate()[0] - if version.find('4.5') == 0: - return 'off' - return 'default' - - -PLATFORM_OPTIONS = { - 'arch': { - 'values': ['arm', 'ia32', 'x64', 'mips'], - 'guess': GuessArch, - 'help': 'the architecture to build for' - }, - 'os': { - 'values': ['freebsd', 'linux', 'macos', 'win32', 'openbsd', 'solaris', 'cygwin', 'netbsd'], - 'guess': GuessOS, - 'help': 'the os to build for' - }, - 'toolchain': { - 'values': ['gcc', 'msvc'], - 'guess': GuessToolchain, - 'help': 'the toolchain to use' - } -} - -SIMPLE_OPTIONS = { - 'regexp': { - 'values': ['native', 'interpreted'], - 'default': 'native', - 'help': 'Whether to use native or interpreted regexp implementation' - }, - 'snapshot': { - 'values': ['on', 'off', 'nobuild'], - 'default': 'off', - 'help': 'build using snapshots for faster start-up' - }, - 'prof': { - 'values': ['on', 'off'], - 'default': 'off', - 'help': 'enable profiling of build target' - }, - 'gdbjit': { - 'values': ['on', 'off'], - 'default': 'off', - 'help': 'enable GDB JIT interface' - }, - 'library': { - 'values': ['static', 'shared'], - 'default': 'static', - 'help': 'the type of library to produce' - }, - 'objectprint': { - 'values': ['on', 'off'], - 'default': 'off', - 'help': 'enable object printing' - }, - 'profilingsupport': { - 'values': ['on', 'off'], - 'default': 'on', - 'help': 'enable profiling of JavaScript code' - }, - 'debuggersupport': { - 'values': ['on', 'off'], - 'default': 'on', - 'help': 'enable debugging of JavaScript code' - }, - 'inspector': { - 'values': ['on', 'off'], - 'default': 'off', - 'help': 'enable inspector features' - }, - 'liveobjectlist': { - 'values': ['on', 'off'], - 'default': 'off', - 'help': 'enable live object list features in the debugger' - }, - 'soname': { - 'values': ['on', 'off'], - 'default': 'off', - 'help': 'turn on setting soname for Linux shared library' - }, - 'msvcrt': { - 'values': ['static', 'shared'], - 'default': 'static', - 'help': 'the type of Microsoft Visual C++ runtime library to use' - }, - 'msvcltcg': { - 'values': ['on', 'off'], - 'default': 'on', - 'help': 'use Microsoft Visual C++ link-time code generation' - }, - 'simulator': { - 'values': ['arm', 'mips', 'none'], - 'default': 'none', - 'help': 'build with simulator' - }, - 'unalignedaccesses': { - 'values': ['default', 'on', 'off'], - 'default': 'default', - 'help': 'set whether the ARM target supports unaligned accesses' - }, - 'disassembler': { - 'values': ['on', 'off'], - 'default': 'off', - 'help': 'enable the disassembler to inspect generated code' - }, - 'fasttls': { - 'values': ['on', 'off'], - 'default': 'on', - 'help': 'enable fast thread local storage support ' - '(if available on the current architecture/platform)' - }, - 'sourcesignatures': { - 'values': ['MD5', 'timestamp'], - 'default': 'MD5', - 'help': 'set how the build system detects file changes' - }, - 'console': { - 'values': ['dumb', 'readline'], - 'default': 'dumb', - 'help': 'the console to use for the d8 shell' - }, - 'verbose': { - 'values': ['on', 'off'], - 'default': 'off', - 'help': 'more output from compiler and linker' - }, - 'visibility': { - 'values': ['default', 'hidden'], - 'guess': GuessVisibility, - 'help': 'shared library symbol visibility' - }, - 'strictaliasing': { - 'values': ['default', 'off'], - 'guess': GuessStrictAliasing, - 'help': 'assume strict aliasing while optimizing' - }, - 'pgo': { - 'values': ['off', 'instrument', 'optimize'], - 'default': 'off', - 'help': 'select profile guided optimization variant', - }, - 'armeabi': { - 'values': ['hard', 'softfp', 'soft'], - 'default': 'softfp', - 'help': 'generate calling conventiont according to selected ARM EABI variant' - }, - 'mipsabi': { - 'values': ['hardfloat', 'softfloat', 'none'], - 'default': 'hardfloat', - 'help': 'generate calling conventiont according to selected mips ABI' - }, - 'mips_arch_variant': { - 'values': ['mips32r2', 'mips32r1', 'loongson'], - 'default': 'mips32r2', - 'help': 'mips variant' - }, - 'compress_startup_data': { - 'values': ['off', 'bz2'], - 'default': 'off', - 'help': 'compress startup data (snapshot) [Linux only]' - }, - 'vfp3': { - 'values': ['on', 'off'], - 'default': 'on', - 'help': 'use vfp3 instructions when building the snapshot [Arm only]' - }, - 'fpu': { - 'values': ['on', 'off'], - 'default': 'on', - 'help': 'use fpu instructions when building the snapshot [MIPS only]' - }, - 'I_know_I_should_build_with_GYP': { - 'values': ['yes', 'no'], - 'default': 'no', - 'help': 'grace period: temporarily override SCons deprecation' - } - -} - -ALL_OPTIONS = dict(PLATFORM_OPTIONS, **SIMPLE_OPTIONS) - - -def AddOptions(options, result): - guess_env = Environment(options=result) - for (name, option) in options.iteritems(): - if 'guess' in option: - # Option has a guess function - guess = option.get('guess') - default = guess(guess_env) - else: - # Option has a fixed default - default = option.get('default') - help = '%s (%s)' % (option.get('help'), ", ".join(option['values'])) - result.Add(name, help, default) - - -def GetOptions(): - result = Options() - result.Add('mode', 'compilation mode (debug, release)', 'release') - result.Add('sample', 'build sample (shell, process, lineprocessor)', '') - result.Add('cache', 'directory to use for scons build cache', '') - result.Add('env', 'override environment settings (NAME0:value0,NAME1:value1,...)', '') - result.Add('importenv', 'import environment settings (NAME0,NAME1,...)', '') - AddOptions(PLATFORM_OPTIONS, result) - AddOptions(SIMPLE_OPTIONS, result) - return result - - -def GetTools(opts): - env = Environment(options=opts) - os = env['os'] - toolchain = env['toolchain'] - if os == 'win32' and toolchain == 'gcc': - return ['mingw'] - elif os == 'win32' and toolchain == 'msvc': - return ['msvc', 'mslink', 'mslib', 'msvs'] - else: - return ['default'] - - -def GetVersionComponents(): - MAJOR_VERSION_PATTERN = re.compile(r"#define\s+MAJOR_VERSION\s+(.*)") - MINOR_VERSION_PATTERN = re.compile(r"#define\s+MINOR_VERSION\s+(.*)") - BUILD_NUMBER_PATTERN = re.compile(r"#define\s+BUILD_NUMBER\s+(.*)") - PATCH_LEVEL_PATTERN = re.compile(r"#define\s+PATCH_LEVEL\s+(.*)") - - patterns = [MAJOR_VERSION_PATTERN, - MINOR_VERSION_PATTERN, - BUILD_NUMBER_PATTERN, - PATCH_LEVEL_PATTERN] - - source = open(join(root_dir, 'src', 'version.cc')).read() - version_components = [] - for pattern in patterns: - match = pattern.search(source) - if match: - version_components.append(match.group(1).strip()) - else: - version_components.append('0') - - return version_components - - -def GetVersion(): - version_components = GetVersionComponents() - - if version_components[len(version_components) - 1] == '0': - version_components.pop() - return '.'.join(version_components) - - -def GetSpecificSONAME(): - SONAME_PATTERN = re.compile(r"#define\s+SONAME\s+\"(.*)\"") - - source = open(join(root_dir, 'src', 'version.cc')).read() - match = SONAME_PATTERN.search(source) - - if match: - return match.group(1).strip() - else: - return '' - - -def SplitList(str): - return [ s for s in str.split(",") if len(s) > 0 ] - - -def IsLegal(env, option, values): - str = env[option] - for s in SplitList(str): - if not s in values: - Abort("Illegal value for option %s '%s'." % (option, s)) - return False - return True - - -def WarnAboutDeprecation(): - print """ - ##################################################################### - # # - # LAST WARNING: Building V8 with SCons is deprecated. # - # # - # This only works because you have overridden the kill switch. # - # # - # MIGRATE TO THE GYP-BASED BUILD NOW! # - # # - # Instructions: http://code.google.com/p/v8/wiki/BuildingWithGYP. # - # # - ##################################################################### - """ - - -def VerifyOptions(env): - if env['I_know_I_should_build_with_GYP'] != 'yes': - Abort("Building V8 with SCons is no longer supported. Please use GYP " - "instead; you can find instructions are at " - "http://code.google.com/p/v8/wiki/BuildingWithGYP.\n\n" - "Quitting.\n\n" - "For a limited grace period, you can specify " - "\"I_know_I_should_build_with_GYP=yes\" to override.") - else: - WarnAboutDeprecation() - import atexit - atexit.register(WarnAboutDeprecation) - - if not IsLegal(env, 'mode', ['debug', 'release']): - return False - if not IsLegal(env, 'sample', ["shell", "process", "lineprocessor"]): - return False - if not IsLegal(env, 'regexp', ["native", "interpreted"]): - return False - if env['os'] == 'win32' and env['library'] == 'shared' and env['prof'] == 'on': - Abort("Profiling on windows only supported for static library.") - if env['gdbjit'] == 'on' and ((env['os'] != 'linux' and env['os'] != 'macos') or (env['arch'] != 'ia32' and env['arch'] != 'x64' and env['arch'] != 'arm')): - Abort("GDBJIT interface is supported only for Intel-compatible (ia32 or x64) Linux/OSX target.") - if env['os'] == 'win32' and env['soname'] == 'on': - Abort("Shared Object soname not applicable for Windows.") - if env['soname'] == 'on' and env['library'] == 'static': - Abort("Shared Object soname not applicable for static library.") - if env['os'] != 'win32' and env['pgo'] != 'off': - Abort("Profile guided optimization only supported on Windows.") - if env['cache'] and not os.path.isdir(env['cache']): - Abort("The specified cache directory does not exist.") - if not (env['arch'] == 'arm' or env['simulator'] == 'arm') and ('unalignedaccesses' in ARGUMENTS): - print env['arch'] - print env['simulator'] - Abort("Option unalignedaccesses only supported for the ARM architecture.") - if env['os'] != 'linux' and env['compress_startup_data'] != 'off': - Abort("Startup data compression is only available on Linux") - for (name, option) in ALL_OPTIONS.iteritems(): - if (not name in env): - message = ("A value for option %s must be specified (%s)." % - (name, ", ".join(option['values']))) - Abort(message) - if not env[name] in option['values']: - message = ("Unknown %s value '%s'. Possible values are (%s)." % - (name, env[name], ", ".join(option['values']))) - Abort(message) - - -class BuildContext(object): - - def __init__(self, options, env_overrides, samples): - self.library_targets = [] - self.mksnapshot_targets = [] - self.cctest_targets = [] - self.sample_targets = [] - self.d8_targets = [] - self.options = options - self.env_overrides = env_overrides - self.samples = samples - self.preparser_targets = [] - self.use_snapshot = (options['snapshot'] != 'off') - self.build_snapshot = (options['snapshot'] == 'on') - self.flags = None - - def AddRelevantFlags(self, initial, flags): - result = initial.copy() - toolchain = self.options['toolchain'] - if toolchain in flags: - self.AppendFlags(result, flags[toolchain].get('all')) - for option in sorted(self.options.keys()): - value = self.options[option] - self.AppendFlags(result, flags[toolchain].get(option + ':' + value)) - self.AppendFlags(result, flags.get('all')) - return result - - def AddRelevantSubFlags(self, options, flags): - self.AppendFlags(options, flags.get('all')) - for option in sorted(self.options.keys()): - value = self.options[option] - self.AppendFlags(options, flags.get(option + ':' + value)) - - def GetRelevantSources(self, source): - result = [] - result += source.get('all', []) - for (name, value) in self.options.iteritems(): - source_value = source.get(name + ':' + value, []) - if type(source_value) == dict: - result += self.GetRelevantSources(source_value) - else: - result += source_value - return sorted(result) - - def AppendFlags(self, options, added): - if not added: - return - for (key, value) in added.iteritems(): - if key.find(':') != -1: - self.AddRelevantSubFlags(options, { key: value }) - else: - if not key in options: - options[key] = value - else: - prefix = options[key] - if isinstance(prefix, StringTypes): prefix = prefix.split() - options[key] = prefix + value - - def ConfigureObject(self, env, input, **kw): - if (kw.has_key('CPPPATH') and env.has_key('CPPPATH')): - kw['CPPPATH'] += env['CPPPATH'] - if self.options['library'] == 'static': - return env.StaticObject(input, **kw) - else: - return env.SharedObject(input, **kw) - - def ApplyEnvOverrides(self, env): - if not self.env_overrides: - return - if type(env['ENV']) == DictType: - env['ENV'].update(**self.env_overrides) - else: - env['ENV'] = self.env_overrides - - -def PostprocessOptions(options, os): - # Adjust architecture if the simulator option has been set - if (options['simulator'] != 'none') and (options['arch'] != options['simulator']): - if 'arch' in ARGUMENTS: - # Print a warning if arch has explicitly been set - print "Warning: forcing architecture to match simulator (%s)" % options['simulator'] - options['arch'] = options['simulator'] - if (options['prof'] != 'off') and (options['profilingsupport'] == 'off'): - # Print a warning if profiling is enabled without profiling support - print "Warning: forcing profilingsupport on when prof is on" - options['profilingsupport'] = 'on' - if os == 'win32' and options['pgo'] != 'off' and options['msvcltcg'] == 'off': - if 'msvcltcg' in ARGUMENTS: - print "Warning: forcing msvcltcg on as it is required for pgo (%s)" % options['pgo'] - options['msvcltcg'] = 'on' - if (options['mipsabi'] != 'none') and (options['arch'] != 'mips') and (options['simulator'] != 'mips'): - options['mipsabi'] = 'none' - if options['liveobjectlist'] == 'on': - if (options['debuggersupport'] != 'on') or (options['mode'] == 'release'): - # Print a warning that liveobjectlist will implicitly enable the debugger - print "Warning: forcing debuggersupport on for liveobjectlist" - options['debuggersupport'] = 'on' - options['inspector'] = 'on' - options['objectprint'] = 'on' - - -def ParseEnvOverrides(arg, imports): - # The environment overrides are in the format NAME0:value0,NAME1:value1,... - # The environment imports are in the format NAME0,NAME1,... - overrides = {} - for var in imports.split(','): - if var in os.environ: - overrides[var] = os.environ[var] - for override in arg.split(','): - pos = override.find(':') - if pos == -1: - continue - overrides[override[:pos].strip()] = override[pos+1:].strip() - return overrides - - -def BuildSpecific(env, mode, env_overrides, tools): - options = {'mode': mode} - for option in ALL_OPTIONS: - options[option] = env[option] - PostprocessOptions(options, env['os']) - - context = BuildContext(options, env_overrides, samples=SplitList(env['sample'])) - - # Remove variables which can't be imported from the user's external - # environment into a construction environment. - user_environ = os.environ.copy() - try: - del user_environ['ENV'] - except KeyError: - pass - - library_flags = context.AddRelevantFlags(user_environ, LIBRARY_FLAGS) - v8_flags = context.AddRelevantFlags(library_flags, V8_EXTRA_FLAGS) - mksnapshot_flags = context.AddRelevantFlags(library_flags, MKSNAPSHOT_EXTRA_FLAGS) - dtoa_flags = context.AddRelevantFlags(library_flags, DTOA_EXTRA_FLAGS) - cctest_flags = context.AddRelevantFlags(v8_flags, CCTEST_EXTRA_FLAGS) - sample_flags = context.AddRelevantFlags(user_environ, SAMPLE_FLAGS) - preparser_flags = context.AddRelevantFlags(user_environ, PREPARSER_FLAGS) - d8_flags = context.AddRelevantFlags(library_flags, D8_FLAGS) - - context.flags = { - 'v8': v8_flags, - 'mksnapshot': mksnapshot_flags, - 'dtoa': dtoa_flags, - 'cctest': cctest_flags, - 'sample': sample_flags, - 'd8': d8_flags, - 'preparser': preparser_flags - } - - # Generate library base name. - target_id = mode - suffix = SUFFIXES[target_id] - library_name = 'v8' + suffix - preparser_library_name = 'v8preparser' + suffix - version = GetVersion() - if context.options['soname'] == 'on': - # When building shared object with SONAME version the library name. - library_name += '-' + version - - # Generate library SONAME if required by the build. - if context.options['soname'] == 'on': - soname = GetSpecificSONAME() - if soname == '': - soname = 'lib' + library_name + '.so' - env['SONAME'] = soname - - # Build the object files by invoking SCons recursively. - d8_env = Environment(tools=tools) - d8_env.Replace(**context.flags['d8']) - (object_files, shell_files, mksnapshot, preparser_files) = env.SConscript( - join('src', 'SConscript'), - build_dir=join('obj', target_id), - exports='context tools d8_env', - duplicate=False - ) - - context.mksnapshot_targets.append(mksnapshot) - - # Link the object files into a library. - env.Replace(**context.flags['v8']) - - context.ApplyEnvOverrides(env) - if context.options['library'] == 'static': - library = env.StaticLibrary(library_name, object_files) - preparser_library = env.StaticLibrary(preparser_library_name, - preparser_files) - else: - # There seems to be a glitch in the way scons decides where to put - # PDB files when compiling using MSVC so we specify it manually. - # This should not affect any other platforms. - pdb_name = library_name + '.dll.pdb' - library = env.SharedLibrary(library_name, object_files, PDB=pdb_name) - preparser_pdb_name = preparser_library_name + '.dll.pdb'; - preparser_soname = 'lib' + preparser_library_name + '.so'; - preparser_library = env.SharedLibrary(preparser_library_name, - preparser_files, - PDB=preparser_pdb_name, - SONAME=preparser_soname) - context.library_targets.append(library) - context.library_targets.append(preparser_library) - - context.ApplyEnvOverrides(d8_env) - if context.options['library'] == 'static': - shell = d8_env.Program('d8' + suffix, object_files + shell_files) - else: - shell = d8_env.Program('d8' + suffix, shell_files) - d8_env.Depends(shell, library) - context.d8_targets.append(shell) - - for sample in context.samples: - sample_env = Environment(tools=tools) - sample_env.Replace(**context.flags['sample']) - sample_env.Prepend(LIBS=[library_name]) - context.ApplyEnvOverrides(sample_env) - sample_object = sample_env.SConscript( - join('samples', 'SConscript'), - build_dir=join('obj', 'sample', sample, target_id), - exports='sample context tools', - duplicate=False - ) - sample_name = sample + suffix - sample_program = sample_env.Program(sample_name, sample_object) - sample_env.Depends(sample_program, library) - context.sample_targets.append(sample_program) - - cctest_env = env.Copy() - cctest_env.Prepend(LIBS=[library_name]) - cctest_program = cctest_env.SConscript( - join('test', 'cctest', 'SConscript'), - build_dir=join('obj', 'test', target_id), - exports='context object_files tools', - duplicate=False - ) - context.cctest_targets.append(cctest_program) - - preparser_env = env.Copy() - preparser_env.Replace(**context.flags['preparser']) - preparser_env.Prepend(LIBS=[preparser_library_name]) - context.ApplyEnvOverrides(preparser_env) - preparser_object = preparser_env.SConscript( - join('preparser', 'SConscript'), - build_dir=join('obj', 'preparser', target_id), - exports='context tools', - duplicate=False - ) - preparser_name = join('obj', 'preparser', target_id, 'preparser') - preparser_program = preparser_env.Program(preparser_name, preparser_object); - preparser_env.Depends(preparser_program, preparser_library) - context.preparser_targets.append(preparser_program) - - return context - - -def Build(): - opts = GetOptions() - tools = GetTools(opts) - env = Environment(options=opts, tools=tools) - - Help(opts.GenerateHelpText(env)) - VerifyOptions(env) - env_overrides = ParseEnvOverrides(env['env'], env['importenv']) - - SourceSignatures(env['sourcesignatures']) - - libraries = [] - mksnapshots = [] - cctests = [] - samples = [] - preparsers = [] - d8s = [] - modes = SplitList(env['mode']) - for mode in modes: - context = BuildSpecific(env.Copy(), mode, env_overrides, tools) - libraries += context.library_targets - mksnapshots += context.mksnapshot_targets - cctests += context.cctest_targets - samples += context.sample_targets - preparsers += context.preparser_targets - d8s += context.d8_targets - - env.Alias('library', libraries) - env.Alias('mksnapshot', mksnapshots) - env.Alias('cctests', cctests) - env.Alias('sample', samples) - env.Alias('d8', d8s) - env.Alias('preparser', preparsers) - - if env['sample']: - env.Default('sample') - else: - env.Default('library') - - if env['cache']: - CacheDir(env['cache']) - -# We disable deprecation warnings because we need to be able to use -# env.Copy without getting warnings for compatibility with older -# version of scons. Also, there's a bug in some revisions that -# doesn't allow this flag to be set, so we swallow any exceptions. -# Lovely. -try: - SetOption('warn', 'no-deprecated') -except: - pass - -Build() diff -r 0a9b2a43d493 -r b1a1deb20f42 node/stuff/SConstruct.patch --- a/node/stuff/SConstruct.patch Sun May 06 04:24:54 2018 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ ---- deps/v8/SConstruct -+++ deps/v8/SConstruct -@@ -80,8 +80,8 @@ - }, - 'gcc': { - 'all': { -- 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], -- 'CXXFLAGS': ['-fno-rtti', '-fno-exceptions'], -+ 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS', '-march=armv6'], -+ 'CXXFLAGS': ['-fno-rtti', '-fno-exceptions', '-march=armv6'], - }, - 'visibility:hidden': { - # Use visibility=default to disable this. diff -r 0a9b2a43d493 -r b1a1deb20f42 npapi-sdk/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/npapi-sdk/receipt Wed May 09 16:46:19 2018 +0300 @@ -0,0 +1,22 @@ +# SliTaz package receipt v2. + +PACKAGE="npapi-sdk" +VERSION="0.27.2" +CATEGORY="development" +SHORT_DESC="Netscape Plugin Application Programming Interface headers by Mozilla" +MAINTAINER="al.bobylev@gmail.com" +LICENSE="MPL" +WEB_SITE="https://bitbucket.org/mgorny/npapi-sdk/" +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/npapi-sdk.html" + +TARBALL="$PACKAGE-$VERSION.tar.bz2" +WGET_URL="https://bitbucket.org/mgorny/npapi-sdk/downloads/$TARBALL" + +compile_rules() { + ./configure && + make install +} + +genpkg_rules() { + copy @dev +} diff -r 0a9b2a43d493 -r b1a1deb20f42 npth/receipt --- a/npth/receipt Sun May 06 04:24:54 2018 +0300 +++ b/npth/receipt Wed May 09 16:46:19 2018 +0300 @@ -7,6 +7,7 @@ MAINTAINER="al.bobylev@gmail.com" LICENSE="GPL2 LGPL3" WEB_SITE="https://www.gnupg.org/related_software/npth/" +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/npth.html" TARBALL="$PACKAGE-$VERSION.tar.bz2" WGET_URL="https://www.gnupg.org/ftp/gcrypt/npth/$TARBALL" diff -r 0a9b2a43d493 -r b1a1deb20f42 nspr/receipt --- a/nspr/receipt Sun May 06 04:24:54 2018 +0300 +++ b/nspr/receipt Wed May 09 16:46:19 2018 +0300 @@ -30,7 +30,8 @@ --with-pthreads \ $ARCH_ARGS \ $CONFIGURE_ARGS && - make && make install + make && + make install } genpkg_rules() { diff -r 0a9b2a43d493 -r b1a1deb20f42 obex-data-server/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/obex-data-server/receipt Wed May 09 16:46:19 2018 +0300 @@ -0,0 +1,27 @@ +# SliTaz package receipt v2. + +PACKAGE="obex-data-server" +VERSION="0.4.6" +CATEGORY="system-tools" +SHORT_DESC="D-Bus service providing OBEX functionality" +MAINTAINER="al.bobylev@gmail.com" +LICENSE="GPL2" +WEB_SITE="http://tadas.dailyda.com/" +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/obex-data-server.html" + +TARBALL="$PACKAGE-$VERSION.tar.gz" +WGET_URL="http://tadas.dailyda.com/software/$TARBALL" + +BUILD_DEPENDS="glib-dev dbus-glib-dev gdk-pixbuf-dev libusb-compat-dev \ +libusb-dev bluez-dev openobex-dev" + +compile_rules() { + ./configure $CONFIGURE_ARGS && + make && + make install +} + +genpkg_rules() { + copy @std + DEPENDS="bluez dbus-glib gdk-pixbuf glib libusb-compat openobex" +} diff -r 0a9b2a43d493 -r b1a1deb20f42 obex-data-server/stuff/patches/obex-data-server-0.4.6-build-fixes-1.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/obex-data-server/stuff/patches/obex-data-server-0.4.6-build-fixes-1.patch Wed May 09 16:46:19 2018 +0300 @@ -0,0 +1,56 @@ +Submitted By: Armin K. +Date: 2012-07-06 +Initial Package Version: 0.4.6 +Upstream Status: Unknown +Origin: Self +Description: Some build fixes. + +--- obex-data-server.orig/src/ods-obex.c 2011-02-10 10:14:42.000000000 +0100 ++++ obex-data-server/src/ods-obex.c 2012-07-06 20:10:09.208712553 +0200 +@@ -412,7 +412,7 @@ + goto err; + } + +- interfaces_num = OBEX_FindInterfaces(obex_context->obex_handle, &obex_intf); ++ interfaces_num = OBEX_EnumerateInterfaces(obex_context->obex_handle); + if (intf_num >= interfaces_num) { + g_set_error (error, ODS_ERROR, ODS_ERROR_FAILED, "Invalid interface number"); + goto err; +@@ -1928,7 +1928,7 @@ + gchar *uname; + gsize uname_len; + +- if (action != OBEX_ACTION_SETPERM) ++ if (action != 0x03) + g_assert (src && dst); + + object = OBEX_ObjectNew (obex_context->obex_handle, OBEX_CMD_ACTION); +@@ -1974,7 +1974,7 @@ + OBEX_HDR_ACTION_ID, hv, 1, 0); + + /* permissions header */ +- if (action == OBEX_ACTION_SETPERM) { ++ if (action == 0x03) { + hv.bq4 = perms; + ret = OBEX_ObjectAddHeader (obex_context->obex_handle, object, + OBEX_HDR_PERMISSIONS, hv, 4, 0); +--- obex-data-server.orig/src/ods-session.c 2011-02-10 09:57:31.000000000 +0100 ++++ obex-data-server/src/ods-session.c 2012-07-06 20:10:09.208712553 +0200 +@@ -1761,7 +1761,7 @@ + DBusGMethodInvocation *context) + { + return ods_session_remote_action (session, remote_source, +- remote_destination, OBEX_ACTION_COPY, ++ remote_destination, 0x00, + context); + } + +@@ -1772,7 +1772,7 @@ + DBusGMethodInvocation *context) + { + return ods_session_remote_action (session, remote_source, +- remote_destination, OBEX_ACTION_MOVE, ++ remote_destination, 0x01, + context); + } + diff -r 0a9b2a43d493 -r b1a1deb20f42 obex-data-server/stuff/patches/series --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/obex-data-server/stuff/patches/series Wed May 09 16:46:19 2018 +0300 @@ -0,0 +1,2 @@ +# from BLFS +obex-data-server-0.4.6-build-fixes-1.patch diff -r 0a9b2a43d493 -r b1a1deb20f42 opencv/receipt --- a/opencv/receipt Sun May 06 04:24:54 2018 +0300 +++ b/opencv/receipt Wed May 09 16:46:19 2018 +0300 @@ -1,36 +1,77 @@ # SliTaz package receipt v2. PACKAGE="opencv" -VERSION="3.3.0" +VERSION="3.4.1" CATEGORY="development" SHORT_DESC="Open source computer vision library" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="BSD" WEB_SITE="http://opencv.org/" +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/opencv.html" TARBALL="$PACKAGE-$VERSION.tar.gz" -WGET_URL="https://github.com/Itseez/opencv/archive/$VERSION.tar.gz" +WGET_URL="https://github.com/opencv/opencv/archive/$VERSION.tar.gz" +WGET_URL2="https://raw.githubusercontent.com/opencv/opencv_3rdparty/\ +dfe3162c237af211e98b8960018b564bc209261d/ippicv/\ +ippicv_2017u3_lnx_intel64_general_20170822.tgz" +WGET_URL3="https://github.com/opencv/opencv_contrib/archive/$VERSION/\ +opencv_contrib-$VERSION.tar.gz" -BUILD_DEPENDS="cmake gtk+-dev ffmpeg-dev libjpeg-turbo-dev tiff-dev \ -libpng16-dev" +BUILD_DEPENDS="cmake python-dev python-numpy zlib-dev \ +libjpeg-turbo-dev tiff-dev libpng16-dev libwebp-dev jasper-dev openexr-dev \ +ilmbase-dev gtk+-dev glib-dev gstreamer1-dev gst1-plugins-base-dev \ +libgphoto2-dev shared-mime-info xine-lib-dev protobuf-dev " # lapack-dev SPLIT="opencv opencv-dev" compile_rules() { - fix math + ipp_file=$SRC/$(basename $WGET_URL2) + if [ ! -e "$ipp_file" ]; then + wget -O $ipp_file $WGET_URL2 + fi + ipp_hash=$(md5sum $ipp_file | cut -d" " -f1) + ipp_dir=.cache/ippicv + mkdir -p $ipp_dir + cp $ipp_file $ipp_dir/$ipp_hash-$(basename $ipp_file) + + if [ ! -e "$SRC/$(basename $WGET_URL3)" ]; then + wget -P $SRC $WGET_URL3 + fi + tar -xf $SRC/$(basename $WGET_URL3) + + mkdir build cd build + cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DENABLE_CXX11=ON \ + -DBUILD_PERF_TESTS=OFF \ + -DWITH_XINE=ON \ + -DBUILD_TESTS=OFF \ + -DENABLE_PRECOMPILED_HEADERS=OFF \ + -DCMAKE_SKIP_RPATH=ON \ + -DBUILD_WITH_DEBUG_INFO=OFF \ + -Wno-dev \ + \ .. && make && - make DESTDIR=$DESTDIR install + make install || return 1 + + case $ARCH in + x86_64) a='intel64';; + *) a='ia32';; + esac + cp -v 3rdparty/ippicv/ippicv_lnx/lib/$a/libippicv.a $install/usr/lib } genpkg_rules() { case $PACKAGE in opencv) copy @std - DEPENDS="gtk+ ffmpeg jpeg tiff libpng16" + DEPENDS="cairo gdk-pixbuf glib gst1-plugins-base gstreamer1 gtk+ \ + jasper libgphoto2 libjpeg-turbo libpng16 libwebp openexr tiff \ + xine-lib zlib" ;; opencv-dev) copy @dev diff -r 0a9b2a43d493 -r b1a1deb20f42 slitaz-tools-boxes/receipt --- a/slitaz-tools-boxes/receipt Sun May 06 04:24:54 2018 +0300 +++ b/slitaz-tools-boxes/receipt Wed May 09 16:46:19 2018 +0300 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="slitaz-tools-boxes" -VERSION="1024" +VERSION="1028" CATEGORY="system-tools" SHORT_DESC="All SliTaz GTK/Yad boxes to command line tools." MAINTAINER="pankso@slitaz.org" diff -r 0a9b2a43d493 -r b1a1deb20f42 slitaz-tools/receipt --- a/slitaz-tools/receipt Sun May 06 04:24:54 2018 +0300 +++ b/slitaz-tools/receipt Wed May 09 16:46:19 2018 +0300 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="slitaz-tools" -VERSION="1024" +VERSION="1028" CATEGORY="system-tools" SHORT_DESC="SliTaz tools provide installer and utils usable on terminal." MAINTAINER="pankso@slitaz.org" diff -r 0a9b2a43d493 -r b1a1deb20f42 spacefm-gtk2/receipt --- a/spacefm-gtk2/receipt Sun May 06 04:24:54 2018 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -# SliTaz package receipt v2. - -PACKAGE="spacefm-gtk2" -VERSION="1.0.5" -CATEGORY="system-tools" -SHORT_DESC="Multi-panel tabbed file and desktop manager" -MAINTAINER="al.bobylev@gmail.com" -LICENSE="GPL3" -WEB_SITE="http://ignorantguru.github.io/spacefm/" - -TARBALL="spacefm-$VERSION.tar.gz" -WGET_URL="https://github.com/IgnorantGuru/spacefm/archive/$VERSION.tar.gz" - -BUILD_DEPENDS="intltool gtk+-dev eudev-dev" - -compile_rules() { - ./configure \ - --disable-video-thumbnails \ - --with-preferable-sudo=/usr/bin/subox \ - $CONFIGURE_ARGS && - fix libtool && - make && - make MKDIRPROG='mkdir -p' install || return 1 - - rm -rf $install/usr/share/mime/ -} - -genpkg_rules() { - copy @std - DEPENDS="cairo eudev gdk-pixbuf glib gtk+ pango xorg-libX11 bash" -} diff -r 0a9b2a43d493 -r b1a1deb20f42 spacefm/receipt --- a/spacefm/receipt Sun May 06 04:24:54 2018 +0300 +++ b/spacefm/receipt Wed May 09 16:46:19 2018 +0300 @@ -1,44 +1,65 @@ # SliTaz package receipt v2. PACKAGE="spacefm" -VERSION="0.9.4" -CATEGORY="system-tools" -SHORT_DESC="Light, fast and easy to use file manager" -MAINTAINER="pankso@slitaz.org" +VERSION="1.0.6" +CATEGORY="meta" +SHORT_DESC="Multi-panel tabbed file and desktop manager" +MAINTAINER="al.bobylev@gmail.com" LICENSE="GPL3" WEB_SITE="http://ignorantguru.github.io/spacefm/" -TARBALL="$PACKAGE-$VERSION.tar.xz" -WGET_URL="$SF_MIRROR/$PACKAGE/files/$TARBALL" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WGET_URL="https://github.com/IgnorantGuru/spacefm/archive/$VERSION.tar.gz" -BUILD_DEPENDS="gtk+-dev dbus-glib-dev dbus-dev startup-notification-dev \ -xorg-libxcb-dev xorg-xcb-util-dev expat-dev gdk-pixbuf-dev intltool eudev-dev \ -coreutils-file-special" +BUILD_DEPENDS="intltool gtk+-dev gtk+3-dev startup-notification-dev eudev-dev \ +ffmpegthumbnailer-dev" +SPLIT="spacefm spacefm-gtk2:gtk2 spacefm-gtk3:gtk3" compile_rules() { - patch -Np1 -i $stuff/prefdlg.ui.diff - patch -Np1 -i $stuff/settings.h.diff - patch -Np1 -i $stuff/vfs-file-task.c.diff + case $SET in + '') rm -r $src; mkdir $install; return 0;; + gtk2) SET_ARGS='--with-gtk2';; + gtk3) SET_ARGS='--with-gtk3';; + esac ./configure \ - --with-preferable-sudo="/usr/bin/subox" \ - --disable-pixmaps \ + --with-preferable-sudo=/usr/bin/subox \ + $SET_ARGS \ $CONFIGURE_ARGS && fix libtool && make && - make install || return 1 + make MKDIRPROG='mkdir -p' install || return 1 - install -Dm644 $stuff/spacefm.conf $install/etc/spacefm/spacefm.conf - install -Dm644 $stuff/xdg/autostart/spacefm.desktop $install/etc/autostart/spacefm.desktop - install -Dm644 $stuff/xdg/spacefm/session $install/etc/xdg/spacefm/session + install -Dm644 $stuff/spacefm-desktop-pref.desktop \ + $install/usr/share/applications/spacefm-desktop-pref.desktop + install -Dm644 $stuff/xdg/autostart/spacefm.desktop \ + $install/etc/xdg/autostart/spacefm.desktop + install -Dm644 $stuff/xdg/spacefm/session \ + $install/etc/xdg/spacefm/session - # /bin/bash --> /bin/sh - sed -i 's|/bin/bash|/bin/sh|g' $install/usr/bin/spacefm-auth + # useless file, it adds nothing useful to Freedesktop's shared-mime-info + rm -r $install/usr/share/mime/ } genpkg_rules() { - copy @std @ico - DEPENDS="glibc-base glib util-linux-uuid xorg-libxcb xorg-xcb-util expat \ - gtk+ startup-notification dbus dbus-glib gdk-pixbuf eudev bash udevil" - TAGS="file-manager" + case $PACKAGE in + spacefm) + CAT="meta|empty meta-package" + DEPENDS="spacefm-gtk2" + ;; + spacefm-gtk2) + copy @std @ico + CAT="system-tools|with GTK+2 interface" + DEPENDS="cairo eudev ffmpegthumbnailer gdk-pixbuf glib gtk+ pango \ + startup-notification xorg-libX11 bash" + TAGS="file-manager" + ;; + spacefm-gtk3) + copy @std @ico + CAT="system-tools|with GTK+3 interface" + DEPENDS="cairo eudev ffmpegthumbnailer gdk-pixbuf glib gtk+3 pango \ + startup-notification xorg-libX11 bash" + TAGS="file-manager" + ;; + esac } diff -r 0a9b2a43d493 -r b1a1deb20f42 spacefm/stuff/applications/spacefm-desktop-pref.desktop --- a/spacefm/stuff/applications/spacefm-desktop-pref.desktop Sun May 06 04:24:54 2018 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ -[Desktop Entry] -Type=Application -Name=SpaceFM Desktop configuration -Name[fr]=Configuration du bureau SpaceFM -Name[pt]=Configuração do Desktop SpaceFM -Name[pt_BR]=Configuração do Desktop SpaceFM -Name[ru]=Параметры рабочего стола SpaceFM -Exec=spacefm --desktop-pref -Icon=preferences-desktop-wallpaper -Categories=Settings;DesktopSettings; diff -r 0a9b2a43d493 -r b1a1deb20f42 spacefm/stuff/autostart/spacefm.desktop --- a/spacefm/stuff/autostart/spacefm.desktop Sun May 06 04:24:54 2018 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -[Desktop Entry] -Type=Application -Name=SpaceFM Desktop Manager -Name[fr]=Gestionnaire de bureau SpaceFM -Name[pt]=Gerenciador de Desktop SpaceFM -Name[pt_BR]=Gerenciador de Desktop SpaceFM -Name[ru]=Менеджер рабочего стола SpaceFM -Exec=spacefm --desktop -NotShowIn=XFCE;Razor; diff -r 0a9b2a43d493 -r b1a1deb20f42 spacefm/stuff/prefdlg.ui.diff --- a/spacefm/stuff/prefdlg.ui.diff Sun May 06 04:24:54 2018 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ ---- spacefm-0.8.4.orig/data/ui/prefdlg.ui -+++ spacefm-0.8.4/data/ui/prefdlg.ui -@@ -153,6 +153,9 @@ - /usr/bin/ktsuss - - -+ /usr/bin/tazbox -+ -+ - /usr/bin/gksu - - diff -r 0a9b2a43d493 -r b1a1deb20f42 spacefm/stuff/settings.h.diff --- a/spacefm/stuff/settings.h.diff Sun May 06 04:24:54 2018 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ ---- spacefm-0.8.4.orig/src/settings.h -+++ spacefm-0.8.4/src/settings.h -@@ -274,6 +274,7 @@ - static const char* gsu_commands[] = // order and contents must match prefdlg.ui - { - "/usr/bin/ktsuss", -+ "/usr/bin/tazbox", - "/usr/bin/gksu", - "/usr/bin/gksudo", - "/usr/bin/gnomesu", diff -r 0a9b2a43d493 -r b1a1deb20f42 spacefm/stuff/spacefm-desktop-pref.desktop --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/spacefm/stuff/spacefm-desktop-pref.desktop Wed May 09 16:46:19 2018 +0300 @@ -0,0 +1,10 @@ +[Desktop Entry] +Type=Application +Name=SpaceFM Desktop configuration +Name[fr]=Configuration du bureau SpaceFM +Name[pt]=Configuração do Desktop SpaceFM +Name[pt_BR]=Configuração do Desktop SpaceFM +Name[ru]=Параметры рабочего стола SpaceFM +Exec=spacefm --desktop-pref +Icon=preferences-desktop-wallpaper +Categories=Settings;DesktopSettings; diff -r 0a9b2a43d493 -r b1a1deb20f42 spacefm/stuff/spacefm.conf --- a/spacefm/stuff/spacefm.conf Sun May 06 04:24:54 2018 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -# spacefm.conf: SliTaz GNU/Linux SpaceFM configuration file. - -# tmp_dir should be a root-protected user-writable dir like /tmp -# tmp_dir must NOT contain spaces or special chars - keep it simple -tmp_dir=/tmp - diff -r 0a9b2a43d493 -r b1a1deb20f42 spacefm/stuff/vfs-file-task.c.diff --- a/spacefm/stuff/vfs-file-task.c.diff Sun May 06 04:24:54 2018 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ ---- spacefm-0.8.4.orig/src/vfs/vfs-file-task.c -+++ spacefm-0.8.4/src/vfs/vfs-file-task.c -@@ -1725,6 +1725,12 @@ - argv[a++] = g_strdup( "SpaceFM Command" ); - single_arg = TRUE; - } -+ else if ( !strcmp( use_su, "/usr/bin/tazbox" ) ) -+ { -+ // tazbox -+ argv[a++] = g_strdup( "su" ); -+ single_arg = TRUE; -+ } - else if ( strstr( use_su, "kdesu" ) ) - { - // kdesu kdesudo diff -r 0a9b2a43d493 -r b1a1deb20f42 tiff/receipt --- a/tiff/receipt Sun May 06 04:24:54 2018 +0300 +++ b/tiff/receipt Wed May 09 16:46:19 2018 +0300 @@ -1,26 +1,37 @@ # SliTaz package receipt v2. PACKAGE="tiff" -VERSION="4.0.7" +VERSION="4.0.9" CATEGORY="graphics" SHORT_DESC="TIFF images" MAINTAINER="pankso@slitaz.org" LICENSE="MIT" WEB_SITE="http://www.libtiff.org/" +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/libtiff.html" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="http://download.osgeo.org/libtiff/$TARBALL" -BUILD_DEPENDS="libjpeg-turbo-dev zlib-dev" -SPLIT="tiff-apps tiff-dev" +BUILD_DEPENDS="cmake ninja zlib-dev libjpeg-turbo-dev xz-dev \ +mesa-dev glu-dev freeglut-dev" +SPLIT="tiff tiff-apps tiff-dev tiff-gl:gl tiff-gl-apps:gl tiff-gl-dev:gl" compile_rules() { - ./configure \ - --disable-static \ - $CONFIGURE_ARGS && - fix libtool && - make && - make install + case $SET in + # no options for it + '') sed -i 's|HAVE_OPENGL TRUE|HAVE_OPENGL FALSE|' CMakeLists.txt;; + esac + + mkdir -p libtiff-build + cd libtiff-build + + cmake \ + -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/libtiff-$VERSION \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -G Ninja \ + .. && + ninja && + ninja install } genpkg_rules() { @@ -28,16 +39,34 @@ tiff) copy *.so* CAT="graphics|libraries" - DEPENDS="jpeg-turbo zlib" + DEPENDS="libjpeg-turbo liblzma zlib" ;; tiff-apps) copy bin/ CAT="graphics|CLI applications" - DEPENDS="libjpeg-turbo zlib tiff" + DEPENDS="tiff" ;; - *-dev) + tiff-dev) copy @dev - DEPENDS="tiff tiff-apps libjpeg-turbo-dev zlib-dev" + DEPENDS="tiff tiff-apps" + ;; + + tiff-gl) + copy *.so* + CAT="graphics|libraries" + DEPENDS="libjpeg-turbo liblzma zlib" + PROVIDE="tiff:mesa" + ;; + tiff-gl-apps) + copy bin/ + CAT="graphics|CLI applications" + DEPENDS="freeglut mesa tiff" + PROVIDE="tiff-apps:mesa" + ;; + tiff-gl-dev) + copy @dev + DEPENDS="tiff-gl tiff-gl-apps" + PROVIDE="tiff-dev:mesa" ;; esac }