aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/package/make.az
blob: 5142b079adcf9e72f7fa01ef54ea45fb8b87e42a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package make-source {
        description = "GNU make source tree";
        exclude = true;

	version# = "4.4.1";
	output = remoteTar {
		url = "https://mirrors.kernel.org/gnu/make/make-"+version+".tar.gz";
		checksum = "YS_B07ZcAy9PbaK5_vKGj64SrxO2VMpnMKfc9I0Q9IC1rn0RwOH7802pJoj2Mq4a";
		compress = gzip;
	};
}

package make-early {
	description = "early, dependency-free build of make";
	exclude = true;

	source = make-source;
	toyboxEarly = true;

	exec = generic {
		build = `/usr/src/make-early/configure \
	--prefix=/system \
	--host='`+triple+`' \
	--target='`+triple+`' \
	--build='`+hostTriple+`' \
	--disable-dependency-tracking
./build.sh
`;
		// test suite wants perl
		check = "";

		install = "./make DESTDIR=/work install\n";
	};
}
package make {
	description = "a tool which controls the generation of executables and other non-source files";
	website = "https://www.gnu.org/software/make";
	anitya = 1877;

	source = make-source;
	toyboxEarly = true;

	// GNU tar not yet available
	writable = true;
	early = `
chmod +w tests/scripts/misc
rm -f \
	tests/scripts/misc/close_stdout \
	tests/scripts/misc/general4
`;

	exec = make {
		early = true;
		defaults = false;
	};

	tools = [
		perl,
		gzip,
	];
}