summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2017-08-02 09:52:19 (GMT)
committerGitHub <noreply@github.com>2017-08-02 09:52:19 (GMT)
commitcf54c9aebaf853cf9d4bfb95bbd16b01215e6337 (patch)
treeaf2b5a708b987ac276bfd81345117b144d425446 /src
parent12eb6e88c63574ca3403f2cff8d66a651e057db3 (diff)
parente2eec03d6c14e706d48376cf0b9e517b3bb14f15 (diff)
downloadmxe-cf54c9aebaf853cf9d4bfb95bbd16b01215e6337.zip
mxe-cf54c9aebaf853cf9d4bfb95bbd16b01215e6337.tar.gz
mxe-cf54c9aebaf853cf9d4bfb95bbd16b01215e6337.tar.bz2
Merge pull request #1858 from tonytheodore/devil-eol
devil: use $(SED) instead of patch for EOL issues
Diffstat (limited to 'src')
-rw-r--r--src/devil-1-fixes.patch16
-rw-r--r--src/devil.mk2
2 files changed, 5 insertions, 13 deletions
diff --git a/src/devil-1-fixes.patch b/src/devil-1-fixes.patch
index 17b7263..d9e9764 100644
--- a/src/devil-1-fixes.patch
+++ b/src/devil-1-fixes.patch
@@ -57,20 +57,10 @@ From: Tony Theodore <tonyt@logyst.com>
Date: Thu, 20 Jul 2017 16:34:51 +1000
Subject: [PATCH] fix resource paths
+DevIL/src-IL/msvc/IL.rc has wierd EOL issues and patches don't
+apply - use $(SED) in build rule instead
+
-diff --git a/DevIL/src-IL/msvc/IL.rc b/DevIL/src-IL/msvc/IL.rc
-index 1111111..2222222 100644
---- a/DevIL/src-IL/msvc/IL.rc
-+++ b/DevIL/src-IL/msvc/IL.rc
-@@ -69,7 +69,7 @@ END
-
- // Icon with lowest ID value placed first to ensure application icon
- // remains consistent on all systems.
--IDI_ICON1 ICON "resources\\IL Logo.ico"
-+IDI_ICON1 ICON "./resources/IL Logo.ico"
-
- #ifdef APSTUDIO_INVOKED
- /////////////////////////////////////////////////////////////////////////////
diff --git a/DevIL/src-ILU/msvc/ILU.rc b/DevIL/src-ILU/msvc/ILU.rc
index 1111111..2222222 100644
--- a/DevIL/src-ILU/msvc/ILU.rc
diff --git a/src/devil.mk b/src/devil.mk
index 008b5a0..5bde494 100644
--- a/src/devil.mk
+++ b/src/devil.mk
@@ -10,6 +10,8 @@ $(PKG)_GH_CONF := DentonW/DevIL/master
$(PKG)_DEPS := gcc freeglut jasper jpeg lcms libmng libpng openexr sdl tiff zlib
define $(PKG)_BUILD
+ # for some reason, patching fails with EOL issues
+ $(SED) -i 's,resources\\\\,./resources/,' '$(SOURCE_DIR)/DevIL/src-IL/msvc/IL.rc'
cd '$(BUILD_DIR)' && $(TARGET)-cmake '$(SOURCE_DIR)/DevIL' \
-DIL_TESTS=OFF \
-DCMAKE_CXX_FLAGS="-D__STDC_LIMIT_MACROS"