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:
parent
253c1aa644
commit
e0363a612d
Notes:
sideshowbarker
2024-07-18 19:23:36 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/e0363a612d7 Pull-request: https://github.com/SerenityOS/serenity/pull/6488
3 changed files with 17 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue