Ports: Fix ports when building with ccache

When building with ccache these ports failed to build because
CC contains more than one word.

The ncurses port also doesn't like how ccache preprocesses
files. This patch fixes that.
This commit is contained in:
Gunnar Beutner 2021-04-19 16:19:19 +02:00 committed by Andreas Kling
parent 253c1aa644
commit e0363a612d
3 changed files with 17 additions and 2 deletions

View file

@ -3,5 +3,13 @@ port=bzip2
version=1.0.8
files="https://sourceware.org/pub/bzip2/bzip2-${version}.tar.gz bzip2-${version}.tar.gz 67e051268d0c475ea773822f7500d0e5"
auth_type=md5
makeopts="bzip2 CC=${CC}"
makeopts=bzip2
installopts="PREFIX=${SERENITY_BUILD_DIR}/Root/usr/local"
build() {
run make CC="${CC}" $makeopts bzip2
}
install() {
run make DESTDIR=$DESTDIR CC="${CC}" $installopts install
}

View file

@ -3,4 +3,7 @@ port=figlet
version=2.2.5
files="http://ftp.figlet.org/pub/figlet/program/unix/figlet-${version}.tar.gz figlet-${version}.tar.gz d88cb33a14f1469fff975d021ae2858e"
auth_type=md5
makeopts="CC=${CC} LD=${CC}"
build() {
run make CC="${CC}" LD="${CC}" $makeopts
}

View file

@ -8,3 +8,7 @@ https://ftpmirror.gnu.org/gnu/ncurses/ncurses-${version}.tar.gz.sig ncurses-${ve
https://ftpmirror.gnu.org/gnu/gnu-keyring.gpg gnu-keyring.gpg"
auth_type="sig"
auth_opts="--keyring ./gnu-keyring.gpg ncurses-${version}.tar.gz.sig"
pre_configure() {
export CPPFLAGS="-P"
}