summaryrefslogtreecommitdiff
path: root/Ports/bzip2/package.sh
diff options
context:
space:
mode:
authorGunnar Beutner <gunnar@beutner.name>2021-04-19 16:19:19 +0200
committerAndreas Kling <kling@serenityos.org>2021-04-19 18:27:09 +0200
commite0363a612d76be8ecb76ada6c7caf6d3182293b2 (patch)
treef784803ad9d57b88a388a6a8f5569f14e8d0ebd0 /Ports/bzip2/package.sh
parent253c1aa64464c9da8843d2d8778cccafe980a4a8 (diff)
downloadserenity-e0363a612d76be8ecb76ada6c7caf6d3182293b2.zip
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.
Diffstat (limited to 'Ports/bzip2/package.sh')
-rwxr-xr-xPorts/bzip2/package.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/Ports/bzip2/package.sh b/Ports/bzip2/package.sh
index 1790b62e66..2766d137fb 100755
--- a/Ports/bzip2/package.sh
+++ b/Ports/bzip2/package.sh
@@ -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
+}