From 1ec585aeadd64350fd2fa091de780087845605e3 Mon Sep 17 00:00:00 2001 From: Volker Grabsch Date: Sat, 8 Nov 2008 09:40:16 +0100 Subject: completely rewritten from scratch as Makefile --- .hgignore | 5 +- Makefile | 86 ++ build_mingw_cross_env.sh | 2046 ---------------------------------------------- doc/README | 111 +++ 4 files changed, 198 insertions(+), 2050 deletions(-) create mode 100644 Makefile delete mode 100755 build_mingw_cross_env.sh create mode 100644 doc/README diff --git a/.hgignore b/.hgignore index 324a1d4..aac0ad7 100644 --- a/.hgignore +++ b/.hgignore @@ -1,5 +1,2 @@ -^README$ -^ChangeLog$ -^download/ -^src/ +^pkg/ ^usr/ diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b58ebfa --- /dev/null +++ b/Makefile @@ -0,0 +1,86 @@ +JOBS := 4 +TARGET := i386-mingw32msvc +SOURCEFORGE_MIRROR := kent.dl.sourceforge.net + +VERSION := 2.0 +PREFIX := $(PWD)/usr +PKG_DIR := $(PWD)/pkg +TMP_DIR = $(PWD)/tmp-$(1) +SED := $(shell gsed --version >/dev/null 2>&1 && echo g)sed + +PKG_RULES := $(patsubst src/%.mk,%,$(wildcard src/*.mk)) +include src/*.mk + +ARCHIVE_CHECK = \ + $(if $(filter %.tar.gz, $(1)),tar tfz '$(1)' >/dev/null 2>&1, \ + $(if $(filter %.tar.bz2,$(1)),tar tfj '$(1)' >/dev/null 2>&1, \ + $(if $(filter %.zip, $(1)),unzip -t '$(1)' >/dev/null 2>&1, \ + $(error Unknown archive format: $(1))))) + +ARCHIVE_UNPACK = \ + $(if $(filter %.tar.gz, $(1)),tar xvzf '$(1)', \ + $(if $(filter %.tar.bz2,$(1)),tar xvjf '$(1)', \ + $(if $(filter %.zip, $(1)),unzip '$(1)', \ + $(error Unknown archive format: $(1))))) + +DOWNLOAD = \ + $(if $(2),wget -t 3 -c '$(1)' || wget -c '$(2)',wget -c '$(1)') + +.PHONY: all +all: $(PKG_RULES) + +.PHONY: clean +clean: + rm -rf $(call TMP_DIR,*) $(PREFIX)/* + +define PKG_RULE +.PHONY: $(1) +$(1): $(PREFIX)/installed.$(1) +$(PREFIX)/installed.$(1): $(addprefix $(PREFIX)/installed.,$($(1)_DEPS)) + [ -z '$(PREFIX)' ] || mkdir -p '$(PREFIX)' + [ -z '$(PKG_DIR)' ] || mkdir -p '$(PKG_DIR)' + rm -rf '$(2)' + mkdir -p '$(2)' + cd '$(PKG_DIR)' && ( \ + $(call ARCHIVE_CHECK,$($(1)_FILE)) || \ + $(call DOWNLOAD,$($(1)_URL),$($(1)_URL_2)) ) + cd '$(2)' && \ + $(call ARCHIVE_UNPACK,$(PKG_DIR)/$($(1)_FILE)) + $$(call $(1)_BUILD,$(1),$(2)/$($(1)_SUBDIR)) + rm -rfv '$(2)' + touch '$$@' +endef +$(foreach PKG,$(PKG_RULES),$(eval $(call PKG_RULE,$(PKG),$(call TMP_DIR,$(PKG))))) + +define UPDATE + $(if $(2), \ + $(SED) 's/^\([^ ]*_VERSION *:=\).*/\1 $(2)/' -i src/$(1).mk, \ + $(error Unable to update version number: $(1))) + +endef +.PHONY: update +update: + $(foreach PKG,$(PKG_RULES),$(call UPDATE,$(PKG),$(shell $($(PKG)_UPDATE)))) + +.PHONY: dist +dist: + rm -rf 'mingw_cross_env-$(VERSION)' + mkdir 'mingw_cross_env-$(VERSION)' + mkdir 'mingw_cross_env-$(VERSION)/doc' + mkdir 'mingw_cross_env-$(VERSION)/src' + hg log -v --style changelog >'mingw_cross_env-$(VERSION)/doc/ChangeLog' + ( \ + $(SED) -n '1,/^List/ { s/^\(MinGW cross.*\)/\1 ($(VERSION))/; p }' doc/README && \ + echo '================' && \ + echo && \ + ($(foreach PKG,$(PKG_RULES),echo '$(PKG)' '$($(PKG)_VERSION)';)) | \ + awk '{ printf " %-12s %s\n", $$1, $$2 }' && \ + echo && \ + echo && \ + $(SED) -n '/^Copyright/,$$ p' doc/README \ + ) >'mingw_cross_env-$(VERSION)/doc/README' + cp -p Makefile 'mingw_cross_env-$(VERSION)/' + cp -p src/*.mk 'mingw_cross_env-$(VERSION)/src/' + tar cvf - 'mingw_cross_env-$(VERSION)' | gzip -9 >'mingw_cross_env-$(VERSION).tar.gz' + rm -rf 'mingw_cross_env-$(VERSION)' + diff --git a/build_mingw_cross_env.sh b/build_mingw_cross_env.sh deleted file mode 100755 index dd4208d..0000000 --- a/build_mingw_cross_env.sh +++ /dev/null @@ -1,2046 +0,0 @@ -#!/bin/bash -set -ex - - -#--- -# MinGW cross compiling environment (pre-2.0) -# ================================= -# -# http://www.profv.de/mingw_cross_env/ -# -# This script compiles a MinGW cross compiler and cross compiles -# many free libraries such as GD and SDL. Thus, it provides you -# a nice MinGW cross compiling environment. All necessary source -# packages are downloaded automatically. -# -# This script is designed to run on any Unix system. It also runs -# partly on MSYS. It needs GNU make and GNU sed, so FreeBSD users -# need the ports textproc/gsed and devel/gmake. -# -# -# Usage: ./build_mingw_cross_env.sh [ action ] -# -# -# same as '--download', followed by '--build'. -# -# --new-versions -# retrieve the new version numbers of all packages -# (modifies the script in-place, use with caution!) -# -# --download -# download all packages in download/ -# (resumes incomplete downloads) -# -# --build -# build the packages in src/ and usr/, create mingw_cross_env.tar.gz -# (needs a prepared download/ directory -# or a previous '--download' run) -# -# --build-experimental -# build the experimental packages -# (allows fast testing of new additions to the script, -# needs a prepared mingw_cross_env.tar.gz archive -# or a previous '--build' run) -# -# --dist -# build a source distribution package -# -# -# Copyright -# ========= -# -# (c) Volker Grabsch -# Rocco Rutte -# Andreas Roever -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject -# to the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -#--- - - -#--- -# Portability -#--- - -unset AR CC CFLAGS CROSS CXX CXXFLAGS EXEEXT -unset LD LIBS NM PKG_CONFIG RANLIB STRIP - -MAKE=gmake -$MAKE --version >&2 || MAKE=make - -SED=gsed -$SED --version >&2 || SED=sed - - -#--- -# Configuration -#--- - -TARGET="i386-mingw32msvc" -ROOT=`pwd` -PREFIX="$ROOT/usr" -SOURCE="$ROOT/src" -DOWNLOAD="$ROOT/download" -SOURCEFORGE_MIRROR=kent.dl.sourceforge.net - -PATH="$PREFIX/bin:$PATH" - -VERSION_mingw_runtime=3.14 -VERSION_w32api=3.11 -VERSION_binutils=2.18.50-20080109 -VERSION_gcc=4.2.1-2 -VERSION_pkg_config=0.23 -VERSION_pthreads=2-8-0 -VERSION_zlib=1.2.3 -VERSION_pdcurses=33 -VERSION_gettext=0.17 -VERSION_libiconv=1.11.1 -VERSION_tre=0.7.5 -VERSION_winpcap=4_0_2 -VERSION_libdnet=1.11 -VERSION_libgpg_error=1.6 -VERSION_libgcrypt=1.4.0 -VERSION_gnutls=1.6.3 -VERSION_libxml2=2.6.31 -VERSION_libxslt=1.1.22 -VERSION_xmlwrapp=0.5.0 -VERSION_curl=7.18.0 -VERSION_libpng=1.2.25 -VERSION_jpeg=6b -VERSION_tiff=3.8.2 -VERSION_giflib=4.1.6 -VERSION_freetype=2.3.5 -VERSION_fontconfig=2.5.91 -VERSION_libmikmod=3.2.0-beta2 -VERSION_ogg=1.1.3 -VERSION_vorbis=1.2.0 -VERSION_gd=2.0.35 -VERSION_SDL=1.2.11 -VERSION_smpeg=0.4.5+cvs20030824 -VERSION_SDL_mixer=1.2.8 -VERSION_SDL_image=1.2.6 -VERSION_fltk=1.1.7 -VERSION_geos=3.0.0 -VERSION_proj=4.6.0 -VERSION_libgeotiff=1.2.4 -VERSION_gdal=1.5.0 -VERSION_pdflib_lite=7.0.2 - - -#--- -# Main -#--- - -case "$1" in -"") - $BASH "$0" --download - $BASH "$0" --build - exit 0 - ;; ---list) - set - -x - exit 0 - ;; ---dist) - sed -n 's/^#$\|^# //p; /SOFTWARE\./ q' "$0" >README - echo >>README - echo >>README - echo 'Tutorial' >>README - echo '========' >>README - echo >>README - echo 'http://wiki.njh.eu/Win32_Cross_Compiling_Tutorial' \ - >>README - echo >>README - LC_ALL=C w3m -cols 65 -dump \ - 'http://wiki.njh.eu/Win32_Cross_Compiling_Tutorial' \ - | sed -n '/^Making a Linux MinGW cross compiler$/,/^Hans Bezemer$/ p' \ - | sed -n '3,$ p' >>README - echo >>README - echo >>README - echo 'List of Packages' >>README - echo '================' >>README - echo >>README - awk <"$0" ' - BEGIN { FS="^VERSION_|=" } - /^VERSION/ { printf "%-13s %s\n", $2, $3 }' \ - | sort >>README - hg log -v --style changelog >ChangeLog - VERSION=`$SED -n 's/.*(\([a-z0-9.-]*\))$/\1/p' "$0" | head -1` - test -n "$VERSION" - rm -rf "mingw_cross_env-$VERSION" - mkdir "mingw_cross_env-$VERSION" - cp "$0" README ChangeLog "mingw_cross_env-$VERSION/" - tar cfv - "mingw_cross_env-$VERSION" | gzip -9 >"mingw_cross_env-$VERSION.tar.gz" - rm -rf "mingw_cross_env-$VERSION" - exit 0 - ;; ---new-versions|--download|--build|--build-experimental) - # go ahead - ;; -*) - # display the first comments of this script as help message - set - -x - echo - $SED -n '/^# Copyright$/ Q; s/^#$\|^# //p' "$0" | more - exit 1 - ;; -esac - - -#--- -# Prepare -#--- - -case "$1" in - ---new-versions) - cp -p "$0" "$0.backup_`date +%Y-%m-%d_%H:%M:%S`" - ;; - ---download) - mkdir -p "$DOWNLOAD" - ;; - ---build) - rm -rfv "$PREFIX" "$SOURCE" - mkdir -p "$PREFIX" "$SOURCE" - ;; - ---build-experimental) - tar tfz "$ROOT/mingw_cross_env.tar.gz" >/dev/null - rm -rfv "$SOURCE" "$PREFIX" - mkdir -p "$SOURCE" - cd / - tar xfvz "$ROOT/mingw_cross_env.tar.gz" - ;; - -esac - - -#--- -# MinGW Runtime -# -# http://mingw.sourceforge.net/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=2435' | - $SED -n 's,.*mingw-runtime-\([0-9][^>]*\)-src\.tar.*,\1,p' | - head -1` - test -n "$VERSION" - $SED "s,^VERSION_mingw_runtime=.*,VERSION_mingw_runtime=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfz "mingw-runtime-$VERSION_mingw_runtime.tar.gz" &>/dev/null || - wget -c "http://$SOURCEFORGE_MIRROR/mingw/mingw-runtime-$VERSION_mingw_runtime.tar.gz" - ;; - ---build) - install -d "$PREFIX/$TARGET" - cd "$PREFIX/$TARGET" - tar xfvz "$DOWNLOAD/mingw-runtime-$VERSION_mingw_runtime.tar.gz" - ;; - -esac - - -#--- -# MinGW Windows API -# -# http://mingw.sourceforge.net/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=2435' | - $SED -n 's,.*w32api-\([0-9][^>]*\)-src\.tar.*,\1,p' | - head -1` - test -n "$VERSION" - $SED "s,^VERSION_w32api=.*,VERSION_w32api=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfz "w32api-$VERSION_w32api.tar.gz" &>/dev/null || - wget -c "http://$SOURCEFORGE_MIRROR/mingw/w32api-$VERSION_w32api.tar.gz" - ;; - ---build) - install -d "$PREFIX/$TARGET" - cd "$PREFIX/$TARGET" - tar xfvz "$DOWNLOAD/w32api-$VERSION_w32api.tar.gz" - # fix incompatibilities with gettext - $SED 's,\(SUBLANG_BENGALI_INDIA\t\)0x01,\10x00,' -i "$PREFIX/$TARGET/include/winnt.h" - $SED 's,\(SUBLANG_PUNJABI_INDIA\t\)0x01,\10x00,' -i "$PREFIX/$TARGET/include/winnt.h" - $SED 's,\(SUBLANG_ROMANIAN_ROMANIA\t\)0x01,\10x00,' -i "$PREFIX/$TARGET/include/winnt.h" - # fix incompatibilities with jpeg - $SED 's,typedef unsigned char boolean;,,' -i "$PREFIX/$TARGET/include/rpcndr.h" - # fix missing definitions for WinPcap and libdnet - $SED '1i\#include ' -i "$PREFIX/$TARGET/include/iphlpapi.h" - $SED '1i\#include ' -i "$PREFIX/$TARGET/include/wincrypt.h" - ;; - -esac - - -#--- -# MinGW binutils -# -# http://mingw.sourceforge.net/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=2435' | - $SED -n 's,.*binutils-\([0-9][^>]*\)-src\.tar.*,\1,p' | - head -1` - test -n "$VERSION" - $SED "s,^VERSION_binutils=.*,VERSION_binutils=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfz "binutils-$VERSION_binutils-src.tar.gz" &>/dev/null || - wget -c "http://$SOURCEFORGE_MIRROR/mingw/binutils-$VERSION_binutils-src.tar.gz" - ;; - ---build) - VERSION_DIRNAME_binutils=`echo "$VERSION_binutils" | sed 's,-.*,,'` - cd "$SOURCE" - tar xfvz "$DOWNLOAD/binutils-$VERSION_binutils-src.tar.gz" - cd "binutils-$VERSION_DIRNAME_binutils" - ./configure \ - --target="$TARGET" \ - --prefix="$PREFIX" \ - --with-gcc \ - --with-gnu-ld \ - --with-gnu-as \ - --disable-nls \ - --disable-shared - $MAKE all install - cd "$SOURCE" - rm -rfv "binutils-$VERSION_DIRNAME_binutils" - ;; - -esac - - -#--- -# MinGW GCC -# -# http://mingw.sourceforge.net/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=2435' | - $SED -n 's,.*gcc-\([4-9][^>]*\)-src\.tar.*,\1,p' | - head -1` - test -n "$VERSION" - $SED "s,^VERSION_gcc=.*,VERSION_gcc=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfz "gcc-$VERSION_gcc-src.tar.gz" &>/dev/null || - wget -c "http://$SOURCEFORGE_MIRROR/mingw/gcc-$VERSION_gcc-src.tar.gz" - ;; - ---build) - cd "$SOURCE" - tar xfvz "$DOWNLOAD/gcc-$VERSION_gcc-src.tar.gz" - cd "gcc-$VERSION_gcc-src" - ./configure \ - --target="$TARGET" \ - --prefix="$PREFIX" \ - --enable-languages="c,c++" \ - --enable-version-specific-runtime-libs \ - --with-gcc \ - --with-gnu-ld \ - --with-gnu-as \ - --disable-nls \ - --disable-shared \ - --without-x \ - --enable-threads=win32 \ - --disable-win32-registry \ - --enable-sjlj-exceptions - $MAKE all install - cd "$SOURCE" - rm -rfv "gcc-$VERSION_gcc-src" - ;; - -esac - - -#--- -# pkg-config -# -# http://pkg-config.freedesktop.org/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'http://pkgconfig.freedesktop.org/' | - $SED -n 's,.*current release of pkg-config is version \([0-9][^ ]*\) and.*,\1,p' | - head -1` - test -n "$VERSION" - $SED "s,^VERSION_pkg_config=.*,VERSION_pkg_config=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfz "pkg-config-$VERSION_pkg_config.tar.gz" &>/dev/null || - wget -c "http://pkgconfig.freedesktop.org/releases/pkg-config-$VERSION_pkg_config.tar.gz" - ;; - ---build) - cd "$SOURCE" - tar xfvz "$DOWNLOAD/pkg-config-$VERSION_pkg_config.tar.gz" - cd "pkg-config-$VERSION_pkg_config" - ./configure --prefix="$PREFIX/$TARGET" - $MAKE install - cd "$SOURCE" - rm -rfv "pkg-config-$VERSION_pkg_config" - install -d "$PREFIX/bin" - rm -fv "$PREFIX/bin/$TARGET-pkg-config" - ln -s "../$TARGET/bin/pkg-config" "$PREFIX/bin/$TARGET-pkg-config" - ;; - -esac - - -#--- -# pthreads-w32 -# -# http://sourceware.org/pthreads-win32/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'ftp://sourceware.org/pub/pthreads-win32/Release_notes' | - $SED -n 's,^RELEASE \([0-9][^[:space:]]*\).*,\1,p' | - tr '.' '-' | - head -1` - test -n "$VERSION" - $SED "s,^VERSION_pthreads=.*,VERSION_pthreads=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfz "pthreads-w32-$VERSION_pthreads-release.tar.gz" &>/dev/null || - wget -c "ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-$VERSION_pthreads-release.tar.gz" - ;; - ---build) - cd "$SOURCE" - tar xfvz "$DOWNLOAD/pthreads-w32-$VERSION_pthreads-release.tar.gz" - cd "pthreads-w32-$VERSION_pthreads-release" - $SED '35i\#define PTW32_STATIC_LIB' -i pthread.h - $MAKE GC-static CROSS="$TARGET-" - install -d "$PREFIX/$TARGET/lib" - install -m664 libpthreadGC2.a "$PREFIX/$TARGET/lib/libpthread.a" - install -d "$PREFIX/$TARGET/include" - install -m664 pthread.h sched.h semaphore.h "$PREFIX/$TARGET/include/" - cd "$SOURCE" - rm -rfv "pthreads-w32-$VERSION_pthreads-release" - ;; - -esac - - -#--- -# zlib -# -# http://www.zlib.net/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=5624' | - $SED -n 's,.*zlib-\([0-9][^>]*\)\.tar.*,\1,p' | - head -1` - test -n "$VERSION" - $SED "s,^VERSION_zlib=.*,VERSION_zlib=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfj "zlib-$VERSION_zlib.tar.bz2" &>/dev/null || - wget -c "http://$SOURCEFORGE_MIRROR/libpng/zlib-$VERSION_zlib.tar.bz2" - ;; - ---build) - cd "$SOURCE" - tar xfvj "$DOWNLOAD/zlib-$VERSION_zlib.tar.bz2" - cd "zlib-$VERSION_zlib" - CC="$TARGET-gcc" RANLIB="$TARGET-ranlib" ./configure \ - --prefix="$PREFIX/$TARGET" - $MAKE install - cd "$SOURCE" - rm -rfv "zlib-$VERSION_zlib" - ;; - -esac - - -#--- -# PDcurses -# -# http://pdcurses.sourceforge.net/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=30480' | - $SED -n 's,.*pdcurs\([0-9][^>]*\)\.zip.*,\1,p' | - head -1` - test -n "$VERSION" - $SED "s,^VERSION_pdcurses=.*,VERSION_pdcurses=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - unzip -t "pdcurs$VERSION_pdcurses.zip" &>/dev/null || - wget -c "http://$SOURCEFORGE_MIRROR/pdcurses/pdcurs$VERSION_pdcurses.zip" - ;; - ---build) - cd "$SOURCE" - unzip "$DOWNLOAD/pdcurs$VERSION_pdcurses.zip" -d "pdcurs$VERSION_pdcurses" - cd "pdcurs$VERSION_pdcurses" - $SED 's,copy,cp,' -i win32/mingwin32.mak - $MAKE libs -f win32/mingwin32.mak \ - CC="$TARGET-gcc" \ - LIBEXE="$TARGET-ar" \ - DLL=N \ - PDCURSES_SRCDIR=. \ - WIDE=Y \ - UTF8=Y - $TARGET-ranlib pdcurses.a panel.a - install -d "$PREFIX/$TARGET/include/" - install -m644 curses.h panel.h term.h "$PREFIX/$TARGET/include/" - install -d "$PREFIX/$TARGET/lib/" - install -m644 pdcurses.a "$PREFIX/$TARGET/lib/libpdcurses.a" - install -m644 panel.a "$PREFIX/$TARGET/lib/libpanel.a" - cd "$SOURCE" - rm -rfv "pdcurs$VERSION_pdcurses" - ;; - -esac - - -#--- -# gettext -# -# http://www.gnu.org/software/gettext/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'ftp://ftp.gnu.org/pub/gnu/gettext/' | - $SED -n 's,.*gettext-\([0-9][^>]*\)\.tar.*,\1,p' | - sort | tail -1` - test -n "$VERSION" - $SED "s,^VERSION_gettext=.*,VERSION_gettext=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfz "gettext-$VERSION_gettext.tar.gz" &>/dev/null || - wget -c "ftp://ftp.gnu.org/pub/gnu/gettext/gettext-$VERSION_gettext.tar.gz" - ;; - ---build) - cd "$SOURCE" - tar xfvz "$DOWNLOAD/gettext-$VERSION_gettext.tar.gz" - cd "gettext-$VERSION_gettext" - cd gettext-runtime - ./configure \ - --host="$TARGET" \ - --disable-shared \ - --prefix="$PREFIX/$TARGET" \ - --enable-threads=win32 - $MAKE install -C intl - cd "$SOURCE" - rm -rfv "gettext-$VERSION_gettext" - ;; - -esac - - -#--- -# libiconv -# -# http://www.gnu.org/software/libiconv/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'http://ftp.gnu.org/pub/gnu/libiconv/' | - $SED -n 's,.*libiconv-\([0-9]*\)\.\([0-9]*\)\(\.[0-9]*\)\.tar.*,\1.\2\3,p' | - sort -n | tail -1` - test -n "$VERSION" - $SED "s,^VERSION_libiconv=.*,VERSION_libiconv=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfz "libiconv-$VERSION_libiconv.tar.gz" &>/dev/null || - wget -c "http://ftp.gnu.org/pub/gnu/libiconv/libiconv-$VERSION_libiconv.tar.gz" - ;; - ---build) - cd "$SOURCE" - tar xfvz "$DOWNLOAD/libiconv-$VERSION_libiconv.tar.gz" - cd "libiconv-$VERSION_libiconv" - ./configure \ - --host="$TARGET" \ - --prefix="$PREFIX/$TARGET" \ - --disable-shared \ - --disable-nls - $MAKE install - cd "$SOURCE" - rm -rfv "libiconv-$VERSION_libiconv" - ;; - -esac - - -#--- -# TRE -# -# http://laurikari.net/tre/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'http://laurikari.net/tre/download.html' | - $SED -n 's,.*tre-\([a-z0-9][^>]*\)\.tar.*,\1,p' | - head -1` - test -n "$VERSION" - $SED "s,^VERSION_tre=.*,VERSION_tre=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfj "tre-$VERSION_tre.tar.bz2" &>/dev/null || - wget -c "http://laurikari.net/tre/tre-$VERSION_tre.tar.bz2" - ;; - ---build) - cd "$SOURCE" - tar xfvj "$DOWNLOAD/tre-$VERSION_tre.tar.bz2" - cd "tre-$VERSION_tre" - ./configure \ - --host="$TARGET" \ - --disable-shared \ - --prefix="$PREFIX/$TARGET" \ - --disable-nls - $MAKE install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= - cd "$SOURCE" - rm -rfv "tre-$VERSION_tre" - ;; - -esac - - -#--- -# WinPcap -# -# http://www.winpcap.org/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'http://www.winpcap.org/devel.htm' | - $SED -n 's,.*WpcapSrc_\([0-9][^>]*\)\.zip.*,\1,p' | - head -1` - test -n "$VERSION" - $SED "s,^VERSION_winpcap=.*,VERSION_winpcap=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - unzip -t "WpcapSrc_$VERSION_winpcap.zip" &>/dev/null || - wget -c "http://www.winpcap.org/install/bin/WpcapSrc_$VERSION_winpcap.zip" - ;; - ---build) - cd "$SOURCE" - unzip "$DOWNLOAD/WpcapSrc_$VERSION_winpcap.zip" -d "WpcapSrc_$VERSION_winpcap" - cd "WpcapSrc_$VERSION_winpcap" - cd winpcap - mv Common common - cp -p common/Devioctl.h common/devioctl.h - cp -p common/Ntddndis.h common/ntddndis.h - cp -p common/Ntddpack.h common/ntddpack.h - cp -p common/Packet32.h common/packet32.h - cp -p common/WpcapNames.h common/wpcapnames.h - $SED 's,(PCHAR)winpcap_hdr +=,winpcap_hdr +=,' -i Packet9x/DLL/Packet32.c - $TARGET-gcc -Icommon -O -c Packet9x/DLL/Packet32.c - $TARGET-ar rc libpacket.a Packet32.o - $TARGET-ranlib libpacket.a - install -d "$PREFIX/$TARGET/include" - install -m644 common/*.h "$PREFIX/$TARGET/include/" - install -d "$PREFIX/$TARGET/lib" - install -m644 libpacket.a "$PREFIX/$TARGET/lib/" - mv wpcap/libpcap/Win32/Include/ip6_misc.h wpcap/libpcap/Win32/Include/IP6_misc.h - $SED 's,(char\*)tUstr +=,tUstr +=,' -i wpcap/libpcap/inet.c - $SED 's,-DHAVE_AIRPCAP_API,,' -i wpcap/PRJ/GNUmakefile - echo -e 'libwpcap.a: ${OBJS}' >> wpcap/PRJ/GNUmakefile - echo -e '\t${AR} rc $@ ${OBJS}' >> wpcap/PRJ/GNUmakefile - echo -e '\t${RANLIB} $@' >> wpcap/PRJ/GNUmakefile - echo "/* already handled by */" > wpcap/libpcap/Win32/Src/gai_strerror.c - cd wpcap/PRJ - CC="$TARGET-gcc" \ - AR="$TARGET-ar" \ - RANLIB="$TARGET-ranlib" \ - $MAKE libwpcap.a - install -d "$PREFIX/$TARGET/include" - install -m644 ../libpcap/*.h ../Win32-Extensions/*.h "$PREFIX/$TARGET/include/" - install -d "$PREFIX/$TARGET/lib" - install -m644 libwpcap.a "$PREFIX/$TARGET/lib/" - cd "$SOURCE" - rm -rfv "WpcapSrc_$VERSION_winpcap" - ;; - -esac - - -#--- -# libdnet -# -# http://libdnet.sourceforge.net/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=36243' | - $SED -n 's,.*libdnet-\([0-9][^>]*\)\.tar.*,\1,p' | - head -1` - test -n "$VERSION" - $SED "s,^VERSION_libdnet=.*,VERSION_libdnet=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfz "libdnet-$VERSION_libdnet.tar.gz" &>/dev/null || - wget -c "http://$SOURCEFORGE_MIRROR/libdnet/libdnet-$VERSION_libdnet.tar.gz" - ;; - ---build) - cd "$SOURCE" - tar xfvz "$DOWNLOAD/libdnet-$VERSION_libdnet.tar.gz" - cd "libdnet-$VERSION_libdnet" - $SED 's,CYGWIN=no,CYGWIN=yes,g' -i configure - $SED 's,cat /proc/sys/kernel/ostype,,g' -i configure - $SED 's,test -d /usr/include/mingw,true,' -i configure - $SED 's,Iphlpapi,iphlpapi,g' -i configure - $SED 's,packet.lib,libpacket.a,' -i configure - $SED 's,-lpacket,-lpacket -lws2_32,g' -i configure - $SED "s,/usr/include,$PREFIX/$TARGET/include,g" -i configure - ./configure \ - --host="$TARGET" \ - --disable-shared \ - --prefix="$PREFIX/$TARGET" - $MAKE install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= - cd "$SOURCE" - rm -rfv "libdnet-$VERSION_libdnet" - ;; - -esac - - -#--- -# libgpg-error -# -# ftp://ftp.gnupg.org/gcrypt/libgpg-error/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'ftp://ftp.gnupg.org/gcrypt/libgpg-error/' | - $SED -n 's,.*libgpg-error-\([0-9][^>]*\)\.tar.*,\1,p' | - tail -1` - test -n "$VERSION" - $SED "s,^VERSION_libgpg_error=.*,VERSION_libgpg_error=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfj "libgpg-error-$VERSION_libgpg_error.tar.bz2" &>/dev/null || - wget -c "ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-$VERSION_libgpg_error.tar.bz2" - ;; - ---build) - cd "$SOURCE" - tar xfvj "$DOWNLOAD/libgpg-error-$VERSION_libgpg_error.tar.bz2" - cd "libgpg-error-$VERSION_libgpg_error" - # wine confuses the cross-compiling detection, so set it explicitly - $SED 's,cross_compiling=no,cross_compiling=yes,' -i configure - ./configure \ - --host="$TARGET" \ - --disable-shared \ - --prefix="$PREFIX/$TARGET" - $MAKE install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= - cd "$SOURCE" - rm -rfv "libgpg-error-$VERSION_libgpg_error" - ;; - -esac - - -#--- -# libgcrypt -# -# ftp://ftp.gnupg.org/gcrypt/libgcrypt/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'ftp://ftp.gnupg.org/gcrypt/libgcrypt/' | - $SED -n 's,.*libgcrypt-\([0-9][^>]*\)\.tar.*,\1,p' | - tail -1` - test -n "$VERSION" - $SED "s,^VERSION_libgcrypt=.*,VERSION_libgcrypt=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfj "libgcrypt-$VERSION_libgcrypt.tar.bz2" &>/dev/null || - wget -c "ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-$VERSION_libgcrypt.tar.bz2" - ;; - ---build) - cd "$SOURCE" - tar xfvj "$DOWNLOAD/libgcrypt-$VERSION_libgcrypt.tar.bz2" - cd "libgcrypt-$VERSION_libgcrypt" - $SED '26i\#include ' -i src/gcrypt.h.in - $SED '26i\#include ' -i src/ath.h - $SED 's,sys/times.h,sys/time.h,' -i cipher/random.c - # wine confuses the cross-compiling detection, so set it explicitly - $SED 's,cross_compiling=no,cross_compiling=yes,' -i configure - ./configure \ - --host="$TARGET" \ - --disable-shared \ - --prefix="$PREFIX/$TARGET" \ - --with-gpg-error-prefix="$PREFIX/$TARGET" - $MAKE install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= - cd "$SOURCE" - rm -rfv "libgcrypt-$VERSION_libgcrypt" - ;; - -esac - - -#--- -# GnuTLS -# -# http://www.gnu.org/software/gnutls/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'http://www.gnu.org/software/gnutls/news.html' | - $SED -n 's,.*GnuTLS \([0-9][^>]*\).*stable branch.*,\1,p' | - head -1` - test -n "$VERSION" - $SED "s,^VERSION_gnutls=.*,VERSION_gnutls=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfj "gnutls-$VERSION_gnutls.tar.bz2" &>/dev/null || - wget -c "ftp://ftp.gnutls.org/pub/gnutls/gnutls-$VERSION_gnutls.tar.bz2" - ;; - ---build) - cd "$SOURCE" - tar xfvj "$DOWNLOAD/gnutls-$VERSION_gnutls.tar.bz2" - cd "gnutls-$VERSION_gnutls" - echo "/* DEACTIVATED */" >gl/gai_strerror.c - ./configure \ - --host="$TARGET" \ - --disable-shared \ - --prefix="$PREFIX/$TARGET" \ - --with-libgcrypt-prefix="$PREFIX/$TARGET" \ - --disable-nls \ - --with-included-opencdk \ - --with-included-libtasn1 \ - --with-included-libcfg \ - --with-included-lzo - $MAKE install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= defexec_DATA= - cd "$SOURCE" - rm -rfv "gnutls-$VERSION_gnutls" - ;; - -esac - - -#--- -# libxml2 -# -# http://www.xmlsoft.org/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'ftp://xmlsoft.org/libxml2/' | - $SED -n 's,.*LATEST_LIBXML2_IS_\([0-9][^>]*\).*,\1,p' | - head -1` - test -n "$VERSION" - $SED "s,^VERSION_libxml2=.*,VERSION_libxml2=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfz "libxml2-$VERSION_libxml2.tar.gz" &>/dev/null || - wget -c "ftp://xmlsoft.org/libxml2/libxml2-$VERSION_libxml2.tar.gz" - ;; - ---build) - cd "$SOURCE" - tar xfvz "$DOWNLOAD/libxml2-$VERSION_libxml2.tar.gz" - cd "libxml2-$VERSION_libxml2" - $SED 's,`uname`,MinGW,g' -i xml2-config.in - ./configure \ - --host="$TARGET" \ - --disable-shared \ - --without-debug \ - --prefix="$PREFIX/$TARGET" \ - --without-python - $MAKE install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= - cd "$SOURCE" - rm -rfv "libxml2-$VERSION_libxml2" - ;; - -esac - - -#--- -# libxslt -# -# http://xmlsoft.org/XSLT/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'ftp://xmlsoft.org/libxslt/' | - $SED -n 's,.*LATEST_LIBXSLT_IS_\([0-9][^>]*\).*,\1,p' | - head -1` - test -n "$VERSION" - $SED "s,^VERSION_libxslt=.*,VERSION_libxslt=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfz "libxslt-$VERSION_libxslt.tar.gz" &>/dev/null || - wget -c "ftp://xmlsoft.org/libxslt/libxslt-$VERSION_libxslt.tar.gz" - ;; - ---build) - cd "$SOURCE" - tar xfvz "$DOWNLOAD/libxslt-$VERSION_libxslt.tar.gz" - cd "libxslt-$VERSION_libxslt" - ./configure \ - --host="$TARGET" \ - --disable-shared \ - --without-debug \ - --prefix="$PREFIX/$TARGET" \ - --with-libxml-prefix="$PREFIX/$TARGET" \ - LIBGCRYPT_CONFIG="$PREFIX/$TARGET/bin/libgcrypt-config" \ - --without-python \ - --without-plugins - $MAKE install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= - cd "$SOURCE" - rm -rfv "libxslt-$VERSION_libxslt" - ;; - -esac - - -#--- -# xmlwrapp -# -# http://sourceforge.net/projects/xmlwrapp/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=142403' | - $SED -n 's,.*xmlwrapp-\([0-9][^>]*\)\.tgz.*,\1,p' | - head -1` - test -n "$VERSION" - $SED "s,^VERSION_xmlwrapp=.*,VERSION_xmlwrapp=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfz "xmlwrapp-$VERSION_xmlwrapp.tgz" &>/dev/null || - wget -c "http://$SOURCEFORGE_MIRROR/xmlwrapp/xmlwrapp-$VERSION_xmlwrapp.tgz" - ;; - ---build) - cd "$SOURCE" - tar xfvz "$DOWNLOAD/xmlwrapp-$VERSION_xmlwrapp.tgz" - cd "xmlwrapp-$VERSION_xmlwrapp" - EXSLT_LIBS=`$TARGET-pkg-config libexslt --libs | $SED 's,-L[^ ]*,,g'` - $SED 's,.*/usr/include.*,,' -i configure.pl - $SED "s,-lxslt -lexslt,$EXSLT_LIBS," -i configure.pl - $SED 's,"ranlib",$ENV{"RANLIB"} || "ranlib",g' -i tools/cxxflags - CXX="$TARGET-g++" \ - AR="$TARGET-ar" \ - RANLIB="$TARGET-ranlib" \ - CXXFLAGS="-ffriend-injection `$PREFIX/$TARGET/bin/xml2-config --cflags`" \ - ./configure.pl \ - --disable-shared \ - --prefix="$PREFIX/$TARGET" \ - --xml2-config="$PREFIX/$TARGET/bin/xml2-config" \ - --xslt-config="$PREFIX/$TARGET/bin/xslt-config" \ - --disable-examples - $MAKE install - cd "$SOURCE" - rm -rfv "xmlwrapp-$VERSION_xmlwrapp" - ;; - -esac - - -#--- -# cURL -# -# http://curl.haxx.se/libcurl/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'http://curl.haxx.se/changes.html' | - $SED -n 's,.*Fixed in \([0-9][^ ]*\) - .*,\1,p' | - head -1` - test -n "$VERSION" - $SED "s,^VERSION_curl=.*,VERSION_curl=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfj "curl-$VERSION_curl.tar.bz2" &>/dev/null || - wget -c "http://curl.haxx.se/download/curl-$VERSION_curl.tar.bz2" - ;; - ---build) - cd "$SOURCE" - tar xfvj "$DOWNLOAD/curl-$VERSION_curl.tar.bz2" - cd "curl-$VERSION_curl" - $SED 's,-I@includedir@,-I@includedir@ -DCURL_STATICLIB,' -i curl-config.in - $SED 's,GNUTLS_ENABLED = 1,GNUTLS_ENABLED=1,' -i configure - # wine confuses the cross-compiling detection, so set it explicitly - $SED 's,cross_compiling=no,cross_compiling=yes,' -i configure - ./configure \ - --host="$TARGET" \ - --disable-shared \ - --prefix="$PREFIX/$TARGET" \ - --with-gnutls="$PREFIX/$TARGET" \ - LIBS="-lgcrypt `$PREFIX/$TARGET/bin/gpg-error-config --libs`" - $MAKE install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= - cd "$SOURCE" - rm -rfv "curl-$VERSION_curl" - ;; - -esac - - -#--- -# libpng -# -# http://www.libpng.org/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=5624' | - $SED -n 's,.*libpng-\([0-9][^>]*\)-no-config\.tar.*,\1,p' | - head -1` - test -n "$VERSION" - $SED "s,^VERSION_libpng=.*,VERSION_libpng=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfj "libpng-$VERSION_libpng.tar.bz2" &>/dev/null || - wget -c "http://$SOURCEFORGE_MIRROR/libpng/libpng-$VERSION_libpng.tar.bz2" - ;; - ---build) - cd "$SOURCE" - tar xfvj "$DOWNLOAD/libpng-$VERSION_libpng.tar.bz2" - cd "libpng-$VERSION_libpng" - ./configure \ - --host="$TARGET" \ - --disable-shared \ - --prefix="$PREFIX/$TARGET" - $MAKE install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= - cd "$SOURCE" - rm -rfv "libpng-$VERSION_libpng" - ;; - -esac - - -#--- -# jpeg -# -# http://www.ijg.org/ -# http://packages.debian.org/unstable/source/libjpeg6b -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'http://packages.debian.org/unstable/source/libjpeg6b' | - $SED -n 's,.*libjpeg6b_\([0-9][^>]*\)\.orig\.tar.*,\1,p' | - tail -1` - test -n "$VERSION" - $SED "s,^VERSION_jpeg=.*,VERSION_jpeg=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfz "libjpeg6b_$VERSION_jpeg.orig.tar.gz" &>/dev/null || - wget -c "http://ftp.debian.org/debian/pool/main/libj/libjpeg6b/libjpeg6b_$VERSION_jpeg.orig.tar.gz" - ;; - ---build) - cd "$SOURCE" - tar xfvz "$DOWNLOAD/libjpeg6b_$VERSION_jpeg.orig.tar.gz" - cd "jpeg-$VERSION_jpeg" - ./configure \ - CC="$TARGET-gcc" RANLIB="$TARGET-ranlib" \ - --disable-shared \ - --prefix="$PREFIX/$TARGET" - $MAKE install-lib - cd "$SOURCE" - rm -rfv "jpeg-$VERSION_jpeg" - ;; - -esac - - -#--- -# LibTIFF -# -# http://www.remotesensing.org/libtiff/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'http://www.remotesensing.org/libtiff/' | - $SED -n 's,.*>v\([0-9][^<]*\)<.*,\1,p' | - head -1` - test -n "$VERSION" - $SED "s,^VERSION_tiff=.*,VERSION_tiff=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfz "tiff-$VERSION_tiff.tar.gz" &>/dev/null || - wget -t 3 -c "ftp://ftp.remotesensing.org/pub/libtiff/tiff-$VERSION_tiff.tar.gz" || - wget -c "http://dl.maptools.org/dl/libtiff/tiff-$VERSION_tiff.tar.gz" - ;; - ---build) - cd "$SOURCE" - tar xfvz "$DOWNLOAD/tiff-$VERSION_tiff.tar.gz" - cd "tiff-$VERSION_tiff" - ./configure \ - --host="$TARGET" \ - --disable-shared \ - --prefix="$PREFIX/$TARGET" \ - PTHREAD_LIBS="-lpthread -lws2_32" \ - --without-x - $MAKE install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= - cd "$SOURCE" - rm -rfv "tiff-$VERSION_tiff" - ;; - -esac - - -#--- -# giflib -# -# http://sourceforge.net/projects/libungif/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=102202' | - $SED -n 's,.*giflib-\([0-9][^>]*\)\.tar.*,\1,p' | - head -1` - test -n "$VERSION" - $SED "s,^VERSION_giflib=.*,VERSION_giflib=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfj "giflib-$VERSION_giflib.tar.bz2" &>/dev/null || - wget -c "http://$SOURCEFORGE_MIRROR/giflib/giflib-$VERSION_giflib.tar.bz2" - ;; - ---build) - cd "$SOURCE" - tar xfvj "$DOWNLOAD/giflib-$VERSION_giflib.tar.bz2" - cd "giflib-$VERSION_giflib" - $SED 's,u_int32_t,unsigned int,' -i configure - ./configure \ - --host="$TARGET" \ - --disable-shared \ - --prefix="$PREFIX/$TARGET" \ - --without-x - $MAKE install -C lib - cd "$SOURCE" - rm -rfv "giflib-$VERSION_giflib" - ;; - -esac - - -#--- -# freetype -# -# http://freetype.sourceforge.net/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=3157' | - $SED -n 's,.*freetype-\([2-9][^>]*\)\.tar.*,\1,p' | - head -1` - test -n "$VERSION" - $SED "s,^VERSION_freetype=.*,VERSION_freetype=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfj "freetype-$VERSION_freetype.tar.bz2" &>/dev/null || - wget -c "http://$SOURCEFORGE_MIRROR/freetype/freetype-$VERSION_freetype.tar.bz2" - ;; - ---build) - cd "$SOURCE" - tar xfvj "$DOWNLOAD/freetype-$VERSION_freetype.tar.bz2" - cd "freetype-$VERSION_freetype" - GNUMAKE=$MAKE \ - ./configure \ - --host="$TARGET" \ - --disable-shared \ - --prefix="$PREFIX/$TARGET" - $MAKE install - cd "$SOURCE" - rm -rfv "freetype-$VERSION_freetype" - ;; - -esac - - -#--- -# fontconfig -# -# http://fontconfig.org/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'http://fontconfig.org/release/' | - $SED -n 's,.*fontconfig-\([0-9][^>]*\)\.tar.*,\1,p' | - tail -1` - test -n "$VERSION" - $SED "s,^VERSION_fontconfig=.*,VERSION_fontconfig=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfz "fontconfig-$VERSION_fontconfig.tar.gz" &>/dev/null || - wget -c "http://fontconfig.org/release/fontconfig-$VERSION_fontconfig.tar.gz" - ;; - ---build) - cd "$SOURCE" - tar xfvz "$DOWNLOAD/fontconfig-$VERSION_fontconfig.tar.gz" - cd "fontconfig-$VERSION_fontconfig" - # ensure there is no (buggy) attempt to install the *.dll.a file - # (remove this line of you want to link dynamically) - $SED 's,^install-data-local:.*,install-data-local:,' -i src/Makefile.in - # wine confuses the cross-compiling detection, so set it explicitly - $SED 's,cross_compiling=no,cross_compiling=yes,' -i configure - ./configure \ - --host="$TARGET" \ - --disable-shared \ - --prefix="$PREFIX/$TARGET" \ - --with-arch="$TARGET" \ - --with-freetype-config="$PREFIX/$TARGET/bin/freetype-config" \ - --enable-libxml2 \ - LIBXML2_CFLAGS="`$PREFIX/$TARGET/bin/xml2-config --cflags`" \ - LIBXML2_LIBS="`$PREFIX/$TARGET/bin/xml2-config --libs`" - $MAKE install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= - cd "$SOURCE" - rm -rfv "fontconfig-$VERSION_fontconfig" - ;; - -esac - - -#--- -# libMikMod -# -# http://mikmod.raphnet.net/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'http://mikmod.raphnet.net/' | - $SED -n 's,.*libmikmod-\([0-9][^>]*\)\.tar.*,\1,p' | - head -1` - test -n "$VERSION" - $SED "s,^VERSION_libmikmod=.*,VERSION_libmikmod=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfj "libmikmod-$VERSION_libmikmod.tar.bz2" &>/dev/null || - wget -c "http://mikmod.raphnet.net/files/libmikmod-$VERSION_libmikmod.tar.bz2" - ;; - ---build) - cd "$SOURCE" - tar xfvj "$DOWNLOAD/libmikmod-$VERSION_libmikmod.tar.bz2" - cd "libmikmod-$VERSION_libmikmod" - $SED 's,-Dunix,,' -i libmikmod/Makefile.in - CC="$TARGET-gcc" \ - NM="$TARGET-nm" \ - RANLIB="$TARGET-ranlib" \ - STRIP="$TARGET-strip" \ - LIBS="-lws2_32" \ - ./configure \ - --disable-shared \ - --prefix="$PREFIX/$TARGET" \ - --disable-esd - $MAKE install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= - cd "$SOURCE" - rm -rfv "libmikmod-$VERSION_libmikmod" - ;; - -esac - - -#--- -# OGG -# -# http://www.xiph.org/ogg/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'http://www.xiph.org/downloads/' | - $SED -n 's,.*libogg-\([0-9][^>]*\)\.tar.*,\1,p' | - head -1` - test -n "$VERSION" - $SED "s,^VERSION_ogg=.*,VERSION_ogg=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfz "libogg-$VERSION_ogg.tar.gz" &>/dev/null || - wget -c "http://downloads.xiph.org/releases/ogg/libogg-$VERSION_ogg.tar.gz" - ;; - ---build) - cd "$SOURCE" - tar xfvz "$DOWNLOAD/libogg-$VERSION_ogg.tar.gz" - cd "libogg-$VERSION_ogg" - # wine confuses the cross-compiling detection, so set it explicitly - $SED 's,cross_compiling=no,cross_compiling=yes,' -i configure - ./configure \ - --host="$TARGET" \ - --disable-shared \ - --prefix="$PREFIX/$TARGET" - $MAKE install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= - cd "$SOURCE" - rm -rfv "libogg-$VERSION_ogg" - ;; - -esac - - -#--- -# Vorbis -# -# http://www.vorbis.com/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'http://www.xiph.org/downloads/' | - $SED -n 's,.*libvorbis-\([0-9][^>]*\)\.tar.*,\1,p' | - head -1` - test -n "$VERSION" - $SED "s,^VERSION_vorbis=.*,VERSION_vorbis=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfz "libvorbis-$VERSION_vorbis.tar.gz" &>/dev/null || - wget -c "http://downloads.xiph.org/releases/vorbis/libvorbis-$VERSION_vorbis.tar.gz" - ;; - ---build) - cd "$SOURCE" - tar xfvz "$DOWNLOAD/libvorbis-$VERSION_vorbis.tar.gz" - cd "libvorbis-$VERSION_vorbis" - ./configure \ - --host="$TARGET" \ - --disable-shared \ - --prefix="$PREFIX/$TARGET" \ - PKG_CONFIG="$TARGET-pkg-config" \ - LIBS="-lws2_32" - $MAKE install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= - cd "$SOURCE" - rm -rfv "libvorbis-$VERSION_vorbis" - ;; - -esac - - -#--- -# GD -# (without support for xpm) -# -# http://www.libgd.org/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'http://www.libgd.org/releases/' | - $SED -n 's,.*gd-\([0-9][^>]*\)\.tar.*,\1,p' | - head -1` - test -n "$VERSION" - $SED "s,^VERSION_gd=.*,VERSION_gd=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfj "gd-$VERSION_gd.tar.bz2" &>/dev/null || - wget -t 3 -c "http://www.libgd.org/releases/gd-$VERSION_gd.tar.bz2" || - wget -c "http://www.libgd.org/releases/oldreleases/gd-$VERSION_gd.tar.bz2" - ;; - ---build) - cd "$SOURCE" - tar xfvj "$DOWNLOAD/gd-$VERSION_gd.tar.bz2" - cd "gd-$VERSION_gd" - touch aclocal.m4 - touch config.hin - touch Makefile.in - $SED 's,-I@includedir@,-I@includedir@ -DNONDLL,' -i config/gdlib-config.in - $SED 's,-lX11 ,,g' -i configure - ./configure \ - --host="$TARGET" \ - --disable-shared \ - --prefix="$PREFIX/$TARGET" \ - --with-freetype="$PREFIX/$TARGET" \ - --without-x \ - LIBPNG12_CONFIG="$PREFIX/$TARGET/bin/libpng12-config" \ - LIBPNG_CONFIG="$PREFIX/$TARGET/bin/libpng-config" \ - CFLAGS="-DNONDLL -DXMD_H -L$PREFIX/$TARGET/lib" \ - LIBS="`$PREFIX/$TARGET/bin/xml2-config --libs`" - $MAKE install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= - cd "$SOURCE" - rm -rfv "gd-$VERSION_gd" - ;; - -esac - - -#--- -# SDL -# -# http://www.libsdl.org/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'http://www.libsdl.org/release/changes.html' | - $SED -n 's,.*SDL \([0-9][^>]*\) Release Notes.*,\1,p' | - head -1` - test -n "$VERSION" - $SED "s,^VERSION_SDL=.*,VERSION_SDL=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfz "SDL-$VERSION_SDL.tar.gz" &>/dev/null || - wget -c "http://www.libsdl.org/release/SDL-$VERSION_SDL.tar.gz" - ;; - ---build) - cd "$SOURCE" - tar xfvz "$DOWNLOAD/SDL-$VERSION_SDL.tar.gz" - cd "SDL-$VERSION_SDL" - $SED 's,-mwindows,-lwinmm -mwindows,' -i configure - ./configure \ - --host="$TARGET" \ - --disable-shared \ - --disable-debug \ - --prefix="$PREFIX/$TARGET" - $MAKE install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= - cd "$SOURCE" - rm -rfv "SDL-$VERSION_SDL" - ;; - -esac - - -#--- -# smpeg -# -# http://icculus.org/smpeg/ -# http://packages.debian.org/unstable/source/smpeg -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'http://packages.debian.org/unstable/source/smpeg' | - $SED -n 's,.*smpeg_\([0-9][^>]*\)\.orig\.tar.*,\1,p' | - head -1` - test -n "$VERSION" - $SED "s,^VERSION_smpeg=.*,VERSION_smpeg=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfz "smpeg_$VERSION_smpeg.orig.tar.gz" &>/dev/null || - wget -c "http://ftp.debian.org/debian/pool/main/s/smpeg/smpeg_$VERSION_smpeg.orig.tar.gz" - ;; - ---build) - cd "$SOURCE" - tar xfvz "$DOWNLOAD/smpeg_$VERSION_smpeg.orig.tar.gz" - cd "smpeg-$VERSION_smpeg.orig" - ./configure \ - --host="$TARGET" \ - --disable-shared \ - --disable-debug \ - --prefix="$PREFIX/$TARGET" \ - --with-sdl-prefix="$PREFIX/$TARGET" \ - --disable-sdltest \ - --disable-gtk-player \ - --disable-opengl-player \ - CFLAGS="-ffriend-injection" - $MAKE install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= - cd "$SOURCE" - rm -rfv "smpeg-$VERSION_smpeg.orig" - ;; - -esac - - -#--- -# SDL_mixer -# -# http://www.libsdl.org/projects/SDL_mixer/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'http://www.libsdl.org/projects/SDL_mixer/' | - $SED -n 's,.*SDL_mixer-\([0-9][^>]*\)\.tar.*,\1,p' | - head -1` - test -n "$VERSION" - $SED "s,^VERSION_SDL_mixer=.*,VERSION_SDL_mixer=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfz "SDL_mixer-$VERSION_SDL_mixer.tar.gz" &>/dev/null || - wget -c "http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-$VERSION_SDL_mixer.tar.gz" - ;; - ---build) - cd "$SOURCE" - tar xfvz "$DOWNLOAD/SDL_mixer-$VERSION_SDL_mixer.tar.gz" - cd "SDL_mixer-$VERSION_SDL_mixer" - $SED 's,for path in /usr/local; do,for path in; do,' -i configure - ./configure \ - --host="$TARGET" \ - --disable-shared \ - --prefix="$PREFIX/$TARGET" \ - --with-sdl-prefix="$PREFIX/$TARGET" \ - --disable-sdltest \ - --enable-music-libmikmod \ - --enable-music-ogg \ - --disable-music-ogg-shared \ - --with-smpeg-prefix="$PREFIX/$TARGET" \ - --disable-smpegtest \ - --disable-music-mp3-shared - $MAKE install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= - cd "$SOURCE" - rm -rfv "SDL_mixer-$VERSION_SDL_mixer" - ;; - -esac - - -#--- -# SDL_image -# -# http://www.libsdl.org/projects/SDL_image/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'http://www.libsdl.org/projects/SDL_image/' | - $SED -n 's,.*SDL_image-\([0-9][^>]*\)\.tar.*,\1,p' | - head -1` - test -n "$VERSION" - $SED "s,^VERSION_SDL_image=.*,VERSION_SDL_image=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfz "SDL_image-$VERSION_SDL_image.tar.gz" &>/dev/null || - wget -c "http://www.libsdl.org/projects/SDL_image/release/SDL_image-$VERSION_SDL_image.tar.gz" - ;; - ---build) - cd "$SOURCE" - tar xfvz "$DOWNLOAD/SDL_image-$VERSION_SDL_image.tar.gz" - cd "SDL_image-$VERSION_SDL_image" - ./configure \ - --host="$TARGET" \ - --disable-shared \ - --prefix="$PREFIX/$TARGET" \ - --with-sdl-prefix="$PREFIX/$TARGET" \ - --disable-sdltest \ - --disable-jpg-shared \ - --disable-png-shared \ - --disable-tif-shared - $MAKE install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= - cd "$SOURCE" - rm -rfv "SDL_image-$VERSION_SDL_image" - ;; - -esac - - -#--- -# FLTK -# -# http://www.fltk.org/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'http://www.fltk.org/' | - $SED -n 's,.*>v\([0-9][^<]*\)<.*,\1,p' | - head -1` - test -n "$VERSION" - $SED "s,^VERSION_fltk=.*,VERSION_fltk=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfj "fltk-$VERSION_fltk-source.tar.bz2" &>/dev/null || - wget -c "http://ftp.easysw.com/pub/fltk/$VERSION_fltk/fltk-$VERSION_fltk-source.tar.bz2" - ;; - ---build) - cd "$SOURCE" - tar xfvj "$DOWNLOAD/fltk-$VERSION_fltk-source.tar.bz2" - cd "fltk-$VERSION_fltk" - $SED 's,\$uname,MINGW,g' -i configure - # wine confuses the cross-compiling detection, so set it explicitly - $SED 's,cross_compiling=no,cross_compiling=yes,' -i configure - ./configure \ - --host="$TARGET" \ - --disable-shared \ - --prefix="$PREFIX/$TARGET" \ - --enable-threads \ - LIBS="-lws2_32" - $SED 's,-fno-exceptions,,' -i makeinclude - $MAKE install DIRS=src - cd "$SOURCE" - rm -rfv "fltk-$VERSION_fltk" - ;; - -esac - - -#--- -# GEOS -# -# http://geos.refractions.net/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'http://geos.refractions.net/' | - $SED -n 's,.*geos-\([0-9][^>]*\)\.tar.*,\1,p' | - head -1` - test -n "$VERSION" - $SED "s,^VERSION_geos=.*,VERSION_geos=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfj "geos-$VERSION_geos.tar.bz2" &>/dev/null || - wget -c "http://geos.refractions.net/downloads/geos-$VERSION_geos.tar.bz2" - ;; - ---build) - cd "$SOURCE" - tar xfvj "$DOWNLOAD/geos-$VERSION_geos.tar.bz2" - cd "geos-$VERSION_geos" - $SED 's,-lgeos,-lgeos -lstdc++,' -i tools/geos-config.in - # timezone and gettimeofday are in since MinGW runtime 3.10 - $SED 's,struct timezone {,struct timezone_disabled {,' -i source/headers/geos/timeval.h - $SED 's,int gettimeofday,int gettimeofday_disabled,' -i source/headers/geos/timeval.h - ./configure \ - --host="$TARGET" \ - --disable-shared \ - --prefix="$PREFIX/$TARGET" \ - --disable-swig - $MAKE install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= - cd "$SOURCE" - rm -rfv "geos-$VERSION_geos" - ;; - -esac - - -#--- -# proj -# -# http://www.remotesensing.org/proj/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'http://www.remotesensing.org/proj/' | - $SED -n 's,.*proj-\([0-9][^>]*\)\.tar.*,\1,p' | - head -1` - test -n "$VERSION" - $SED "s,^VERSION_proj=.*,VERSION_proj=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfz "proj-$VERSION_proj.tar.gz" &>/dev/null || - wget -t 3 -c "ftp://ftp.remotesensing.org/proj/proj-$VERSION_proj.tar.gz" || - wget -c "http://dl.maptools.org/dl/proj/proj-$VERSION_proj.tar.gz" - ;; - ---build) - cd "$SOURCE" - tar xfvz "$DOWNLOAD/proj-$VERSION_proj.tar.gz" - cd "proj-$VERSION_proj" - $SED 's,install-exec-local[^:],,' -i src/Makefile.in - ./configure \ - --host="$TARGET" \ - --disable-shared \ - --prefix="$PREFIX/$TARGET" - $MAKE install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= - cd "$SOURCE" - rm -rfv "proj-$VERSION_proj" - ;; - -esac - - -#--- -# GeoTiff -# -# http://www.remotesensing.org/geotiff/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'http://www.remotesensing.org/geotiff/geotiff.html' | - $SED -n 's,.*libgeotiff-\([0-9][^>]*\)\.tar.*,\1,p' | - head -1` - test -n "$VERSION" - $SED "s,^VERSION_libgeotiff=.*,VERSION_libgeotiff=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfz "libgeotiff-$VERSION_libgeotiff.tar.gz" &>/dev/null || - wget -t 3 -c "ftp://ftp.remotesensing.org/pub/geotiff/libgeotiff/libgeotiff-$VERSION_libgeotiff.tar.gz" || - wget -c "http://dl.maptools.org/dl/geotiff/libgeotiff/libgeotiff-$VERSION_libgeotiff.tar.gz" - ;; - ---build) - cd "$SOURCE" - tar xfvz "$DOWNLOAD/libgeotiff-$VERSION_libgeotiff.tar.gz" - cd "libgeotiff-$VERSION_libgeotiff" - $SED 's,/usr/local,@prefix@,' -i bin/Makefile.in - touch configure - ./configure \ - --host="$TARGET" \ - --disable-shared \ - --prefix="$PREFIX/$TARGET" - $MAKE all install EXEEXT=.remove-me - rm -fv "$PREFIX/$TARGET"/bin/*.remove-me - cd "$SOURCE" - rm -rfv "libgeotiff-$VERSION_libgeotiff" - ;; - -esac - - -#--- -# GDAL -# -# http://www.gdal.org/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'http://trac.osgeo.org/gdal/wiki/DownloadSource' | - $SED -n 's,.*gdal-\([0-9][^>]*\)\.tar.*,\1,p' | - head -1` - test -n "$VERSION" - $SED "s,^VERSION_gdal=.*,VERSION_gdal=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - tar tfz "gdal-$VERSION_gdal.tar.gz" &>/dev/null || - wget -c "http://www.gdal.org/dl/gdal-$VERSION_gdal.tar.gz" - ;; - ---build) - cd "$SOURCE" - tar xfvz "$DOWNLOAD/gdal-$VERSION_gdal.tar.gz" - cd "gdal-$VERSION_gdal" - ./configure \ - --host="$TARGET" \ - --disable-shared \ - --prefix="$PREFIX/$TARGET" \ - LIBS="-ljpeg" \ - --with-png="$PREFIX/$TARGET" \ - --with-libtiff="$PREFIX/$TARGET" \ - --with-geotiff="$PREFIX/$TARGET" \ - --with-jpeg="$PREFIX/$TARGET" \ - --with-gif="$PREFIX/$TARGET" \ - --with-curl="$PREFIX/$TARGET/bin/curl-config" \ - --with-geos="$PREFIX/$TARGET/bin/geos-config" \ - --with-expat=no \ - --without-python \ - --without-ngpython - $MAKE lib-target - $MAKE install-lib - $MAKE install -C port - $MAKE install -C gcore - $MAKE install -C frmts - $MAKE install -C alg - $MAKE install -C ogr OGR_ENABLED= - $MAKE install -C apps BIN_LIST= - cd "$SOURCE" - rm -rfv "gdal-$VERSION_gdal" - ;; - -esac - - -#--- -# PDFlib Lite -# -# http://www.pdflib.com/download/pdflib-family/pdflib-lite/ -#--- - -case "$1" in - ---new-versions) - VERSION=` - wget -q -O- 'http://www.pdflib.com/download/pdflib-family/pdflib-lite/' | - $SED -n 's,.*PDFlib-Lite-\([0-9][^>]*\)\.tar.*,\1,p' | - head -1` - test -n "$VERSION" - $SED "s,^VERSION_pdflib_lite=.*,VERSION_pdflib_lite=$VERSION," -i "$0" - ;; - ---download) - cd "$DOWNLOAD" - DIR=`echo $VERSION_pdflib_lite | $SED 's,[^0-9],,g'` - tar tfz "PDFlib-Lite-$VERSION_pdflib_lite.tar.gz" &>/dev/null || - wget -c "http://www.pdflib.com/binaries/PDFlib/$DIR/PDFlib-Lite-$VERSION_pdflib_lite.tar.gz" - ;; - ---build) - cd "$SOURCE" - tar xfvz "$DOWNLOAD/PDFlib-Lite-$VERSION_pdflib_lite.tar.gz" - cd "PDFlib-Lite-$VERSION_pdflib_lite" - $SED 's,ac_sys_system=`uname -s`,ac_sys_system=MinGW,' -i configure - ./configure \ - --host="$TARGET" \ - --disable-shared \ - --prefix="$PREFIX/$TARGET" \ - --with-pnglib="$PREFIX/$TARGET" \ - --with-tifflib="$PREFIX/$TARGET" \ - --with-zlib="$PREFIX/$TARGET" \ - --without-java \ - --without-py \ - --without-perl \ - --without-ruby \ - --without-tcl \ - --disable-php \ - --enable-cxx \ - --enable-large-files \ - --with-openssl - $SED 's,-DPDF_PLATFORM=[^ ]* ,,' -i config/mkcommon.inc - $MAKE all install -C libs - cd "$SOURCE" - rm -rfv "PDFlib-Lite-$VERSION_pdflib_lite" - ;; - -esac - - -#--- -# Cleanup -#--- - -case "$1" in - ---build) - cd "$PREFIX" - rm -rfv \ - include \ - info \ - lib/libiberty.a \ - man \ - $TARGET/doc \ - $TARGET/info \ - $TARGET/man \ - $TARGET/sbin \ - $TARGET/share - strip -sv \ - bin/* \ - libexec/gcc/$TARGET/*/* \ - $TARGET/bin/* || echo "strip error ignored" - $TARGET-strip -gv \ - lib/gcc/$TARGET/*/*.a \ - lib/gcc/$TARGET/*/*.o \ - $TARGET/lib/*.a \ - $TARGET/lib/*.o || echo "strip error ignored" - ;; - -esac - - -#--- -# Create package -#--- - -case "$1" in - ---build) - tar cfv - "$PREFIX" | gzip -9 >"$ROOT/mingw_cross_env.tar.gz" - ;; - -esac diff --git a/doc/README b/doc/README new file mode 100644 index 0000000..49476da --- /dev/null +++ b/doc/README @@ -0,0 +1,111 @@ + +MinGW cross compiling environment +================================= + + http://www.profv.de/mingw_cross_env/ + + This Makefile compiles a MinGW cross compiler and cross compiles + many free libraries such as GD and SDL. Thus, it provides you + a nice MinGW cross compiling environment. All necessary source + packages are downloaded automatically. + + The Makefile is designed to run on any Unix system. It also runs + partly on MSYS. It needs GNU make and GNU sed, so FreeBSD users + need the ports textproc/gsed and devel/gmake. + + +Usage +===== + + make + + build all packages + + make foo + + build package 'foo' and all dependencies + + make clean + + remove all package builds + + make update + + update the version numbers of all packages, + use with caution! + + make dist + + build a source distribution tarball + + +List of Packages +================ + + binutils 2.18.50-20080109 + curl 7.18.0 + fltk 1.1.7 + fontconfig 2.5.91 + freetype 2.3.5 + gcc 4.2.1-2 + gd 2.0.35 + gdal 1.5.0 + geos 3.0.0 + gettext 0.17 + giflib 4.1.6 + gnutls 1.6.3 + jpeg 6b + libdnet 1.11 + libgcrypt 1.4.0 + libgeotiff 1.2.4 + libgpg_error 1.6 + libiconv 1.11.1 + libmikmod 3.2.0-beta2 + libpng 1.2.25 + libxml2 2.6.31 + libxslt 1.1.22 + mingw_runtime 3.14 + ogg 1.1.3 + pdcurses 33 + pdflib_lite 7.0.2 + pkg_config 0.23 + proj 4.6.0 + pthreads 2-8-0 + SDL 1.2.11 + SDL_image 1.2.6 + SDL_mixer 1.2.8 + smpeg 0.4.5+cvs20030824 + tiff 3.8.2 + tre 0.7.5 + vorbis 1.2.0 + w32api 3.11 + winpcap 4_0_2 + xmlwrapp 0.5.0 + zlib 1.2.3 + + +Copyright +========= + + (c) Volker Grabsch + Rocco Rutte + Andreas Roever + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject + to the following conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY + CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, + TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + -- cgit v0.12