mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 20:20:06 +02:00
Create patch for CMakeFile.txt
This commit is contained in:
24
games-engines/gemrb/patches/gemrb_x86-0.8.1.patchset
Normal file
24
games-engines/gemrb/patches/gemrb_x86-0.8.1.patchset
Normal file
@@ -0,0 +1,24 @@
|
||||
From 837d5f413216f4136a86d6dadf4efba56a07c078 Mon Sep 17 00:00:00 2001
|
||||
From: DarkmatterVale <valetolpegin@gmail.com>
|
||||
Date: Sat, 13 Dec 2014 19:53:47 +0000
|
||||
Subject: Fix Haiku build
|
||||
|
||||
NFD_OpenDialog
|
||||
|
||||
Haiku needs libbsd to use posix_openpty
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index a54b37b..e81df43 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -369,6 +369,8 @@ MACRO(ADD_GEMRB_PLUGIN plugin_name)
|
||||
TARGET_LINK_LIBRARIES(${plugin_name} -shared-libgcc)
|
||||
elseif (CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
|
||||
TARGET_LINK_LIBRARIES(${plugin_name} -lc)
|
||||
+ elseif (CMAKE_SYSTEM_NAME STREQUAL "Haiku")
|
||||
+ TARGET_LINK_LIBRARIES(${plugin_name} -lbsd)
|
||||
endif (CMAKE_SYSTEM_NAME STREQUAL "NetBSD")
|
||||
INSTALL(TARGETS ${plugin_name} DESTINATION ${PLUGIN_DIR})
|
||||
endif (STATIC_LINK)
|
||||
--
|
||||
1.8.3.4
|
||||
Reference in New Issue
Block a user