Commit abb81673 authored by Rye Mutt's avatar Rye Mutt 🍞
Browse files

Get linux building

parent 306fedf7
<?xml version="1.0" ?>
<llsd>
<map>
<key>installables</key>
<map>
<key>libpng</key>
<map>
<key>copyright</key>
<string>Copyright (c) 1995-2019 The PNG Reference Library Authors</string>
<key>description</key>
<string>PNG Reference library</string>
<key>license</key>
<string>libpng</string>
<key>license_file</key>
<string>LICENSES/libpng.txt</string>
<key>name</key>
<string>libpng</string>
<key>platforms</key>
<map>
<key>linux64</key>
<map>
<key>archive</key>
<map>
<key>hash</key>
<string>95f4fee252feb17168597f45f0f0b68d</string>
<key>hash_algorithm</key>
<string>md5</string>
<key>url</key>
<string>https://pkg.alchemyviewer.org/repository/autobuild-external/libpng/linux64/debian10/libpng-1.6.37.202201824-linux64-202201824.tar.bz2</string>
</map>
<key>name</key>
<string>linux64</string>
</map>
</map>
<key>version</key>
<string>1.6.37.202201824</string>
</map>
<key>zlib</key>
<map>
<key>copyright</key>
<string>Copyright (C) 1995-2017 Jean-loup Gailly and Mark Adler</string>
<key>description</key>
<string>Zlib Data Compression Library</string>
<key>license</key>
<string>zlib</string>
<key>license_file</key>
<string>LICENSES/zlib.txt</string>
<key>name</key>
<string>zlib</string>
<key>platforms</key>
<map>
<key>linux64</key>
<map>
<key>archive</key>
<map>
<key>hash</key>
<string>5d7866be22eaca6d38cfd0bb4e411fb0</string>
<key>hash_algorithm</key>
<string>md5</string>
<key>url</key>
<string>https://pkg.alchemyviewer.org/repository/autobuild-external/zlib/linux64/debian10/zlib-1.2.11.202200500-linux64-202200500.tar.bz2</string>
</map>
<key>name</key>
<string>linux64</string>
</map>
</map>
<key>version</key>
<string>1.2.11.202200500</string>
</map>
</map>
<key>package_description</key>
<map>
<key>copyright</key>
<string>Copyright (C) 1997-2012 Sam Lantinga</string>
<string>Copyright (C) 1997-2020 Sam Lantinga (slouken@libsdl.org)</string>
<key>description</key>
<string>Simple DirectMedia Layer is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer.</string>
<key>license</key>
......@@ -105,8 +38,7 @@
</map>
<key>manifest</key>
<array>
<string>include/SDL/*</string>
<string>docs/SDL/README.Linden</string>
<string>include/SDL2/*</string>
</array>
<key>name</key>
<string>common</string>
......@@ -128,8 +60,8 @@
</map>
<key>manifest</key>
<array>
<string>lib/release/*so*</string>
<string>lib/debug/*so*</string>
<string>lib/release/*.so*</string>
<string>lib/debug/*.so*</string>
</array>
<key>name</key>
<string>linux</string>
......
......@@ -7,8 +7,8 @@ set -e
TOP="$(dirname "$0")"
SDL_SOURCE_DIR="SDL"
SDL_VERSION=$(sed -n -e 's/^Version: //p' "$TOP/$SDL_SOURCE_DIR/SDL.spec")
SDL_SOURCE_DIR="SDL2"
SDL_VERSION=$(sed -n -e 's/^Version: //p' "$TOP/$SDL_SOURCE_DIR/SDL2.spec")
if [ -z "$AUTOBUILD" ] ; then
fail
......@@ -24,11 +24,6 @@ eval "$("$AUTOBUILD" source_environment)"
set -x
stage="$(pwd)"
ZLIB_INCLUDE="${stage}"/packages/include/zlib
PNG_INCLUDE="${stage}"/packages/include/libpng16
[ -f "$ZLIB_INCLUDE"/zlib.h ] || fail "You haven't installed the zlib package yet."
[ -f "$PNG_INCLUDE"/png.h ] || fail "You haven't installed the libpng package yet."
# Restore all .sos
restore_sos ()
......@@ -90,12 +85,14 @@ case "$AUTOBUILD_PLATFORM" in
done
pushd "$TOP/$SDL_SOURCE_DIR"
./autogen.sh
# do debug build of sdl
PATH="$stage"/bin/:"$PATH" \
CFLAGS="-I"$ZLIB_INCLUDE" -I"$PNG_INCLUDE" $DEBUG_CFLAGS" \
CXXFLAGS="-I"$ZLIB_INCLUDE" -I"$PNG_INCLUDE" $DEBUG_CXXFLAGS" \
CPPFLAGS="-I"$ZLIB_INCLUDE" -I"$PNG_INCLUDE" $DEBUG_CPPFLAGS" \
LDFLAGS="-L"$stage/packages/lib/debug" -L"$stage/lib/debug" $opts" \
CFLAGS="$DEBUG_CFLAGS" \
CXXFLAGS="$DEBUG_CXXFLAGS" \
CPPFLAGS="$DEBUG_CPPFLAGS" \
LDFLAGS="$opts" \
./configure --with-pic \
--prefix="$stage" --libdir="$stage/lib/debug" --includedir="$stage/include"
make -j$JOBS
......@@ -106,10 +103,10 @@ case "$AUTOBUILD_PLATFORM" in
# do release build of sdl
PATH="$stage"/bin/:"$PATH" \
CFLAGS="-I"$ZLIB_INCLUDE" -I"$PNG_INCLUDE" $RELEASE_CFLAGS" \
CXXFLAGS="-I"$ZLIB_INCLUDE" -I"$PNG_INCLUDE" $RELEASE_CXXFLAGS" \
CPPFLAGS="-I"$ZLIB_INCLUDE" -I"$PNG_INCLUDE" $RELEASE_CPPFLAGS" \
LDFLAGS="-L"$stage/packages/lib/release" -L"$stage/lib/release" $opts" \
CFLAGS="$RELEASE_CFLAGS" \
CXXFLAGS="$RELEASE_CXXFLAGS" \
CPPFLAGS="$RELEASE_CPPFLAGS" \
LDFLAGS="$opts" \
./configure --with-pic \
--prefix="$stage" --libdir="$stage/lib/release" --includedir="$stage/include"
make -j$JOBS
......@@ -127,7 +124,5 @@ esac
mkdir -p "$stage/LICENSES"
cp "$TOP/$SDL_SOURCE_DIR/COPYING" "$stage/LICENSES/SDL.txt"
mkdir -p "$stage"/docs/SDL/
cp -a "$TOP"/README.Linden "$stage"/docs/SDL/
cp "$TOP/$SDL_SOURCE_DIR/COPYING.txt" "$stage/LICENSES/SDL.txt"
echo "$SDL_VERSION" > "$stage/VERSION.txt"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment