diff options
author | js <js@pkgsrc.org> | 2020-04-14 20:53:20 +0000 |
---|---|---|
committer | js <js@pkgsrc.org> | 2020-04-14 20:53:20 +0000 |
commit | 2d05d95bd6b964c25c1684f9f2529db73f56885c (patch) | |
tree | 8222cf86c4348ba64e761dcc15c132e5246c6a2b /cross | |
parent | 98f1a5cc416281ae1659a0f4c6ec31d5280c147d (diff) | |
download | pkgsrc-2d05d95bd6b964c25c1684f9f2529db73f56885c.tar.gz |
Import cross/ppc-morphos-binutils from wip
GNU Binutils targeting MorphOS, with the patches from the official SDK.
Diffstat (limited to 'cross')
-rw-r--r-- | cross/Makefile | 3 | ||||
-rw-r--r-- | cross/ppc-morphos-binutils/DESCR | 1 | ||||
-rw-r--r-- | cross/ppc-morphos-binutils/Makefile | 43 | ||||
-rw-r--r-- | cross/ppc-morphos-binutils/PLIST | 62 | ||||
-rw-r--r-- | cross/ppc-morphos-binutils/distinfo | 6 |
5 files changed, 114 insertions, 1 deletions
diff --git a/cross/Makefile b/cross/Makefile index 3494c196430..c470bde6c4c 100644 --- a/cross/Makefile +++ b/cross/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.95 2020/03/30 16:29:53 riastradh Exp $ +# $NetBSD: Makefile,v 1.96 2020/04/14 20:53:20 js Exp $ # COMMENT= Cross-platform development utilities @@ -67,6 +67,7 @@ SUBDIR+= pdp11-aout-binutils SUBDIR+= pdp11-aout-gcc SUBDIR+= powerpc-none-elf-binutils SUBDIR+= powerpc-none-elf-gcc +SUBDIR+= ppc-morphos-binutils SUBDIR+= stlink SUBDIR+= uisp SUBDIR+= xtensa-esp32-elf-binutils diff --git a/cross/ppc-morphos-binutils/DESCR b/cross/ppc-morphos-binutils/DESCR new file mode 100644 index 00000000000..3b749c27caa --- /dev/null +++ b/cross/ppc-morphos-binutils/DESCR @@ -0,0 +1 @@ +GNU Binutils targeting MorphOS diff --git a/cross/ppc-morphos-binutils/Makefile b/cross/ppc-morphos-binutils/Makefile new file mode 100644 index 00000000000..83c91ca1ef4 --- /dev/null +++ b/cross/ppc-morphos-binutils/Makefile @@ -0,0 +1,43 @@ +# $NetBSD: Makefile,v 1.1 2020/04/14 20:53:21 js Exp $ + +DISTNAME= sdk-source-20191111 +PKGNAME= ppc-morphos-binutils-2.33.1 +CATEGORIES= cross +MASTER_SITES= https://morphos-team.net/files/src/sdk/ +EXTRACT_SUFX= .tar.xz + +MAINTAINER= js@pkgsrc.org +HOMEPAGE= https://www.morphos-team.net/ +COMMENT= Binutils for ppc-morphos +LICENSE= gnu-gpl-v3 + +WRKSRC= ${WRKDIR}/sdk-source/binutils/binutils-${PKGVERSION_NOREV} +GNU_CONFIGURE= yes +USE_LANGUAGES= c c++ +USE_TOOLS+= xzcat gtar patch gmake makeinfo + +OBJDIR= ../build +CONFIGURE_DIRS= ${OBJDIR} +CONFIGURE_SCRIPT= ${WRKSRC}/configure +GNU_CONFIGURE_PREFIX= ${PREFIX}/gg +CONFIGURE_ARGS+= --target=ppc-morphos +CONFIGURE_ARGS+= --enable-plugins=no +CONFIGURE_ARGS+= --disable-initfini-array +CONFIGURE_ARGS+= --disable-nls +CONFIGURE_ARGS+= CFLAGS="${CFLAGS} -DMORPHOS_TARGET" + +post-extract: + ${RUN} cd ${WRKDIR}/sdk-source/binutils && \ + ${XZCAT} binutils-${PKGVERSION_NOREV}.tar.xz | ${GTAR} xf - + +do-patch: + ${RUN} cd ${WRKDIR}/sdk-source/binutils && \ + ${PATCH} -p0 <binutils-${PKGVERSION_NOREV}-morphos.diff + +pre-configure: + ${RUN} cd ${WRKSRC} && ${MKDIR} ${OBJDIR} + +post-install: + ${RUN} rm -f ${DESTDIR}${PREFIX}/gg/share/info/dir + +.include "../../mk/bsd.pkg.mk" diff --git a/cross/ppc-morphos-binutils/PLIST b/cross/ppc-morphos-binutils/PLIST new file mode 100644 index 00000000000..9a2b05e8be0 --- /dev/null +++ b/cross/ppc-morphos-binutils/PLIST @@ -0,0 +1,62 @@ +@comment $NetBSD: PLIST,v 1.1 2020/04/14 20:53:21 js Exp $ +gg/bin/ppc-morphos-addr2line +gg/bin/ppc-morphos-ar +gg/bin/ppc-morphos-as +gg/bin/ppc-morphos-c++filt +gg/bin/ppc-morphos-elfedit +gg/bin/ppc-morphos-gprof +gg/bin/ppc-morphos-ld +gg/bin/ppc-morphos-ld.bfd +gg/bin/ppc-morphos-nm +gg/bin/ppc-morphos-objcopy +gg/bin/ppc-morphos-objdump +gg/bin/ppc-morphos-ranlib +gg/bin/ppc-morphos-readelf +gg/bin/ppc-morphos-size +gg/bin/ppc-morphos-strings +gg/bin/ppc-morphos-strip +gg/man/man1/ppc-morphos-addr2line.1 +gg/man/man1/ppc-morphos-ar.1 +gg/man/man1/ppc-morphos-as.1 +gg/man/man1/ppc-morphos-c++filt.1 +gg/man/man1/ppc-morphos-dlltool.1 +gg/man/man1/ppc-morphos-elfedit.1 +gg/man/man1/ppc-morphos-gprof.1 +gg/man/man1/ppc-morphos-ld.1 +gg/man/man1/ppc-morphos-nm.1 +gg/man/man1/ppc-morphos-objcopy.1 +gg/man/man1/ppc-morphos-objdump.1 +gg/man/man1/ppc-morphos-ranlib.1 +gg/man/man1/ppc-morphos-readelf.1 +gg/man/man1/ppc-morphos-size.1 +gg/man/man1/ppc-morphos-strings.1 +gg/man/man1/ppc-morphos-strip.1 +gg/man/man1/ppc-morphos-windmc.1 +gg/man/man1/ppc-morphos-windres.1 +gg/ppc-morphos/bin/ar +gg/ppc-morphos/bin/as +gg/ppc-morphos/bin/ld +gg/ppc-morphos/bin/ld.bfd +gg/ppc-morphos/bin/nm +gg/ppc-morphos/bin/objcopy +gg/ppc-morphos/bin/objdump +gg/ppc-morphos/bin/ranlib +gg/ppc-morphos/bin/readelf +gg/ppc-morphos/bin/strip +gg/ppc-morphos/lib/ldscripts/morphos.x +gg/ppc-morphos/lib/ldscripts/morphos.xbn +gg/ppc-morphos/lib/ldscripts/morphos.xe +gg/ppc-morphos/lib/ldscripts/morphos.xn +gg/ppc-morphos/lib/ldscripts/morphos.xr +gg/ppc-morphos/lib/ldscripts/morphos.xu +gg/ppc-morphos/lib/ldscripts/morphos_baserel.x +gg/ppc-morphos/lib/ldscripts/morphos_baserel.xbn +gg/ppc-morphos/lib/ldscripts/morphos_baserel.xe +gg/ppc-morphos/lib/ldscripts/morphos_baserel.xn +gg/ppc-morphos/lib/ldscripts/morphos_baserel.xr +gg/ppc-morphos/lib/ldscripts/morphos_baserel.xu +gg/share/info/as.info +gg/share/info/bfd.info +gg/share/info/binutils.info +gg/share/info/gprof.info +gg/share/info/ld.info diff --git a/cross/ppc-morphos-binutils/distinfo b/cross/ppc-morphos-binutils/distinfo new file mode 100644 index 00000000000..3385b20b6bd --- /dev/null +++ b/cross/ppc-morphos-binutils/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2020/04/14 20:53:21 js Exp $ + +SHA1 (sdk-source-20191111.tar.xz) = 73188877bc83ddf7382f2dcef70c5bc9c631aec6 +RMD160 (sdk-source-20191111.tar.xz) = b8c01cc4e6caa897672f44426bc3e575abaeddc8 +SHA512 (sdk-source-20191111.tar.xz) = d201e1a6425d847ec5567939225db402524436398d7961180d2295e69ef8003edaf311df49e89ef0fbefe3a0f6f74935a6d132e58b496e3be1f6136a91aa6634 +Size (sdk-source-20191111.tar.xz) = 503342768 bytes |