mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 15:08:57 +02:00
57
app-text/mupdf/patches/mupdf-1.19.1.patchset
Normal file
57
app-text/mupdf/patches/mupdf-1.19.1.patchset
Normal file
@@ -0,0 +1,57 @@
|
||||
From 81cdd3449213f9265de81b1f18b3e414683d5968 Mon Sep 17 00:00:00 2001
|
||||
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
||||
Date: Thu, 14 Apr 2022 14:06:41 +0100
|
||||
Subject: Add Haiku support to Makerules
|
||||
|
||||
|
||||
diff --git a/Makerules b/Makerules
|
||||
index 0fdaecb..7a4d6d2 100644
|
||||
--- a/Makerules
|
||||
+++ b/Makerules
|
||||
@@ -155,6 +155,44 @@ else ifeq ($(OS),MACOS)
|
||||
endif
|
||||
endif
|
||||
|
||||
+else ifeq ($(OS),Haiku)
|
||||
+ HAVE_OBJCOPY := yes
|
||||
+
|
||||
+ ifeq ($(shell pkg-config --exists freetype2 && echo yes),yes)
|
||||
+ SYS_FREETYPE_CFLAGS := $(shell pkg-config --cflags freetype2)
|
||||
+ SYS_FREETYPE_LIBS := $(shell pkg-config --libs freetype2)
|
||||
+ endif
|
||||
+ ifeq ($(shell pkg-config --exists harfbuzz && echo yes),yes)
|
||||
+ SYS_HARFBUZZ_CFLAGS := $(shell pkg-config --cflags harfbuzz)
|
||||
+ SYS_HARFBUZZ_LIBS := $(shell pkg-config --libs harfbuzz)
|
||||
+ endif
|
||||
+ ifeq ($(shell pkg-config --exists libjpeg && echo yes),yes)
|
||||
+ SYS_LIBJPEG_CFLAGS := $(shell pkg-config --cflags libjpeg)
|
||||
+ SYS_LIBJPEG_LIBS := $(shell pkg-config --libs libjpeg)
|
||||
+ endif
|
||||
+ ifeq ($(shell pkg-config --exists libopenjp2 && echo yes),yes)
|
||||
+ SYS_OPENJPEG_CFLAGS := $(shell pkg-config --cflags libopenjp2)
|
||||
+ SYS_OPENJPEG_LIBS := $(shell pkg-config --libs libopenjp2)
|
||||
+ endif
|
||||
+ ifeq ($(shell pkg-config --exists zlib && echo yes),yes)
|
||||
+ SYS_ZLIB_CFLAGS := $(shell pkg-config --cflags zlib)
|
||||
+ SYS_ZLIB_LIBS := $(shell pkg-config --libs zlib)
|
||||
+ endif
|
||||
+
|
||||
+ HAVE_SYS_CURL := $(shell pkg-config --exists libcurl && echo yes)
|
||||
+ ifeq ($(HAVE_SYS_CURL),yes)
|
||||
+ SYS_CURL_CFLAGS := $(shell pkg-config --cflags libcurl)
|
||||
+ SYS_CURL_LIBS := $(shell pkg-config --libs libcurl)
|
||||
+ endif
|
||||
+
|
||||
+ HAVE_LIBCRYPTO := $(shell pkg-config --exists 'libcrypto >= 1.1.0' && echo yes)
|
||||
+ ifeq ($(HAVE_LIBCRYPTO),yes)
|
||||
+ LIBCRYPTO_CFLAGS := $(shell pkg-config --cflags libcrypto) -DHAVE_LIBCRYPTO
|
||||
+ LIBCRYPTO_LIBS := $(shell pkg-config --libs libcrypto)
|
||||
+ endif
|
||||
+
|
||||
+ HAVE_PTHREAD := yes
|
||||
+
|
||||
else ifeq ($(OS),Linux)
|
||||
HAVE_OBJCOPY := yes
|
||||
|
||||
--
|
||||
2.30.2
|
||||
Reference in New Issue
Block a user