mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-10 22:00:09 +02:00
85 lines
2.8 KiB
Plaintext
85 lines
2.8 KiB
Plaintext
From 24f6ed849feb13be03236c9bfbd42daca77f258a Mon Sep 17 00:00:00 2001
|
|
From: kikadf <kikadf.01@gmail.com>
|
|
Date: Fri, 31 May 2019 16:04:29 +0200
|
|
Subject: crypto++: add Haiku patchset
|
|
|
|
|
|
diff --git a/GNUmakefile b/GNUmakefile
|
|
index e7b7b3a..6123fd8 100755
|
|
--- a/GNUmakefile
|
|
+++ b/GNUmakefile
|
|
@@ -65,6 +65,7 @@ IS_DARWIN := $(shell echo "$(SYSTEMX)" | $(GREP) -i -c "Darwin")
|
|
IS_NETBSD := $(shell echo "$(SYSTEMX)" | $(GREP) -i -c "NetBSD")
|
|
IS_AIX := $(shell echo "$(SYSTEMX)" | $(GREP) -i -c "aix")
|
|
IS_SUN := $(shell echo "$(SYSTEMX)" | $(GREP) -i -c -E "SunOS|Solaris")
|
|
+IS_HAIKU := $(shell echo "$(SYSTEMX)" | $(GREP) -i -c "haiku")
|
|
|
|
SUN_COMPILER := $(shell $(CXX) -V 2>&1 | $(GREP) -i -c -E 'CC: (Sun|Studio)')
|
|
GCC_COMPILER := $(shell $(CXX) --version 2>/dev/null | $(GREP) -v -E '(llvm|clang)' | $(GREP) -i -c -E '(gcc|g\+\+)')
|
|
@@ -83,7 +84,7 @@ endif
|
|
|
|
# Enable shared object versioning for Linux and Solaris
|
|
HAS_SOLIB_VERSION ?= 0
|
|
-ifneq ($(IS_LINUX)$(IS_HURD)$(IS_SUN),000)
|
|
+ifneq ($(IS_LINUX)$(IS_HURD)$(IS_SUN)$(IS_HAIKU),0000)
|
|
HAS_SOLIB_VERSION := 1
|
|
endif
|
|
|
|
@@ -1006,7 +1007,7 @@ ifeq ($(HAS_SOLIB_VERSION),1)
|
|
# Different patchlevels and minors are compatible since 6.1
|
|
SOLIB_COMPAT_SUFFIX=.$(LIB_MAJOR)
|
|
# Linux uses -Wl,-soname
|
|
-ifneq ($(IS_LINUX)$(IS_HURD),00)
|
|
+ifneq ($(IS_LINUX)$(IS_HURD)$(IS_HAIKU),000)
|
|
# Linux uses full version suffix for shared library
|
|
SOLIB_VERSION_SUFFIX=.$(LIB_MAJOR).$(LIB_MINOR).$(LIB_PATCH)
|
|
SOLIB_FLAGS=-Wl,-soname,libcryptopp.so$(SOLIB_COMPAT_SUFFIX)
|
|
--
|
|
2.21.0
|
|
|
|
|
|
From 50bd4a3d094758251a53fc87629dfb732b3bb5c9 Mon Sep 17 00:00:00 2001
|
|
From: kikadf <kikadf.01@gmail.com>
|
|
Date: Sat, 1 Jun 2019 09:38:34 +0200
|
|
Subject: crypto++: Fix linking of lib
|
|
|
|
|
|
diff --git a/GNUmakefile b/GNUmakefile
|
|
index 6123fd8..99a5dc0 100755
|
|
--- a/GNUmakefile
|
|
+++ b/GNUmakefile
|
|
@@ -1257,6 +1257,7 @@ ifneq ($(wildcard libcryptopp.so$(SOLIB_VERSION_SUFFIX)),)
|
|
$(CHMOD) 0755 $(DESTDIR)$(LIBDIR)/libcryptopp.so$(SOLIB_VERSION_SUFFIX)
|
|
ifeq ($(HAS_SOLIB_VERSION),1)
|
|
-$(LN) libcryptopp.so$(SOLIB_VERSION_SUFFIX) $(DESTDIR)$(LIBDIR)/libcryptopp.so
|
|
+ -$(LN) libcryptopp.so$(SOLIB_VERSION_SUFFIX) $(DESTDIR)$(LIBDIR)/libcryptopp.so$(SOLIB_COMPAT_SUFFIX)
|
|
$(LDCONF) $(DESTDIR)$(LIBDIR)
|
|
endif
|
|
endif
|
|
--
|
|
2.21.0
|
|
|
|
|
|
From e6f17eefec2ebcb51b5c791db1baa1cdc2d6bb60 Mon Sep 17 00:00:00 2001
|
|
From: kikadf <kikadf.01@gmail.com>
|
|
Date: Fri, 7 Jun 2019 15:00:26 +0200
|
|
Subject: Haiku fix 2 config.h
|
|
|
|
|
|
diff --git a/config.h b/config.h
|
|
index 283c409..60573ad 100644
|
|
--- a/config.h
|
|
+++ b/config.h
|
|
@@ -928,7 +928,7 @@ NAMESPACE_END
|
|
#define CRYPTOPP_WIN32_AVAILABLE
|
|
#endif
|
|
|
|
-#if defined(__unix__) || defined(__MACH__) || defined(__NetBSD__) || defined(__sun)
|
|
+#if defined(__unix__) || defined(__MACH__) || defined(__NetBSD__) || defined(__sun) || defined(__HAIKU__)
|
|
#define CRYPTOPP_UNIX_AVAILABLE
|
|
#endif
|
|
|
|
--
|
|
2.21.0
|
|
|