tnew ports: libmpc, libpcc, pcc - mkports - recipes for building multiple softwares with mk(1)
 (HTM) git clone git://z3bra.org/mkports
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) commit f86366438716cad359c1f5be43c389e0cf97ad58
 (DIR) parent 8c1f4c61769da2b0e765e52e9b463f94763333fe
 (HTM) Author: z3bra <willyatmailoodotorg>
       Date:   Tue, 19 Jan 2016 14:12:12 +0100
       
       new ports: libmpc, libpcc, pcc
       
       Diffstat:
         A libmpc/mkfile                       |      10 ++++++++++
         A libmpc/mpc-1.0.3.tar.gz             |       0 
         A libpcc/mkfile                       |      10 ++++++++++
         A libpcc/patches/001-configure-musl.… |      28 ++++++++++++++++++++++++++++
         A pcc/mkfile                          |       8 ++++++++
         A pcc/patches/000-musl-configure.diff |      28 ++++++++++++++++++++++++++++
         A pcc/patches/001-deflibdir.diff      |      30 ++++++++++++++++++++++++++++++
       
       7 files changed, 114 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/libmpc/mkfile b/libmpc/mkfile
       t@@ -0,0 +1,10 @@
       +pkg = libmpc
       +ver = 1.0.3
       +url = ftp://ftp.gnu.org/gnu/mpc/mpc-$ver.tar.gz
       +
       +<../config.mk
       +<../default.mk
       +
       +clean:V:
       +        rm -rf $pkg-$ver
       +        rm -f  mpc-$ver.tar.xz
 (DIR) diff --git a/libmpc/mpc-1.0.3.tar.gz b/libmpc/mpc-1.0.3.tar.gz
       Binary files differ.
 (DIR) diff --git a/libpcc/mkfile b/libpcc/mkfile
       t@@ -0,0 +1,10 @@
       +pkg = libpcc
       +ver = 1.1.0
       +url = ftp://pcc.ludd.ltu.se/pub/pcc-releases/pcc-libs-$ver.tgz
       +
       +<../config.mk
       +<../default.mk
       +
       +clean:V:
       +        rm -rf $pkg-$ver
       +        rm -f  pcc-libs-$ver.*
 (DIR) diff --git a/libpcc/patches/001-configure-musl.diff b/libpcc/patches/001-configure-musl.diff
       t@@ -0,0 +1,28 @@
       +diff -uN a/config.sub b/config.sub
       +--- a/config.sub        2015-06-18 18:55:00.839543215 +0200
       ++++ b/config.sub        2015-06-18 18:59:43.464572172 +0200
       +@@ -120,7 +120,7 @@
       + # Here we must recognize all the valid KERNEL-OS combinations.
       + maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
       + case $maybe_os in
       +-  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
       ++  nto-qnx* | linux-gnu* | linux-musl | linux-dietlibc | linux-newlib* | linux-uclibc* | \
       +   uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
       +   storm-chaos* | os2-emx* | rtmk-nova*)
       +     os=-$maybe_os
       +@@ -1253,6 +1253,9 @@
       +         -linux-dietlibc)
       +                 os=-linux-dietlibc
       +                 ;;
       ++        -linux-musl)
       ++                os=-linux-musl
       ++                ;;
       +         -linux*)
       +                 os=`echo $os | sed -e 's|linux|linux-gnu|'`
       +                 ;;
       +Common subdirectories: a/csu and b/csu
       +Common subdirectories: a/CVS and b/CVS
       +Common subdirectories: a/libF77 and b/libF77
       +Common subdirectories: a/libI77 and b/libI77
       +Common subdirectories: a/libpcc and b/libpcc
       +Common subdirectories: a/libsoftfloat and b/libsoftfloat
 (DIR) diff --git a/pcc/mkfile b/pcc/mkfile
       t@@ -0,0 +1,8 @@
       +pkg = pcc
       +ver = 1.1.0
       +url = ftp://pcc.ludd.ltu.se/pub/pcc-releases/$pkg-$ver.tgz
       +
       +<../config.mk
       +<../default.mk
       +
       +CONFIGURE = ${CONFIGURE} --libexecdir=/lib/pcc --with-libdir=/lib --with-incdir=/include
 (DIR) diff --git a/pcc/patches/000-musl-configure.diff b/pcc/patches/000-musl-configure.diff
       t@@ -0,0 +1,28 @@
       +diff -uN a/config.sub b/config.sub
       +--- a/config.sub        2015-06-18 18:55:00.839543215 +0200
       ++++ b/config.sub        2015-06-18 18:59:43.464572172 +0200
       +@@ -120,7 +120,7 @@
       + # Here we must recognize all the valid KERNEL-OS combinations.
       + maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
       + case $maybe_os in
       +-  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
       ++  nto-qnx* | linux-gnu* | linux-musl | linux-dietlibc | linux-newlib* | linux-uclibc* | \
       +   uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
       +   storm-chaos* | os2-emx* | rtmk-nova*)
       +     os=-$maybe_os
       +@@ -1253,6 +1253,9 @@
       +         -linux-dietlibc)
       +                 os=-linux-dietlibc
       +                 ;;
       ++        -linux-musl)
       ++                os=-linux-musl
       ++                ;;
       +         -linux*)
       +                 os=`echo $os | sed -e 's|linux|linux-gnu|'`
       +                 ;;
       +Common subdirectories: a/csu and b/csu
       +Common subdirectories: a/CVS and b/CVS
       +Common subdirectories: a/libF77 and b/libF77
       +Common subdirectories: a/libI77 and b/libI77
       +Common subdirectories: a/libpcc and b/libpcc
       +Common subdirectories: a/libsoftfloat and b/libsoftfloat
 (DIR) diff --git a/pcc/patches/001-deflibdir.diff b/pcc/patches/001-deflibdir.diff
       t@@ -0,0 +1,30 @@
       +diff -urN a/cc/cc/cc.c b/cc/cc/cc.c
       +--- a/cc/cc/cc.c        2015-08-16 16:00:18.867457413 +0200
       ++++ b/cc/cc/cc.c        2015-08-16 16:03:28.963466133 +0200
       +@@ -207,9 +207,9 @@
       + #endif
       + #ifndef DEFLIBDIRS        /* default library search paths */
       + #ifdef MULTIARCH_PATH
       +-#define DEFLIBDIRS        { "/usr/lib/", 0 }
       ++#define DEFLIBDIRS        { LIBDIR, 0 }
       + #else
       +-#define DEFLIBDIRS        { "/usr/lib/", "/usr/lib/" MULTIARCH_PATH "/", 0 }
       ++#define DEFLIBDIRS        { LIBDIR, LIBDIR MULTIARCH_PATH "/", 0 }
       + #endif
       + #endif
       + #ifndef DEFLIBS                /* default libraries included */
       +diff -urN a/os/linux/ccconfig.h b/os/linux/ccconfig.h
       +--- a/os/linux/ccconfig.h        2015-08-16 16:00:18.873457413 +0200
       ++++ b/os/linux/ccconfig.h        2015-08-16 16:05:23.446471384 +0200
       +@@ -48,9 +48,9 @@
       +         "-D__amd64", "-D__LP64__", "-D_LP64", NULL, }
       + #define        DYNLINKER { "-dynamic-linker", "/lib64/ld-linux-x86-64.so.2", NULL }
       + #ifndef MULTIARCH_PATH
       +-#define        DEFLIBDIRS        { "/usr/lib64/", 0 }
       ++#define        DEFLIBDIRS        { LIBDIR, 0 }
       + #else
       +-#define        DEFLIBDIRS        { "/usr/lib64/", "/usr/lib/" MULTIARCH_PATH "/", 0 }
       ++#define        DEFLIBDIRS        { LIBDIR, LIBDIR MULTIARCH_PATH "/", 0 }
       + #endif
       + #elif defined(mach_mips)
       + #define CPPMDADD { "-D__mips__", NULL, }