diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-embedded/dc-tool-ip/dc-tool-ip-1.0.4.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-embedded/dc-tool-ip/dc-tool-ip-1.0.4.ebuild')
-rw-r--r-- | dev-embedded/dc-tool-ip/dc-tool-ip-1.0.4.ebuild | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/dev-embedded/dc-tool-ip/dc-tool-ip-1.0.4.ebuild b/dev-embedded/dc-tool-ip/dc-tool-ip-1.0.4.ebuild new file mode 100644 index 000000000000..fc9a8492d5ea --- /dev/null +++ b/dev-embedded/dc-tool-ip/dc-tool-ip-1.0.4.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="4" + +inherit eutils flag-o-matic toolchain-funcs + +DESCRIPTION="ethernet program loader for the Dreamcast" +HOMEPAGE="http://cadcdev.sourceforge.net/" +SRC_URI="mirror://sourceforge/cadcdev/dcload-ip-${PV}-src.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="doc" + +S=${WORKDIR}/dcload-ip-${PV} + +src_prepare() { + epatch "${FILESDIR}"/${PV}-bfd-update.patch + epatch "${FILESDIR}"/${P}-headers.patch + append-cppflags -DPACKAGE -DPACKAGE_VERSION #465952 + sed -i \ + -e "/^HOSTCC/s:gcc:$(tc-getCC):" \ + -e "/^HOSTCFLAGS/s:-O2:${CFLAGS} ${CPPFLAGS}:" \ + -e 's:-L/usr/local/dcdev/lib:$(LDFLAGS):' \ + -e 's:/usr/local/dcdev/include:.:' \ + Makefile.cfg || die "sed" +} + +src_compile() { + emake -C host-src/tool +} + +src_install() { + dobin host-src/tool/dc-tool + dodoc README NETWORK CHANGES + dodoc -r make-cd + if use doc ; then + dodoc -r example-src + fi +} |