HEX
Server: Apache/2.4.41 (FreeBSD) OpenSSL/1.0.2s mod_fcgid/2.3.9
System: FreeBSD salazo 12.0-RELEASE-p1303-ZFS hostBSD 12.0-RELEASE-p1303-ZFS DMR amd64
User: admin (1000)
PHP: 7.4.3
Disabled: NONE
Upload Files
File: /usr/ports/science/py-tensorflow/files/patch-tensorflow_lite_tools_make_Makefile
--- tensorflow/lite/tools/make/Makefile.orig	2019-10-14 21:08:43 UTC
+++ tensorflow/lite/tools/make/Makefile
@@ -16,12 +16,15 @@ else
 	ifeq ($(UNAME_S),Linux)
 		HOST_OS := linux
 	endif
+        ifeq ($(UNAME_S),FreeBSD)
+                HOST_OS := freebsd
+        endif
 	ifeq ($(UNAME_S),Darwin)
 		HOST_OS := osx
 	endif
 endif
 
-HOST_ARCH := $(shell if uname -m | grep -q i[345678]86; then echo x86_32; else uname -m; fi)
+HOST_ARCH := $(shell if uname -m | grep -q i[345678]86; then echo x86_32; elif uname -m | grep -q amd64; then echo x86_64; else uname -m; fi)
 
 # Override these on the make command line to target a specific architecture. For example:
 # make -f tensorflow/lite/tools/make/Makefile TARGET=rpi TARGET_ARCH=armv7l