aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2021-10-09 21:27:27 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2021-10-09 21:27:27 +0000
commit7d26f0f53854a0d2b3b03c89742fd73d574c25e6 (patch)
tree7ccb56510ccdfa6dd211c815fee3569f4b226dbf
parent276eed13b6c33bdcf7f1c115f57388371718d0bc (diff)
downloadports-7d26f0f53854a0d2b3b03c89742fd73d574c25e6.tar.gz
ports-7d26f0f53854a0d2b3b03c89742fd73d574c25e6.zip
archivers/snappy-java: fix build on powerpc64
-rw-r--r--archivers/snappy-java/Makefile2
-rw-r--r--archivers/snappy-java/files/patch-Makefile.common11
2 files changed, 11 insertions, 2 deletions
diff --git a/archivers/snappy-java/Makefile b/archivers/snappy-java/Makefile
index 0199eee5e544..a880e62cb419 100644
--- a/archivers/snappy-java/Makefile
+++ b/archivers/snappy-java/Makefile
@@ -66,6 +66,8 @@ PLATFORM_DIR_SUFFIX= FreeBSD-x86_64
PLATFORM_DIR_SUFFIX= FreeBSD-x86
. elif ${ARCH} == aarch64
PLATFORM_DIR_SUFFIX= FreeBSD-aarch64
+. elif ${ARCH} == powerpc64
+PLATFORM_DIR_SUFFIX= FreeBSD-ppc64
. else
PLATFORM_DIR_SUFFIX= Default
. endif
diff --git a/archivers/snappy-java/files/patch-Makefile.common b/archivers/snappy-java/files/patch-Makefile.common
index 64aca9999670..cc0feacdc828 100644
--- a/archivers/snappy-java/files/patch-Makefile.common
+++ b/archivers/snappy-java/files/patch-Makefile.common
@@ -5,11 +5,11 @@
# os=Default is meant to be generic unix/linux
-known_os_archs := Linux-x86 Linux-x86_64 Linux-arm Linux-armv6 Linux-armv7 Linux-android-arm Linux-aarch64 Linux-ppc Linux-ppc64 Linux-ppc64le Linux-s390 Linux-s390x Mac-x86 Mac-x86_64 FreeBSD-x86_64 Windows-x86 Windows-x86_64 SunOS-x86 SunOS-sparc SunOS-x86_64 AIX-ppc AIX-ppc64
-+known_os_archs := Linux-x86 Linux-x86_64 Linux-arm Linux-armv6 Linux-armv7 Linux-android-arm Linux-aarch64 Linux-ppc Linux-ppc64 Linux-ppc64le Linux-s390 Linux-s390x Mac-x86 Mac-x86_64 FreeBSD-aarch64 FreeBSD-x86 FreeBSD-x86_64 Windows-x86 Windows-x86_64 SunOS-x86 SunOS-sparc SunOS-x86_64 AIX-ppc AIX-ppc64
++known_os_archs := Linux-x86 Linux-x86_64 Linux-arm Linux-armv6 Linux-armv7 Linux-android-arm Linux-aarch64 Linux-ppc Linux-ppc64 Linux-ppc64le Linux-s390 Linux-s390x Mac-x86 Mac-x86_64 FreeBSD-aarch64 FreeBSD-ppc64 FreeBSD-x86 FreeBSD-x86_64 Windows-x86 Windows-x86_64 SunOS-x86 SunOS-sparc SunOS-x86_64 AIX-ppc AIX-ppc64
os_arch := $(OS_NAME)-$(OS_ARCH)
IBM_JDK_7 := $(findstring IBM, $(shell $(JAVA) -version 2>&1 | grep IBM | grep "JRE 1.7"))
-@@ -249,6 +249,20 @@ Mac-x86_64_CXXFLAGS := -Ilib/inc_mac -I$(JAVA_HOME)/i
+@@ -249,6 +249,27 @@ Mac-x86_64_CXXFLAGS := -Ilib/inc_mac -I$(JAVA_HOME)/i
Mac-x86_64_LINKFLAGS := -dynamiclib
Mac-x86_64_LIBNAME := libsnappyjava.jnilib
Mac-x86_64_SNAPPY_FLAGS :=
@@ -21,6 +21,13 @@
+FreeBSD-aarch64_LIBNAME := libsnappyjava.so
+FreeBSD-aarch64_SNAPPY_FLAGS :=
+
++FreeBSD-ppc64_CXX := $(CROSS_PREFIX)g++
++FreeBSD-ppc64_STRIP := $(CROSS_PREFIX)strip
++FreeBSD-ppc64_CXXFLAGS := -I$(JAVA_HOME)/include -Ilib/inc_mac -O2 -fPIC -fvisibility=hidden
++FreeBSD-ppc64_LINKFLAGS := -shared -static-libgcc
++FreeBSD-ppc64_LIBNAME := libsnappyjava.so
++FreeBSD-ppc64_SNAPPY_FLAGS :=
++
+FreeBSD-x86_CXX := $(CROSS_PREFIX)g++
+FreeBSD-x86_STRIP := $(CROSS_PREFIX)strip
+FreeBSD-x86_CXXFLAGS := -I$(JAVA_HOME)/include -Ilib/inc_mac -O2 -fPIC -fvisibility=hidden