aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2022-07-29 18:30:09 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2022-07-29 18:32:54 +0000
commitb8b58884a33e6d24294e8a987e18f47a5582e9af (patch)
treef781ae2fd006f71dc288111d97f774b38a7e55fe
parentfc7adf62a3fc137a4f644586119938e75549e757 (diff)
downloadports-b8b58884a33e6d24294e8a987e18f47a5582e9af.tar.gz
ports-b8b58884a33e6d24294e8a987e18f47a5582e9af.zip
databases/firebird40-server: port to powerpc64le
Add upstream patch to support powerpc64le.
-rw-r--r--databases/firebird40-server/Makefile5
-rw-r--r--databases/firebird40-server/distinfo4
-rw-r--r--databases/firebird40-server/files/patch-configure23
3 files changed, 30 insertions, 2 deletions
diff --git a/databases/firebird40-server/Makefile b/databases/firebird40-server/Makefile
index 60dac25b2b51..7295486c460c 100644
--- a/databases/firebird40-server/Makefile
+++ b/databases/firebird40-server/Makefile
@@ -7,6 +7,9 @@ PKGNAMESUFFIX?= ${PORTVERSION:R:S/.//}-server
DISTNAME= ${PORTNAME:S/f/F/}-${PORTVERSION}.2496-0
DIST_SUBDIR= ${PORTNAME}
+PATCH_SITES= https://github.com/FirebirdSQL/firebird/commit/
+PATCHFILES= 96931200340c8e0abcd3529b8e443d5ab62adfa5.patch:-p1
+
MAINTAINER= acm@FreeBSD.org
COMMENT?= Firebird-4 relational database (server)
@@ -63,7 +66,7 @@ LD= ${CC}
# Don't strip binary files
STRIP=
-ONLY_FOR_ARCHS= i386 amd64
+ONLY_FOR_ARCHS= i386 amd64 powerpc64le
# sparc64 fails due to lack of valid AtomicCounter implementation in
# src/common/classes/fb_atomic.h; presumably other tier-2s would as well
diff --git a/databases/firebird40-server/distinfo b/databases/firebird40-server/distinfo
index f106b999cca5..f6ab8f53d3ce 100644
--- a/databases/firebird40-server/distinfo
+++ b/databases/firebird40-server/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1624676837
+TIMESTAMP = 1659115441
SHA256 (firebird/Firebird-4.0.0.2496-0.tar.xz) = c155b8893e39d27c90f164d4865a7940749f47e971c7da6cf4828c980c708a57
SIZE (firebird/Firebird-4.0.0.2496-0.tar.xz) = 30522192
+SHA256 (firebird/96931200340c8e0abcd3529b8e443d5ab62adfa5.patch) = cf70a42c4d92b06ecf7a75131ed04dfbb471aba8c78eda66a3412f12b9084d58
+SIZE (firebird/96931200340c8e0abcd3529b8e443d5ab62adfa5.patch) = 4011
diff --git a/databases/firebird40-server/files/patch-configure b/databases/firebird40-server/files/patch-configure
new file mode 100644
index 000000000000..2cd41f32a632
--- /dev/null
+++ b/databases/firebird40-server/files/patch-configure
@@ -0,0 +1,23 @@
+--- configure.orig 2022-07-28 00:58:22 UTC
++++ configure
+@@ -2985,6 +2985,20 @@ $as_echo "#define AMD64 1" >>confdefs.h
+ SHRLIB_EXT=so
+ ;;
+
++ powerpc64le-*-freebsd*)
++ MAKEFILE_PREFIX=freebsd_powerpc64el
++ PLATFORM=FREEBSD
++ INSTALL_PREFIX=freebsd
++
++$as_echo "#define FREEBSD 1" >>confdefs.h
++
++
++$as_echo "#define PPC64EL 1" >>confdefs.h
++
++ EDITLINE_FLG=Y
++ SHRLIB_EXT=so
++ ;;
++
+ *-gentoo-freebsd*)
+ MAKEFILE_PREFIX=freebsd
+ PLATFORM=GENTOOFREEBSD