ports

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

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

pcc: new port

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

diff --git a/pcc/makeme b/pcc/makeme @@ -0,0 +1,20 @@ +name=pcc +version=1.1.0 +source=ftp://$name.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 \ + --libexecdir=/usr/lib/pcc \ + --build=$CBUILD \ + --host=$CHOST + + make CC="$CC" LDFLAGS="$LDFLAGS" + make DESTDIR=$WORKDIR/$name \ + PREFIX=/usr \ + MANPREFIX=/usr/man \ + install +} diff --git a/pcc/patches/0001-configure-musl-support.patch b/pcc/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