master chld/ports-heresy / lang / guile / ndmake.sh
 1#!/bin/sh -ue
 2NAME=guile
 3VERSION=3.0.11
 4RELEASE=1
 5SOURCE="https://ftp.gnu.org/pub/gnu/guile/guile-3.0.11.tar.xz"
 6build(){
 7	echo 'clang -static $@' > `pwd`/ccs
 8	chmod 755 `pwd`/ccs
 9        static_cc=`pwd`/ccs
10
11	CC="$static_cc" CFLAGS='-static' GCC_CFLAGS='-static' LDFLAGS='-static' ./configure \
12		--prefix=/ \
13		--bindir=/bin \
14		--sbindir=/bin \
15		--libdir=/lib \
16		--includedir=/include \
17		--sysconfdir=/etc \
18		--disable-lto \
19		--disable-largefile \
20		--without-gnu-ld \
21		--disable-libunistring \
22		--enable-dependency-tracking \
23		--enable-static \
24		--disable-libtool-loc \
25		--enable-jit=no \
26		--disable-nls \
27		--disable-shared \
28		--enable-static \
29		--enable-mini-gmp || die "configure failed"
30
31	gmake CC="$static_cc" PREFIX="$PREFIX" DESTDIR="$PKG" CFLAGS='-static' GCC_CFLAGS='-static' LDFLAGS='-static' -j"$NPROC" || die "build failed" 
32	gmake DESTDIR="$PKG" install || die "gmake install failed"
33
34}
35. ${0%/*}/../../libsh/libdmake.sh