feat: add GNU Make 4.4.1 package definition
Full autotools build (./configure, make, make check, make install) verified end-to-end — builds, installs, produces working binary.
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* GNU Make — the build tool that builds everything else.
|
||||
*
|
||||
* This is the quintessential autotools package: ./configure, make, make install.
|
||||
* If kappa can build this, it can build anything downstream.
|
||||
*
|
||||
* INIT-AGNOSTIC
|
||||
* =============
|
||||
* Make itself doesn't care about init systems — no service definitions,
|
||||
* no boot requirements. It's a pure build tool.
|
||||
*/
|
||||
package "make" {
|
||||
const version = "4.4.1"
|
||||
const source = "https://ftp.gnu.org/gnu/make/make-${version}.tar.gz"
|
||||
sha256 = "dd16fb1d67bfab79a72f5e8390735c49e3e8e70b4945a15ab1f81ddb78658fb3"
|
||||
license = "GPL-3.0-or-later"
|
||||
|
||||
provides = ["make", "gmake"]
|
||||
|
||||
env {
|
||||
CFLAGS = "-O2"
|
||||
CFLAGS += "-Wno-error"
|
||||
}
|
||||
|
||||
build {
|
||||
touch aclocal.m4 configure Makefile.in */Makefile.in
|
||||
./configure --prefix=${prefix}
|
||||
make -j${jobs}
|
||||
}
|
||||
|
||||
check {
|
||||
make check
|
||||
}
|
||||
|
||||
install {
|
||||
make DESTDIR=${destdir} install
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user