Here are some bits to add arch defines to the ports infrastruture files for aarch64.
amd64 is the kernel arch (similar to macppc) aarch64 is the application arch (similiar to powerpc) Untested, but it is relatively straightforward. db/config.* already has information about armv8/arm64/aarch64. OK? Index: infrastructure/mk/arch-defines.mk =================================================================== RCS file: /cvs/openbsd/ports/infrastructure/mk/arch-defines.mk,v retrieving revision 1.30 diff -u -p -u -p -r1.30 arch-defines.mk --- infrastructure/mk/arch-defines.mk 1 Jan 2017 10:50:18 -0000 1.30 +++ infrastructure/mk/arch-defines.mk 23 Jan 2017 00:53:07 -0000 @@ -17,14 +17,15 @@ ALL_ARCHS = alpha amd64 arm aviion hppa # not all powerpc have apm(4), hence the use of macppc APM_ARCHS = amd64 i386 loongson macppc sparc64 BE_ARCHS = hppa m88k mips64 powerpc sparc64 -LE_ARCHS = alpha amd64 arm i386 mips64el sh -LP64_ARCHS = alpha amd64 sparc64 mips64 mips64el +LE_ARCHS = aarch64 alpha amd64 arm i386 mips64el sh +LP64_ARCHS = aarch64 alpha amd64 sparc64 mips64 mips64el +CLANG_ARCHS = aarch64 GCC4_ARCHS = alpha amd64 arm armv7 i386 hppa landisk loongson \ macppc mips64 mips64el octeon powerpc sgi sh socppc sparc64 GCC3_ARCHS = aviion luna88k m88k # XXX easier for ports that depend on mono MONO_ARCHS = amd64 i386 -LLVM_ARCHS = amd64 arm i386 powerpc mips64 mips64el sparc64 +LLVM_ARCHS = aarch64 amd64 arm i386 powerpc mips64 mips64el sparc64 OCAML_NATIVE_ARCHS = i386 amd64 OCAML_NATIVE_DYNLINK_ARCHS = i386 amd64 GO_ARCHS = amd64 i386 Index: infrastructure/package/gen-package-pages =================================================================== RCS file: /cvs/openbsd/ports/infrastructure/package/gen-package-pages,v retrieving revision 1.22 diff -u -p -u -p -r1.22 gen-package-pages --- infrastructure/package/gen-package-pages 1 Sep 2016 09:26:56 -0000 1.22 +++ infrastructure/package/gen-package-pages 23 Jan 2017 00:51:56 -0000 @@ -44,7 +44,7 @@ our $osrev = "4.6"; our $debug = 0; our $html; -my @arches = qw(alpha amd64 arm hppa i386 mips64 mips64el powerpc sh sparc64); +my @arches = qw(aarch64 alpha amd64 arm hppa i386 mips64 mips64el powerpc sh sparc64); my $pkgpath = "/home/ftp/pub/OpenBSD/$osrev/packages"; my $htmlbase = "html"; -- All men are mortal. Socrates was mortal. Therefore, all men are Socrates. -- Woody Allen