Initial clone in from local subversion server
This commit is contained in:
123
deps/Makefile
vendored
Executable file
123
deps/Makefile
vendored
Executable file
@@ -0,0 +1,123 @@
|
||||
all: clean packages
|
||||
|
||||
CFLAGS=$(CFLAGS) -I/usr/local/include -I/usr/include
|
||||
LDFLAGS=$(LDFLAGS) -L/usr/local/lib -L/usr/lib
|
||||
|
||||
.PHONY: files
|
||||
files:
|
||||
wget http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.bz2
|
||||
|
||||
.PHONY: packages
|
||||
packages: SDL_main zlib libpng libjpeg libtiff SDL_image libvorbis flac SDL_mixer freetype SDL_ttf SDL_gfx libxml2
|
||||
|
||||
.PHONY: SDL_main
|
||||
SDL_main:
|
||||
wget http://www.libsdl.org/release/SDL-1.2.14.tar.gz
|
||||
tar -zxvf SDL-1.2.14.tar.gz
|
||||
cd SDL-1.2.14 && ./configure && make && make install
|
||||
|
||||
.PHONY: libpng
|
||||
libpng:
|
||||
wget -O libpng-1.2.37-bin.zip http://downloads.sourceforge.net/gnuwin32/libpng-1.2.37-bin.zip
|
||||
unzip -od /usr/local/ libpng-1.2.37-bin.zip
|
||||
wget -O libpng-1.2.37-deps.zip http://downloads.sourceforge.net/gnuwin32/libpng-1.2.37-dep.zip
|
||||
unzip -od /usr/local/ libpng-1.2.37-deps.zip
|
||||
wget -O libpng-1.2.37-devs.zip http://downloads.sourceforge.net/gnuwin32/libpng-1.2.37-lib.zip
|
||||
unzip -od /usr/local/ libpng-1.2.37-devs.zip
|
||||
cp libpng-config /usr/local/bin/libpng-config
|
||||
|
||||
.PHONY: zlib
|
||||
zlib:
|
||||
wget -O zlib-bin.zip http://gnuwin32.sourceforge.net/downlinks/zlib-bin-zip.php
|
||||
unzip -od /usr/local/ zlib-bin.zip
|
||||
wget -O zlib-libs.zip http://gnuwin32.sourceforge.net/downlinks/zlib-lib-zip.php
|
||||
unzip -od /usr/local/ zlib-libs.zip
|
||||
|
||||
.PHONY: libjpeg
|
||||
libjpeg:
|
||||
wget -O jpeg-bin.zip http://gnuwin32.sourceforge.net/downlinks/jpeg-bin-zip.php
|
||||
unzip -od /usr/local/ jpeg-bin.zip
|
||||
wget -O jpeg-deps.zip http://gnuwin32.sourceforge.net/downlinks/jpeg-dep-zip.php
|
||||
unzip -od /usr/local/ jpeg-deps.zip
|
||||
wget -O jpeg-devs.zip http://gnuwin32.sourceforge.net/downlinks/jpeg-lib-zip.php
|
||||
unzip -od /usr/local/ jpeg-devs.zip
|
||||
|
||||
.PHONY: libtiff
|
||||
libtiff:
|
||||
wget -O tiff-bin.zip http://gnuwin32.sourceforge.net/downlinks/tiff-bin-zip.php
|
||||
unzip -od /usr/local/ tiff-bin.zip
|
||||
wget -O tiff-deps.zip http://gnuwin32.sourceforge.net/downlinks/tiff-dep-zip.php
|
||||
unzip -od /usr/local/ tiff-deps.zip
|
||||
wget -O tiff-devs.zip http://gnuwin32.sourceforge.net/downlinks/tiff-lib-zip.php
|
||||
unzip -od /usr/local/ tiff-devs.zip
|
||||
|
||||
|
||||
.PHONY: SDL_image
|
||||
SDL_image:
|
||||
wget http://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.10.tar.gz
|
||||
tar -zxvf SDL_image-1.2.10.tar.gz
|
||||
cd SDL_image-1.2.10 && CFLAGS="-I/usr/local/include -I/usr/include" LDFLAGS=-L/usr/local/lib ./configure && make && make install
|
||||
|
||||
.PHONY: libvorbis
|
||||
libvorbis:
|
||||
wget http://downloads.xiph.org/releases/ogg/libogg-1.2.2.tar.gz
|
||||
tar -zxvf libogg-1.2.2.tar.gz
|
||||
cd libogg-1.2.2 && ./configure && make && make install
|
||||
wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.2.tar.gz
|
||||
tar -zxvf libvorbis-1.3.2.tar.gz
|
||||
cd libvorbis-1.3.2 && CFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ./configure && make && make install
|
||||
|
||||
.PHONY: flac
|
||||
flac:
|
||||
wget http://downloads.xiph.org/releases/flac/flac-1.2.1.tar.gz
|
||||
tar -zxvf flac-1.2.1.tar.gz
|
||||
patch -p0 < flac-alloc.h.patch
|
||||
patch -p0 < flac-main.cpp.patch
|
||||
cd flac-1.2.1 && ./configure && make && make install
|
||||
|
||||
.PHONY: SDL_mixer
|
||||
SDL_mixer:
|
||||
wget http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.11.tar.gz
|
||||
tar -zxvf SDL_mixer-1.2.11.tar.gz
|
||||
cd SDL_mixer-1.2.11 && CFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ./configure && make && make install
|
||||
|
||||
.PHONY: SDL_ttf
|
||||
SDL_ttf:
|
||||
wget http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-2.0.10.tar.gz
|
||||
tar -zxvf SDL_ttf-2.0.10.tar.gz
|
||||
cd SDL_ttf-2.0.10 && CFLAGS="-I/usr/local/include -I/usr/local/include/freetype2" LDFLAGS=-L/usr/local/lib ./configure && make && make install
|
||||
|
||||
.PHONY: freetype
|
||||
freetype:
|
||||
wget -O freetype-bin.zip http://gnuwin32.sourceforge.net/downlinks/freetype-bin-zip.php
|
||||
unzip -od /usr/local/ freetype-bin.zip
|
||||
wget -O freetype-deps.zip http://gnuwin32.sourceforge.net/downlinks/freetype-dep-zip.php
|
||||
unzip -od /usr/local/ freetype-deps.zip
|
||||
wget -O freetype-devs.zip http://gnuwin32.sourceforge.net/downlinks/freetype-lib-zip.php
|
||||
unzip -od /usr/local/ freetype-devs.zip
|
||||
|
||||
.PHONY: SDL_gfx
|
||||
SDL_gfx:
|
||||
wget http://www.ferzkopp.net/Software/SDL_gfx-2.0/SDL_gfx-2.0.22.tar.gz
|
||||
tar -zxvf SDL_gfx-2.0.22.tar.gz
|
||||
mkdir SDL_gfx-2.0.22/m4
|
||||
cp /usr/local/share/aclocal/sdl.m4 SDL_gfx-2.0.22/m4
|
||||
cd SDL_gfx-2.0.22 && libtoolize --force --copy && aclocal -I m4 && autoconf && automake
|
||||
cd SDL_gfx-2.0.22 && CFLAGS="-I/usr/local/include -I/usr/include" LDFLAGS="-L/usr/local/lib -L/usr/lib" ./configure && make && make install
|
||||
|
||||
.PHONY: libxml2
|
||||
libxml2:
|
||||
wget http://sourceforge.net/projects/gnuwin32/files/libxml/2.4.12-1/libxml2-2.4.12-bin.zip/download
|
||||
unzip -od /usr/local/ libxml2-2.4.12-bin.zip
|
||||
wget http://sourceforge.net/projects/gnuwin32/files/libxml/2.4.12-1/libxml2-2.4.12-1-lib.zip/download
|
||||
unzip -od /usr/local/ libxml2-2.4.12-1-lib.zip
|
||||
|
||||
.PHONY: doxygen
|
||||
doxygen:
|
||||
wget http://ftp.stack.nl/pub/users/dimitri/doxygen-1.7.4.windows.bin.zip
|
||||
unzip -od /bin doxygen-1.7.4.windows.bin.zip
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -rf *gz *zip *bz2
|
||||
find . -maxdepth 1 -type d -iname "[a-zA-Z0-9]*" -exec rm -rf \{\} \;
|
||||
15
deps/flac-alloc.h.patch
vendored
Executable file
15
deps/flac-alloc.h.patch
vendored
Executable file
@@ -0,0 +1,15 @@
|
||||
--- flac-1.2.1/include/share/alloc.h 2007-09-12 01:32:21 -0400
|
||||
+++ flac-1.2.1/include/share/alloc.new.h 2011-05-22 13:52:19 -0400
|
||||
@@ -35,11 +35,7 @@
|
||||
|
||||
#ifndef SIZE_MAX
|
||||
# ifndef SIZE_T_MAX
|
||||
-# ifdef _MSC_VER
|
||||
-# define SIZE_T_MAX UINT_MAX
|
||||
-# else
|
||||
-# error
|
||||
-# endif
|
||||
+# define SIZE_T_MAX UINT_MAX
|
||||
# endif
|
||||
# define SIZE_MAX SIZE_T_MAX
|
||||
#endif
|
||||
10
deps/flac-main.cpp.patch
vendored
Executable file
10
deps/flac-main.cpp.patch
vendored
Executable file
@@ -0,0 +1,10 @@
|
||||
--- flac-1.2.1/examples/cpp/encode/file/main.cpp 2011-05-22 14:13:46 -0400
|
||||
+++ flac-1.2.1/examples/cpp/encode/file/main.new.cpp 2011-05-22 14:13:21 -0400
|
||||
@@ -30,6 +30,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
+#include <string.h>
|
||||
#include "FLAC++/metadata.h"
|
||||
#include "FLAC++/encoder.h"
|
||||
|
||||
124
deps/libpng-config
vendored
Executable file
124
deps/libpng-config
vendored
Executable file
@@ -0,0 +1,124 @@
|
||||
#! /bin/sh
|
||||
|
||||
# libpng-config
|
||||
# provides configuration info for libpng.
|
||||
|
||||
# Copyright (C) 2002, 2004, 2006, 2007 Glenn Randers-Pehrson
|
||||
# For conditions of distribution and use, see copyright notice in png.h
|
||||
|
||||
# Modeled after libxml-config.
|
||||
|
||||
version="1.2.37"
|
||||
prefix="/usr/include"
|
||||
exec_prefix="${prefix}"
|
||||
libdir="${exec_prefix}/lib"
|
||||
includedir="${prefix}/include/libpng12"
|
||||
libs="-lpng12"
|
||||
all_libs="-lpng12 -lz"
|
||||
I_opts="-I${includedir}"
|
||||
L_opts="-L${libdir}"
|
||||
R_opts=""
|
||||
cppflags=""
|
||||
ccopts=""
|
||||
ldopts=""
|
||||
|
||||
usage()
|
||||
{
|
||||
cat <<EOF
|
||||
Usage: $0 [OPTION] ...
|
||||
|
||||
Known values for OPTION are:
|
||||
|
||||
--prefix print libpng prefix
|
||||
--libdir print path to directory containing library
|
||||
--libs print library linking information
|
||||
--ccopts print compiler options
|
||||
--cppflags print pre-processor flags
|
||||
--cflags print preprocessor flags, I_opts, and compiler options
|
||||
--I_opts print "-I" include options
|
||||
--L_opts print linker "-L" flags for dynamic linking
|
||||
--R_opts print dynamic linker "-R" or "-rpath" flags
|
||||
--ldopts print linker options
|
||||
--ldflags print linker flags (ldopts, L_opts, R_opts, and libs)
|
||||
--static revise subsequent outputs for static linking
|
||||
--help print this help and exit
|
||||
--version print version information
|
||||
EOF
|
||||
|
||||
exit $1
|
||||
}
|
||||
|
||||
if test $# -eq 0; then
|
||||
usage 1
|
||||
fi
|
||||
|
||||
while test $# -gt 0; do
|
||||
case "$1" in
|
||||
|
||||
--prefix)
|
||||
echo ${prefix}
|
||||
;;
|
||||
|
||||
--version)
|
||||
echo ${version}
|
||||
exit 0
|
||||
;;
|
||||
|
||||
--help)
|
||||
usage 0
|
||||
;;
|
||||
|
||||
--ccopts)
|
||||
echo ${ccopts}
|
||||
;;
|
||||
|
||||
--cppflags)
|
||||
echo ${cppflags}
|
||||
;;
|
||||
|
||||
--cflags)
|
||||
echo ${I_opts} ${cppflags} ${ccopts}
|
||||
;;
|
||||
|
||||
--libdir)
|
||||
echo ${libdir}
|
||||
;;
|
||||
|
||||
--libs)
|
||||
echo ${libs}
|
||||
;;
|
||||
|
||||
--I_opts)
|
||||
echo ${I_opts}
|
||||
;;
|
||||
|
||||
--L_opts)
|
||||
echo ${L_opts}
|
||||
;;
|
||||
|
||||
--R_opts)
|
||||
echo ${R_opts}
|
||||
;;
|
||||
|
||||
--ldopts)
|
||||
echo ${ldopts}
|
||||
;;
|
||||
|
||||
--ldflags)
|
||||
echo ${ldopts} ${L_opts} ${R_opts} ${libs}
|
||||
;;
|
||||
|
||||
--static)
|
||||
R_opts=""
|
||||
libs=${all_libs}
|
||||
;;
|
||||
|
||||
*)
|
||||
usage
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user