pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
(emulators/Retro68) new package
Module Name: pkgsrc-wip
Committed By: Makoto Fujiwara <makoto%ki.nu@localhost>
Pushed By: mef
Date: Sun Jan 28 13:49:30 2024 +0900
Changeset: 74b593dc943d1c621ebda314fd37ce5ff472b1f6
Added Files:
Retro68/DESCR
Retro68/Makefile
Retro68/PLIST
Retro68/TODO
Retro68/distinfo
Retro68/patches/patch-libelf_src_config.h
Log Message:
(emulators/Retro68) new package
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=74b593dc943d1c621ebda314fd37ce5ff472b1f6
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Retro68/DESCR | 23 +++++++
Retro68/Makefile | 103 ++++++++++++++++++++++++++++++
Retro68/PLIST | 4 ++
Retro68/TODO | 12 ++++
Retro68/distinfo | 6 ++
Retro68/patches/patch-libelf_src_config.h | 19 ++++++
6 files changed, 167 insertions(+)
diffs:
diff --git a/Retro68/DESCR b/Retro68/DESCR
new file mode 100644
index 0000000000..1db115e145
--- /dev/null
+++ b/Retro68/DESCR
@@ -0,0 +1,23 @@
+todo: Adjust the following lines from README.md
+
+Retro68
+=======
+
+A GCC-based cross-compilation environment for 68K and PowerPC Macs.
+Why? Because there is no decent C++17 Compiler targeting Apple's System 6.
+If that's not a sufficient reason for you, I'm sure you will find
+something more useful elsewhere.
+
+If you are crazy enough to try it out, please say hello at
+wolfgang.thaller%gmx.net@localhost.
+
+Installing/Building
+-------------------
+
+### Prerequisites
+
+- Linux, Mac OS X or Windows (via Cygwin)
+- boost
+- CMake 3.9 or later
+- GCC dependencies: GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+
+...
diff --git a/Retro68/Makefile b/Retro68/Makefile
new file mode 100644
index 0000000000..e5b343a8c5
--- /dev/null
+++ b/Retro68/Makefile
@@ -0,0 +1,103 @@
+# $NetBSD$
+
+GITHUB_TAG= refs/tags/v${PKGVERSION_NOREV}
+DISTNAME= Retro68-2019.8.2
+CATEGORIES= emulators
+MASTER_SITES= ${MASTER_SITE_GITHUB:=autc04/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/autc04/Retro68/
+COMMENT= M68k emulation
+#LICENSE= # TODO: (see mk/license.mk)
+
+USE_TOOLS+= pkg-config
+USE_PKGLOCALEDIR= yes
+USE_LANGUAGES= c c++ fortran
+
+WRKSRC= ${WRKDIR}/${DISTNAME}
+CPPFLAGS+= -Iinclude/libhfs
+
+# check-portability
+SUBST_CLASSES= equal-test
+SUBST_STAGE.equal-test= pre-configure
+SUBST_SED.equal-test= '-e s," == "," = " ,'
+SUBST_FILES.equal-test= \
+ binutils/binutils/testsuite/binutils-all/dlltool.exp \
+ binutils/binutils/testsuite/binutils-all/objcopy.exp \
+ binutils/gas/testsuite/lib/gas-defs.exp \
+ binutils/ld/pe-dll.c \
+ binutils/ld/scripttempl/elfarc.sc \
+ binutils/ld/scripttempl/elfarcv2.sc \
+ binutils/ld/testsuite/ChangeLog-2012 \
+ binutils/ld/testsuite/ld-bootstrap/bootstrap.exp \
+ binutils/ld/testsuite/ld-elf/binutils.exp \
+ binutils/ld/testsuite/ld-x86-64/x86-64.exp \
+ binutils/ld/testsuite/lib/ld-lib.exp \
+ binutils/opcodes/bfin-dis.c \
+ gcc/contrib/ChangeLog \
+ gcc/contrib/dg-extract-results.sh \
+ gcc/contrib/download_prerequisites \
+ gcc/contrib/reghunt/bin/reg-hunt \
+ gcc/contrib/repro_fail \
+ gcc/gcc/ada/repinfo.adb \
+ gcc/gcc/ada/xeinfo.adb \
+ gcc/gcc/d/dmd/hdrgen.c \
+ gcc/gcc/genattrtab.c \
+ gcc/gcc/go/gofrontend/expressions.cc \
+ gcc/gcc/testsuite/gcc.dg/pr28685-1.c \
+ gcc/gcc/testsuite/gcc.dg/tree-ssa/forwprop-15.c \
+ gcc/gcc/testsuite/gcc.target/s390/s390.exp \
+ gcc/gcc/testsuite/gcc.test-framework/gen_directive_tests \
+ gcc/gcc/testsuite/gdc.test/compilable/fix17335.d \
+ gcc/gcc/testsuite/gdc.test/compilable/interpret3.d \
+ gcc/gcc/testsuite/gdc.test/runnable/constfold.d \
+ gcc/gcc/testsuite/gdc.test/runnable/template4.d \
+ gcc/gcc/testsuite/gdc.test/runnable/test12.d \
+ gcc/gcc/testsuite/go.test/go-test.exp \
+ gcc/gcc/testsuite/go.test/test/fixedbugs/bug425.go \
+ gcc/gcc/testsuite/jit.dg/jit.exp \
+ gcc/gcc/testsuite/lib/asan-dg.exp \
+ gcc/gcc/testsuite/lib/gcc-defs.exp \
+ gcc/gcc/testsuite/lib/gcc-dg.exp \
+ gcc/gcc/testsuite/lib/objc.exp \
+ gcc/gcc/testsuite/lib/target-supports.exp \
+ gcc/libatomic/testsuite/lib/libatomic.exp \
+ gcc/libffi/testsuite/lib/libffi.exp \
+ gcc/libgo/go/go/constant/value_test.go \
+ gcc/libgo/go/go/types/eval_test.go \
+ gcc/libgo/go/html/template/js.go \
+ gcc/libgo/go/html/template/js_test.go \
+ gcc/libgo/go/net/http/h2_bundle.go \
+ gcc/libgo/go/runtime/runtime_test.go \
+ gcc/libgo/mksysinfo.sh \
+ gcc/libgomp/testsuite/lib/libgomp.exp \
+ gcc/libitm/testsuite/lib/libitm.exp \
+ gcc/libphobos/libdruntime/core/time.d \
+ gcc/libphobos/src/std/conv.d \
+ gcc/libphobos/src/std/regex/internal/kickstart.d \
+ gcc/libphobos/src/std/variant.d \
+ gcc/libstdc++-v3/doc/html/manual/appendix_porting.html \
+ gcc/libstdc++-v3/doc/xml/manual/build_hacking.xml \
+ gcc/libstdc++-v3/include/bits/locale_facets.tcc \
+ gcc/libstdc++-v3/testsuite/22_locale/collate/compare/char/2.cc \
+ gcc/libstdc++-v3/testsuite/22_locale/collate/compare/wchar_t/2.cc \
+ gcc/libstdc++-v3/testsuite/22_locale/collate/hash/char/2.cc \
+ gcc/libstdc++-v3/testsuite/22_locale/collate/hash/wchar_t/2.cc \
+ gcc/libstdc++-v3/testsuite/22_locale/collate/transform/char/2.cc \
+ gcc/libstdc++-v3/testsuite/22_locale/collate/transform/wchar_t/2.cc \
+ gcc/libstdc++-v3/testsuite/22_locale/collate_byname/named_equivalence.cc \
+ gcc/libstdc++-v3/testsuite/lib/libstdc++.exp \
+ gcc/libvtv/testsuite/lib/libvtv.exp
+
+
+
+PKGCONFIG_OVERRIDE+= binutils/zlib/contrib/minizip/minizip.pc.in
+PKGCONFIG_OVERRIDE+= binutils/zlib/zlib.pc.in
+PKGCONFIG_OVERRIDE+= gcc/libffi/libffi.pc.in
+PKGCONFIG_OVERRIDE+= gcc/zlib/contrib/minizip/minizip.pc.in
+PKGCONFIG_OVERRIDE+= gcc/zlib/zlib.pc.in
+
+.include "../../devel/cmake/build.mk"
+.include "../../devel/boost-libs/buildlink3.mk"
+.include "../../devel/libhfs/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/Retro68/PLIST b/Retro68/PLIST
new file mode 100644
index 0000000000..92ba51a2d7
--- /dev/null
+++ b/Retro68/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD$
+@comment TODO: to fill this file with the file listing:
+@comment TODO: 1. run "/usr/bin/make package"
+@comment TODO: 2. run "/usr/bin/make print-PLIST"
diff --git a/Retro68/TODO b/Retro68/TODO
new file mode 100644
index 0000000000..aacae1a649
--- /dev/null
+++ b/Retro68/TODO
@@ -0,0 +1,12 @@
+In file included from /usr/include/amd64/endian.h:3,
+ from /usr/include/sys/types.h:98,
+ from /tmp/wip/Retro68/work/Retro68-2019.8.2/libelf/include/libelf.h:33,
+ from /tmp/wip/Retro68/work/Retro68-2019.8.2/libelf/src/elf32_getchdr.c:33:
+/usr/include/sys/endian.h:179: note: this is the location of the previous definition
+ 179 | #define le64toh(x) htole64(x)
+ |
+/tmp/wip/Retro68/work/Retro68-2019.8.2/ResourceFiles/ResourceFile.cc:13:10: fatal error: hfs.h: No such file or directory
+ 13 | #include "hfs.h"
+ | ^~~~~~~
+compilation terminated.
+
diff --git a/Retro68/distinfo b/Retro68/distinfo
new file mode 100644
index 0000000000..2ad9f76ca6
--- /dev/null
+++ b/Retro68/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (Retro68-2019.8.2.tar.gz) = 1d81caea9babe5882b9bf1549cc84c0c9ada3b2bccf2b47a218df22b23397da8
+SHA512 (Retro68-2019.8.2.tar.gz) = 1d70e6248f915d6947ea95ea7f47d903b94115f582612ecfe4392692f26c855c77b0980088388f4ea2d3d2f11e943b4a568037611aa489b9556ae04751e71ccf
+Size (Retro68-2019.8.2.tar.gz) = 175241148 bytes
+SHA1 (patch-libelf_src_config.h) = 1a5d86716b8aaf16daaa1e17612b691c0afa32cb
diff --git a/Retro68/patches/patch-libelf_src_config.h b/Retro68/patches/patch-libelf_src_config.h
new file mode 100644
index 0000000000..bda719a0d4
--- /dev/null
+++ b/Retro68/patches/patch-libelf_src_config.h
@@ -0,0 +1,19 @@
+$NetBSD$
+
+Endianness
+
+--- libelf/src/config.h.orig 2019-08-24 19:56:10.000000000 +0900
++++ libelf/src/config.h 2024-01-28 08:22:01.334880989 +0900
+@@ -29,6 +29,12 @@
+ #ifndef EU_CONFIG_H
+ #define EU_CONFIG_H 1
+
++#if defined(__NetBSD__)
++#define __BYTE_ORDER BYTE_ORDER
++#define __LITTLE_ENDIAN LITTLE_ENDIAN
++#define __BIG_ENDIAN BIG_ENDIAN
++#endif
++
+ #ifdef USE_LOCKS
+ # include <pthread.h>
+ # include <assert.h>
Home |
Main Index |
Thread Index |
Old Index