Files
haikuports/dev-util/flexcat/patches/flexcat-2.18.patchset
2022-12-31 11:31:08 +01:00

55 lines
1.2 KiB
Plaintext

From f3c7259a78530151cb072a8c8044e5f2046973f7 Mon Sep 17 00:00:00 2001
From: PulkoMandy <pulkomandy@pulkomandy.tk>
Date: Sat, 31 Dec 2022 11:13:05 +0100
Subject: Basic Haiku support
diff --git a/src/Makefile b/src/Makefile
index 80163e5..620b24f 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -72,6 +72,10 @@ ifndef (OS)
ifeq ($(HOST), Linux)
OS = unix
else
+ ifeq ($(HOST), Haiku)
+ OS = unix
+ HOST = Linux
+ else
ifeq ($(HOST), Windows)
OS = mingw32
else
@@ -103,6 +107,7 @@ ifndef (OS)
endif
endif
endif
+ endif
endif
#############################################
@@ -400,6 +405,7 @@ ifeq ($(OS), unix)
OPTFLAGS = -O3 -fomit-frame-pointer
CFLAGS += -D_GNU_SOURCE
LDFLAGS =
+ LDLIBS += -liconv
SYSDEPOBJS = locale_other.o
diff --git a/src/version.h b/src/version.h
index 1dbec8b..17cf5dd 100644
--- a/src/version.h
+++ b/src/version.h
@@ -49,6 +49,9 @@
#elif defined(__AMIGA__)
#define SYSTEM "AmigaOS3"
#define SYSTEMSHORT "OS3"
+#elif defined(__haiku__)
+ #define SYSTEM "Haiku"
+ #define SYSTEMSHORT "haiku"
#elif defined(__linux__)
#define SYSTEM "Linux"
#define SYSTEMSHORT "linux"
--
2.37.3