mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
surgescript, new recipe (#7001)
This commit is contained in:
32
dev-games/surgescript/patches/surgescript-0.5.5.patchset
Normal file
32
dev-games/surgescript/patches/surgescript-0.5.5.patchset
Normal file
@@ -0,0 +1,32 @@
|
||||
From c177556cc9b9fb0622426dcd9a5b80b2613ecc93 Mon Sep 17 00:00:00 2001
|
||||
From: begasus <begasus@gmail.com>
|
||||
Date: Fri, 24 Jun 2022 15:07:20 +0200
|
||||
Subject: surgescript, fix install path for the headers
|
||||
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index e65971e..65ba7d0 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -29,6 +29,7 @@ option(WANT_STATIC "Build SurgeScript as a static library" ON)
|
||||
option(WANT_EXECUTABLE "Build the surgescript executable" ON)
|
||||
set(LIB_SUFFIX "" CACHE STRING "Suffix to append to 'lib' directories, e.g., '64'") # libs must be installed to "lib64" in some systems
|
||||
set(PKGCONFIG_PATH "lib${LIB_SUFFIX}/pkgconfig" CACHE PATH "Destination folder of the pkg-config (.pc) file")
|
||||
+set(INCLUDE_PATH "include" CACHE PATH "Destination for the header files")
|
||||
if(UNIX)
|
||||
set(METAINFO_PATH "share/metainfo" CACHE PATH "Destination folder of the metainfo file")
|
||||
set(ICON_PATH "share/pixmaps" CACHE PATH "Destination folder of the icon file")
|
||||
@@ -155,8 +156,8 @@ if(WANT_STATIC)
|
||||
endif()
|
||||
|
||||
# Install headers
|
||||
-install(DIRECTORY src/ DESTINATION include FILES_MATCHING PATTERN "*.h")
|
||||
-install(DIRECTORY "${CMAKE_BINARY_DIR}/src/" DESTINATION include FILES_MATCHING PATTERN "*.h")
|
||||
+install(DIRECTORY src/ DESTINATION ${INCLUDE_PATH} FILES_MATCHING PATTERN "*.h")
|
||||
+install(DIRECTORY "${CMAKE_BINARY_DIR}/src/" DESTINATION ${INCLUDE_PATH} FILES_MATCHING PATTERN "*.h")
|
||||
|
||||
# Build the executable
|
||||
if(WANT_EXECUTABLE)
|
||||
--
|
||||
2.36.1
|
||||
|
||||
Reference in New Issue
Block a user