Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Pierre Kim
OpenRCT2-mod
Commits
189c6bb0
Commit
189c6bb0
authored
9 years ago
by
Michał Janiszewski
Browse files
Options
Download
Email Patches
Plain Diff
travis fixes
parent
6b72f9a5
develop
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.travis.yml
+2
-0
.travis.yml
CMakeLists.txt
+1
-1
CMakeLists.txt
CMakeLists_mingw.txt
+1
-1
CMakeLists_mingw.txt
install.sh
+22
-12
install.sh
with
26 additions
and
14 deletions
+26
-14
.travis.yml
+
2
-
0
View file @
189c6bb0
...
...
@@ -15,3 +15,5 @@ cache:
directories
:
-
cache
apt
:
true
sudo
:
required
This diff is collapsed.
Click to expand it.
CMakeLists.txt
+
1
-
1
View file @
189c6bb0
...
...
@@ -48,7 +48,7 @@ if (UNIX)
# find and include SDL2
INCLUDE
(
FindPkgConfig
)
PKG_
SEARCH
_MODULE
(
SDL2 REQUIRED sdl2
)
PKG_
CHECK
_MODULE
S
(
SDL2 REQUIRED sdl2
SDL2_ttf
)
INCLUDE_DIRECTORIES
(
${
SDL2_INCLUDE_DIRS
}
)
endif
(
UNIX
)
...
...
This diff is collapsed.
Click to expand it.
CMakeLists_mingw.txt
+
1
-
1
View file @
189c6bb0
...
...
@@ -20,7 +20,7 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
# find and include SDL2
INCLUDE(FindPkgConfig)
PKG_
SEARCH
_MODULE(SDL2 REQUIRED sdl2)
PKG_
CHECK
_MODULE
S
(SDL2 REQUIRED sdl2
SDL2_ttf
)
INCLUDE_DIRECTORIES(${SDL2_INCLUDE_DIRS})
if(APPLE)
...
...
This diff is collapsed.
Click to expand it.
install.sh
+
22
-
12
View file @
189c6bb0
#!/bin/bash
SDL2_PV
=
2.0.3
SDL2_TTF_PV
=
2.0.12
cachedir
=
.cache
mkdir
-p
$cachedir
...
...
@@ -76,33 +77,41 @@ elif [[ `uname` == "Linux" ]]; then
sudo
apt-get
install
-y
--force-yes
binutils-mingw-w64-i686 gcc-mingw-w64-i686 g++-mingw-w64-i686 cmake
fi
if
[[
!
-f
$cachedir
/SDL2-devel-
${
SDL2_PV
}
-mingw
.tar.gz
]]
;
then
wget http://libsdl.org/release/SDL2-devel-
${
SDL2_PV
}
-mingw
.tar.gz
--output-document
$cachedir
/SDL2-devel-
${
SDL2_PV
}
-mingw
.tar.gz
;
if
[[
!
-f
$cachedir
/SDL2-devel-
${
SDL2_PV
}
-mingw
.tar.gz
]]
;
then
wget http://libsdl.org/release/SDL2-devel-
${
SDL2_PV
}
-mingw
.tar.gz
--output-document
$cachedir
/SDL2-devel-
${
SDL2_PV
}
-mingw
.tar.gz
;
fi
if
[[
!
-f
$cachedir
/SDL2_ttf-devel-
${
SDL2_TTF_PV
}
-mingw
.tar.gz
]]
;
then
wget https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-devel-
${
SDL2_TTF_PV
}
-mingw
.tar.gz
--output-document
$cachedir
/SDL2_ttf-devel-
${
SDL2_TTF_PV
}
-mingw
.tar.gz
;
fi
if
[[
!
-d
$cachedir
/SDL2-
${
SDL2_PV
}
]]
;
then
pushd
$cachedir
tar
-xzf
SDL2-devel-
${
SDL2_PV
}
-mingw
.tar.gz
pushd
$cachedir
tar
-xzf
SDL2-devel-
${
SDL2_PV
}
-mingw
.tar.gz
popd
fi
if
[[
!
-d
$cachedir
/SDL2_ttf-
${
SDL2_TTF_PV
}
]]
;
then
pushd
$cachedir
tar
-xzf
SDL2_ttf-devel-
${
SDL2_TTF_PV
}
-mingw
.tar.gz
popd
fi
if
[[
!
-f
$cachedir
/orctlibs.zip
]]
;
then
curl https://download.openrct2.website/dev/lib/mingw
-o
$cachedir
/orctlibs.zip
;
if
[[
!
-f
$cachedir
/orctlibs.zip
]]
;
then
curl https://download.openrct2.website/dev/lib/mingw
-o
$cachedir
/orctlibs.zip
;
fi
if
[[
!
-d
$cachedir
/orctlibs
]]
;
then
mkdir
-p
$cachedir
/orctlibs
pushd
$cachedir
/orctlibs
unzip
-uaq
../orctlibs.zip
unzip
-uaq
../orctlibs.zip
popd
fi
# Apply platform patch
mingw_patch
=
libsdl2-mingw-2.0.3-fix-platform-detection-for-mingw.patch
if
[[
!
-f
$cachedir
/
$mingw_patch
]]
;
then
wget
"https://github.com/anyc/anyc-overlay/raw/master/media-libs/libsdl2-mingw/files/
$mingw_patch
"
--output-document
$cachedir
/
$mingw_patch
;
if
[[
!
-f
$cachedir
/
$mingw_patch
]]
;
then
wget
"https://github.com/anyc/anyc-overlay/raw/master/media-libs/libsdl2-mingw/files/
$mingw_patch
"
--output-document
$cachedir
/
$mingw_patch
;
# XXX not sure how to make this idempotent.
pushd
$cachedir
/SDL2-
${
SDL2_PV
}
/i686-w64-mingw32/include/SDL2/
pushd
$cachedir
/SDL2-
${
SDL2_PV
}
/i686-w64-mingw32/include/SDL2/
echo
"Applying patch."
patch
-p2
< ../../../../
$mingw_patch
patch
-p2
< ../../../../
$mingw_patch
popd
fi
...
...
@@ -111,12 +120,13 @@ if [[ ! -d /usr/local/cross-tools ]]; then
fi
if
[[
!
-d
/usr/local/cross-tools/i686-w64-mingw32
]]
;
then
sudo cp
-r
$cachedir
/SDL2-
${
SDL2_PV
}
/i686-w64-mingw32 /usr/local/cross-tools/
sudo cp
-r
$cachedir
/SDL2_ttf-
${
SDL2_TTF_PV
}
/i686-w64-mingw32 /usr/local/cross-tools/
fi
if
[[
!
-d
/usr/local/cross-tools/orctlibs
]]
;
then
sudo mkdir
-p
/usr/local/cross-tools/orctlibs
mkdir
-p
lib
sudo cp
-rf
$cachedir
/orctlibs/glob/
*
/usr/local/cross-tools/orctlibs/.
cp
-rf
$cachedir
/orctlibs/local/
*
./lib/.
cp
-rf
$cachedir
/orctlibs/local/
*
./lib/.
fi
if
[[
!
-f
$cachedir
/i686-w64-mingw32-pkg-config
]]
;
then
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help