lwtools-4.16.recipe revision 336ec218
1SUMMARY="Cross-development tools for the Motorola 6809"
2DESCRIPTION="LWTOOLS is a set of cross-development tools for the Motorola 6809 \
3and Hitachi 6309 microprocessors. It supports assembling to raw binaries, CoCo \
4LOADM binaries, and a proprietary object file format for later linking. It also \
5supports macros and file inclusion among other things."
6HOMEPAGE="http://lwtools.projects.l-w.ca/"
7COPYRIGHT="2006-2018 William Astle"
8LICENSE="GNU GPL v3"
9REVISION="1"
10SOURCE_URI="$HOMEPAGE/releases/lwtools/lwtools-$portVersion.tar.gz"
11CHECKSUM_SHA256="e4de2be9cd2407036ffb45ae562d8df653a30776a2d838798e08cec558ee192a"
12
13ARCHITECTURES="!x86_gcc2"
14SECONDARY_ARCHITECTURES="x86"
15
16PROVIDES="
17	lwtools$secondaryArchSuffix = $portVersion
18	cmd:lwar
19	cmd:lwasm
20	cmd:lwlink
21	cmd:lwobjdump
22	cmd:m6809_unknown_ar
23	cmd:m6809_unknown_as
24	cmd:m6809_unknown_ld
25	cmd:m6809_unknown_nm
26	cmd:m6809_unknown_objdump
27	cmd:m6809_unknown_ranlib
28	cmd:m6809_unknown_strip
29	"
30REQUIRES="
31	haiku$secondaryArchSuffix
32	"
33
34BUILD_PREREQUIRES="
35	haiku${secondaryArchSuffix}_devel
36	cmd:cc$secondaryArchSuffix
37	cmd:make
38	"
39
40BUILD()
41{
42	make
43}
44
45INSTALL()
46{
47	make install INSTALLDIR=$prefix/bin
48
49	# Install the binutil-like interfaces to the tools
50	cp extra/as $prefix/bin/m6809-unknown-as
51	cp extra/ar $prefix/bin/m6809-unknown-ar
52	cp extra/ld $prefix/bin/m6809-unknown-ld
53
54	ln -s /bin/true $prefix/bin/m6809-unknown-nm
55	ln -s /bin/true $prefix/bin/m6809-unknown-objdump
56	ln -s /bin/true $prefix/bin/m6809-unknown-ranlib
57	ln -s /bin/true $prefix/bin/m6809-unknown-strip
58}
59