ports

recipes for building multiple softwares
git clone git://z3bra.org/ports
Log | Files | Refs

commit 347aa308b0cc3c48e529552cf43dd3cafa47b13a
parent 7a1cb205f0adfe81540aec77721d685e9795b583
Author: z3bra <willyatmailoodotorg>
Date:   Sun Aug 16 16:47:48 2015

pcc-libs: new port

Diffstat:
 pcc-libs/makeme                                    | 15 ++++++++++++-
 pcc-libs/patches/0001-configure-musl-support.patch | 28 +++++++++++++++++++++++-
 2 files changed, 43 insertions(+), 0 deletions(-)

diff --git a/pcc-libs/makeme b/pcc-libs/makeme @@ -0,0 +1,15 @@ +name=pcc-libs +version=1.1.0 +source=ftp://pcc.ludd.ltu.se/pub/pcc-releases/$name-$version.tgz + +package() { + curl -# $source | tar xz + cd $name-$version + + cat ../patches/*.patch | patch -Np1 + + ./configure --prefix=/usr --build=$CBUILD --host=$CHOST + + make CC="$CC" LDFLAGS="$LDFLAGS" + make DESTDIR=$WORKDIR/$name install +} diff --git a/pcc-libs/patches/0001-configure-musl-support.patch b/pcc-libs/patches/0001-configure-musl-support.patch @@ -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