diff options
author | David Seifert <soap@gentoo.org> | 2020-09-16 16:28:19 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2020-09-16 16:28:19 +0200 |
commit | b452252b4726733b0b997a9d31b95e18bd6b71c2 (patch) | |
tree | a7c2a61dc318c23ddca7a1349c0e9db3575d4b1e /dev-embedded/dc-tool-ip/files | |
parent | sci-physics/bullet: version bump to 2.89 (diff) | |
download | gentoo-b452252b4726733b0b997a9d31b95e18bd6b71c2.tar.gz gentoo-b452252b4726733b0b997a9d31b95e18bd6b71c2.tar.bz2 gentoo-b452252b4726733b0b997a9d31b95e18bd6b71c2.zip |
dev-embedded/dc-tool-ip: Port to EAPI 7
Closes: https://bugs.gentoo.org/722592
Closes: https://bugs.gentoo.org/742173
Package-Manager: Portage-3.0.7, Repoman-3.0.1
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'dev-embedded/dc-tool-ip/files')
-rw-r--r-- | dev-embedded/dc-tool-ip/files/dc-tool-ip-1.0.4-bfd-update.patch (renamed from dev-embedded/dc-tool-ip/files/1.0.4-bfd-update.patch) | 4 | ||||
-rw-r--r-- | dev-embedded/dc-tool-ip/files/dc-tool-ip-1.0.4-makefile.patch | 45 |
2 files changed, 47 insertions, 2 deletions
diff --git a/dev-embedded/dc-tool-ip/files/1.0.4-bfd-update.patch b/dev-embedded/dc-tool-ip/files/dc-tool-ip-1.0.4-bfd-update.patch index 62da02f12e98..2b3b32d7e3f4 100644 --- a/dev-embedded/dc-tool-ip/files/1.0.4-bfd-update.patch +++ b/dev-embedded/dc-tool-ip/files/dc-tool-ip-1.0.4-bfd-update.patch @@ -1,5 +1,5 @@ ---- host-src/tool/dc-tool.c.orig 2004-11-13 19:38:50.007151024 -0500 -+++ host-src/tool/dc-tool.c 2004-11-13 19:38:58.320887144 -0500 +--- a/host-src/tool/dc-tool.c ++++ b/host-src/tool/dc-tool.c @@ -431,13 +431,13 @@ if ((section->flags & SEC_HAS_CONTENTS) && (section->flags & SEC_LOAD)) { printf("Section %s, ",section->name); diff --git a/dev-embedded/dc-tool-ip/files/dc-tool-ip-1.0.4-makefile.patch b/dev-embedded/dc-tool-ip/files/dc-tool-ip-1.0.4-makefile.patch new file mode 100644 index 000000000000..ae902dcc2a6b --- /dev/null +++ b/dev-embedded/dc-tool-ip/files/dc-tool-ip-1.0.4-makefile.patch @@ -0,0 +1,45 @@ +--- a/host-src/tool/Makefile ++++ b/host-src/tool/Makefile +@@ -1,18 +1,13 @@ + include ../../Makefile.cfg + +-CC = $(HOSTCC) +-CFLAGS = $(HOSTCFLAGS) -DDREAMCAST_IP=\"$(DREAMCAST_IP)\" -DHAVE_GETOPT +-INCLUDE = -I$(BFDINCLUDE) ++CPPFLAGS += -DDREAMCAST_IP=\"$(DREAMCAST_IP)\" -DHAVE_GETOPT + + OBJECTS = dc-tool.o syscalls.o + +-.c.o: +- $(CC) $(CFLAGS) $(INCLUDE) -o $@ -c $< +- + all: dc-tool + + dc-tool: $(OBJECTS) +- $(CC) -o $@ $(OBJECTS) $(BFDLIB) ++ $(CC) $(LDFLAGS) -o $@ $(OBJECTS) $(BFDLIB) + + .PHONY : install + install: dc-tool +--- a/Makefile.cfg ++++ b/Makefile.cfg +@@ -8,8 +8,8 @@ + # the ones in your system + + # these must point to your sh-elf bfd, not the system one +-BFDLIB = -L/usr/local/dcdev/lib -lbfd -liberty +-BFDINCLUDE = /usr/local/dcdev/include ++BFDLIB = -lbfd -liberty ++BFDINCLUDE = + + # cygwin + # these must point to your sh-elf bfd, not the system one +@@ -24,7 +24,7 @@ + + # you generally shouldn't change this unless you are making forked + # versions (or test versions) +-VERFLAGS = -DDCLOAD_VERSION=\"1.0.4\" ++CPPFLAGS += -DDCLOAD_VERSION=\"1.0.4\" + TARGETCFLAGS += $(VERFLAGS) + HOSTCFLAGS += $(VERFLAGS) + |