diff options
-rw-r--r-- | patches/chicken-4.11.0.local.patch | 210 | ||||
-rw-r--r-- | vars/build.vars | 13 |
2 files changed, 221 insertions, 2 deletions
diff --git a/patches/chicken-4.11.0.local.patch b/patches/chicken-4.11.0.local.patch new file mode 100644 index 00000000..c786a9d4 --- /dev/null +++ b/patches/chicken-4.11.0.local.patch @@ -0,0 +1,210 @@ +diff -ru --new-file chicken-4.11.0/Makefile.midipix-nt32 chicken-4.11.0.midipix/Makefile.midipix-nt32 +--- chicken-4.11.0/Makefile.midipix-nt32 1970-01-01 01:00:00.000000000 +0100 ++++ chicken-4.11.0.midipix/Makefile.midipix-nt32 2016-12-10 01:47:38.652721232 +0100 +@@ -0,0 +1,101 @@ ++# Makefile.midipix-nt32 - configuration for Midipix -*- Makefile -*- ++# ++# Copyright (c) 2008-2016, The CHICKEN Team ++# Copyright (c) 2007, Felix L. Winkelmann ++# 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 the author 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 HOLDERS 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. ++ ++SRCDIR ?= ./ ++ ++# platform configuration ++ ++ARCH ?= x86 ++ ++# options ++ ++C_COMPILER_OPTIONS ?= -fno-strict-aliasing -fwrapv -DHAVE_CHICKEN_CONFIG_H ++ifdef DEBUGBUILD ++C_COMPILER_OPTIMIZATION_OPTIONS ?= -g -Wall -Wno-unused ++else ++ifdef OPTIMIZE_FOR_SPEED ++C_COMPILER_OPTIMIZATION_OPTIONS ?= -O3 -fomit-frame-pointer ++else ++C_COMPILER_OPTIMIZATION_OPTIONS ?= -Os -fomit-frame-pointer ++endif ++endif ++LINKER_LINK_SHARED_LIBRARY_OPTIONS = -shared ++LINKER_LINK_SHARED_DLOADABLE_OPTIONS = -L. -shared -Wl,-R"$(RUNTIME_LINKER_PATH)" ++LINKER_LINK_SHARED_PROGRAM_OPTIONS = -Wl,-R"$(RUNTIME_LINKER_PATH)" ++LIBCHICKEN_SO_LINKER_OPTIONS = -Wl,-soname,lib$(PROGRAM_PREFIX)chicken$(PROGRAM_SUFFIX).so.$(BINARYVERSION) ++LIBRARIES = ++NEEDS_RELINKING = no ++USES_SONAME = yes ++ ++# special files ++ ++CHICKEN_CONFIG_H = chicken-config.h ++ ++# select default and internal settings ++ ++include $(SRCDIR)/defaults.make ++ ++chicken-config.h: chicken-defaults.h ++ echo "/* GENERATED */" >$@ ++ echo "#define HAVE_DIRENT_H 1" >>$@ ++ echo "#define HAVE_DLFCN_H 1" >>$@ ++ echo "#define HAVE_INTTYPES_H 1" >>$@ ++ echo "#define HAVE_LIMITS_H 1" >>$@ ++ echo "#define HAVE_LONG_LONG 1" >>$@ ++ echo "#define HAVE_MEMMOVE 1" >>$@ ++ echo "#define HAVE_MEMORY_H 1" >>$@ ++ echo "#define HAVE_SIGACTION 1" >>$@ ++ echo "#define HAVE_SIGSETJMP 1" >>$@ ++ echo "#define HAVE_SIGPROCMASK 1" >>$@ ++ echo "#define HAVE_STDINT_H 1" >>$@ ++ echo "#define HAVE_STDLIB_H 1" >>$@ ++ echo "#define HAVE_STRERROR 1" >>$@ ++ echo "#define HAVE_STRINGS_H 1" >>$@ ++ echo "#define HAVE_STRING_H 1" >>$@ ++ echo "#define HAVE_STRTOLL 1" >>$@ ++ echo "#define HAVE_STRTOQ 1" >>$@ ++ echo "#define HAVE_SYS_STAT_H 1" >>$@ ++ echo "#define HAVE_SYS_TYPES_H 1" >>$@ ++ echo "#define HAVE_SETENV 1" >>$@ ++ echo "#define HAVE_UNISTD_H 1" >>$@ ++ echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>$@ ++ echo "#define STDC_HEADERS 1" >>$@ ++ echo "#define HAVE_ALLOCA 1" >>$@ ++ echo "#define HAVE_ALLOCA_H 1" >>$@ ++ echo "#define HAVE_GRP_H 1" >>$@ ++ echo "#define HAVE_ERRNO_H 1" >>$@ ++ echo "#define HAVE_SYSEXITS_H 1" >>$@ ++ echo "#define HAVE_MEMMOVE 1" >>$@ ++ echo "#define C_STACK_GROWS_DOWNWARD 1" >>$@ ++ifdef GCHOOKS ++ echo "#define C_GC_HOOKS" >>$@ ++endif ++ifdef SYMBOLGC ++ echo "#define C_COLLECT_ALL_SYMBOLS" >>$@ ++endif ++ cat chicken-defaults.h >>$@ ++ ++include $(SRCDIR)/rules.make +diff -ru --new-file chicken-4.11.0/Makefile.midipix-nt64 chicken-4.11.0.midipix/Makefile.midipix-nt64 +--- chicken-4.11.0/Makefile.midipix-nt64 1970-01-01 01:00:00.000000000 +0100 ++++ chicken-4.11.0.midipix/Makefile.midipix-nt64 2016-12-10 01:47:26.148721232 +0100 +@@ -0,0 +1,101 @@ ++# Makefile.midipix-nt64 - configuration for Midipix -*- Makefile -*- ++# ++# Copyright (c) 2008-2016, The CHICKEN Team ++# Copyright (c) 2007, Felix L. Winkelmann ++# 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 the author 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 HOLDERS 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. ++ ++SRCDIR ?= ./ ++ ++# platform configuration ++ ++ARCH ?= x86-64 ++ ++# options ++ ++C_COMPILER_OPTIONS ?= -fno-strict-aliasing -fwrapv -DHAVE_CHICKEN_CONFIG_H ++ifdef DEBUGBUILD ++C_COMPILER_OPTIMIZATION_OPTIONS ?= -g -Wall -Wno-unused ++else ++ifdef OPTIMIZE_FOR_SPEED ++C_COMPILER_OPTIMIZATION_OPTIONS ?= -O3 -fomit-frame-pointer ++else ++C_COMPILER_OPTIMIZATION_OPTIONS ?= -Os -fomit-frame-pointer ++endif ++endif ++LINKER_LINK_SHARED_LIBRARY_OPTIONS = -shared ++LINKER_LINK_SHARED_DLOADABLE_OPTIONS = -L. -shared -Wl,-R"$(RUNTIME_LINKER_PATH)" ++LINKER_LINK_SHARED_PROGRAM_OPTIONS = -Wl,-R"$(RUNTIME_LINKER_PATH)" ++LIBCHICKEN_SO_LINKER_OPTIONS = -Wl,-soname,lib$(PROGRAM_PREFIX)chicken$(PROGRAM_SUFFIX).so.$(BINARYVERSION) ++LIBRARIES = ++NEEDS_RELINKING = no ++USES_SONAME = yes ++ ++# special files ++ ++CHICKEN_CONFIG_H = chicken-config.h ++ ++# select default and internal settings ++ ++include $(SRCDIR)/defaults.make ++ ++chicken-config.h: chicken-defaults.h ++ echo "/* GENERATED */" >$@ ++ echo "#define HAVE_DIRENT_H 1" >>$@ ++ echo "#define HAVE_DLFCN_H 1" >>$@ ++ echo "#define HAVE_INTTYPES_H 1" >>$@ ++ echo "#define HAVE_LIMITS_H 1" >>$@ ++ echo "#define HAVE_LONG_LONG 1" >>$@ ++ echo "#define HAVE_MEMMOVE 1" >>$@ ++ echo "#define HAVE_MEMORY_H 1" >>$@ ++ echo "#define HAVE_SIGACTION 1" >>$@ ++ echo "#define HAVE_SIGSETJMP 1" >>$@ ++ echo "#define HAVE_SIGPROCMASK 1" >>$@ ++ echo "#define HAVE_STDINT_H 1" >>$@ ++ echo "#define HAVE_STDLIB_H 1" >>$@ ++ echo "#define HAVE_STRERROR 1" >>$@ ++ echo "#define HAVE_STRINGS_H 1" >>$@ ++ echo "#define HAVE_STRING_H 1" >>$@ ++ echo "#define HAVE_STRTOLL 1" >>$@ ++ echo "#define HAVE_STRTOQ 1" >>$@ ++ echo "#define HAVE_SYS_STAT_H 1" >>$@ ++ echo "#define HAVE_SYS_TYPES_H 1" >>$@ ++ echo "#define HAVE_SETENV 1" >>$@ ++ echo "#define HAVE_UNISTD_H 1" >>$@ ++ echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>$@ ++ echo "#define STDC_HEADERS 1" >>$@ ++ echo "#define HAVE_ALLOCA 1" >>$@ ++ echo "#define HAVE_ALLOCA_H 1" >>$@ ++ echo "#define HAVE_GRP_H 1" >>$@ ++ echo "#define HAVE_ERRNO_H 1" >>$@ ++ echo "#define HAVE_SYSEXITS_H 1" >>$@ ++ echo "#define HAVE_MEMMOVE 1" >>$@ ++ echo "#define C_STACK_GROWS_DOWNWARD 1" >>$@ ++ifdef GCHOOKS ++ echo "#define C_GC_HOOKS" >>$@ ++endif ++ifdef SYMBOLGC ++ echo "#define C_COLLECT_ALL_SYMBOLS" >>$@ ++endif ++ cat chicken-defaults.h >>$@ ++ ++include $(SRCDIR)/rules.make diff --git a/vars/build.vars b/vars/build.vars index 8478a56e..22e9fbef 100644 --- a/vars/build.vars +++ b/vars/build.vars @@ -403,8 +403,8 @@ LEAF_PACKAGES_CONFIGURE_ARGS="-C --disable-nls --host=${TARGET} --prefix= --targ LEAF_PACKAGES_LDFLAGS_CONFIGURE="--sysroot=${PREFIX_NATIVE}"; LEAF_PACKAGES_MAKEFLAGS_INSTALL="DESTDIR=${PREFIX_NATIVE}"; LEAF_PACKAGES_PACKAGES=" -apk_tools bash cmake coreutils cparser cron dash diffutils dos2unix ed file findutils gawk git gnupg -grep hexcurse htop inetutils infounzip infozip irssi john less lynx make man_db mc mksh nano netcat +apk_tools bash chicken cmake coreutils cparser cron dash diffutils dos2unix ed file findutils gawk git +gnupg grep hexcurse htop inetutils infounzip infozip irssi john less lynx make man_db mc mksh nano netcat openssh p7zip pacman patch perl procps_ng python3 rsync rxvt_unicode sed tar tcsh the_silver_searcher tmux util_linux vim weechat wget which whois xeyes xwd zsh"; LEAF_PACKAGES_PREFIX="${PREFIX_NATIVE}"; @@ -419,6 +419,15 @@ LEAF_PACKAGES_PREFIX="${PREFIX_NATIVE}"; : ${PKG_BASH_SHA256SUM:=afc687a28e0e24dc21b988fa159ff9dbcf6b7caa92ade8645cc6d5605cd024d4}; : ${PKG_BASH_VERSION:=4.3}; : ${PKG_BASH_URL:=https://ftp.gnu.org/gnu/bash/bash-${PKG_BASH_VERSION}.tar.gz}; +: ${PKG_CHICKEN_VERSION:=4.11.0}; +: ${PKG_CHICKEN_SHA256SUM:=e3dc2b8f95b6a3cd59c85b5bb6bdb2bd9cefc45b5d536a20cad74e3c63f4ad89}; +: ${PKG_CHICKEN_URL:=https://code.call-cc.org/releases/4.11.0/chicken-${PKG_CHICKEN_VERSION}.tar.gz}; +: ${PKG_CHICKEN_BUILD_DIR:=chicken-${PKG_CHICKEN_VERSION}}; +: ${PKG_CHICKEN_MAKEFLAGS_BUILD_EXTRA_DEBUG:=DEBUGBUILD=1}; +: ${PKG_CHICKEN_MAKEFLAGS_BUILD_EXTRA_RELEASE:=DEBUGBUILD=0}; +: ${PKG_CHICKEN_MAKEFLAGS_BUILD:="PLATFORM=midipix-${ARCH} PREFIX=${PREFIX_NATIVE} TARGET_PREFIX=${PREFIX_NATIVE} C_COMPILER=${TARGET}-gcc HOSTSYSTEM=${TARGET} install"}; +: ${PKG_CHICKEN_NO_CLEAN:=1}; +: ${PKG_CHICKEN_NO_MAKE_INSTALL:=1}; : ${PKG_CMAKE_VERSION:=3.6.3}; : ${PKG_CMAKE_SHA256SUM:=7d73ee4fae572eb2d7cd3feb48971aea903bb30a20ea5ae8b4da826d8ccad5fe}; : ${PKG_CMAKE_URL:=https://cmake.org/files/v${PKG_CMAKE_VERSION%.*}/cmake-${PKG_CMAKE_VERSION}.tar.gz}; |