void-packages/srcpkgs/lmms/patches/cross.patch
John e713af1eda
lmms: update to 1.2.0rc5.
resolves #12793

Closes: #12876 [via git-merge-pr]
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
2018-04-08 14:50:53 +02:00

28 lines
1.1 KiB
Diff

--- CMakeLists.txt 2017-12-19 18:24:15.000000000 +0100
+++ - 2018-03-26 13:34:55.333893020 +0200
@@ -498,12 +498,12 @@
LIST(SORT LMMS_INCLUDES)
# embedded resources stuff
-IF(WIN32 OR WIN64)
+IF(WIN32 OR WIN64 OR CMAKE_CROSSCOMPILING)
# compile buildtools native
SET(BIN2RES_CPP "${CMAKE_SOURCE_DIR}/buildtools/bin2res.cpp")
SET(BIN2RES "${CMAKE_BINARY_DIR}/bin2res")
ADD_CUSTOM_TARGET(bin2res COMMAND g++ "\"${BIN2RES_CPP}\"" -o "\"${BIN2RES}\"" DEPENDS "${BIN2RES_CPP}")
-ELSE(WIN32 OR WIN64)
+ELSE(WIN32 OR WIN64 OR CMAKE_CROSSCOMPILING)
ADD_EXECUTABLE(bin2res buildtools/bin2res.cpp)
GET_TARGET_PROPERTY(BIN2RES bin2res LOCATION)
ENDIF(WIN32 OR WIN64)
--- CMakeLists.txt 2018-03-26 13:35:11.477353707 +0200
+++ - 2018-03-26 13:36:43.608724836 +0200
@@ -506,7 +506,7 @@
ELSE(WIN32 OR WIN64 OR CMAKE_CROSSCOMPILING)
ADD_EXECUTABLE(bin2res buildtools/bin2res.cpp)
GET_TARGET_PROPERTY(BIN2RES bin2res LOCATION)
-ENDIF(WIN32 OR WIN64)
+ENDIF(WIN32 OR WIN64 OR CMAKE_CROSSCOMPILING)
# we somehow have to make LMMS-binary depend on MOC-files
ADD_FILE_DEPENDENCIES("${CMAKE_BINARY_DIR}/lmmsconfig.h")