summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile63
-rw-r--r--src/atk.mk15
-rw-r--r--src/binutils.mk15
-rw-r--r--src/boost.mk15
-rw-r--r--src/bzip2.mk15
-rw-r--r--src/cairo.mk15
-rw-r--r--src/curl.mk15
-rw-r--r--src/expat.mk15
-rw-r--r--src/fltk.mk15
-rw-r--r--src/fontconfig.mk15
-rw-r--r--src/freetype.mk15
-rw-r--r--src/gcc-core.mk15
-rw-r--r--src/gcc-fortran.mk15
-rw-r--r--src/gcc-g++.mk15
-rw-r--r--src/gcc-gmp.mk15
-rw-r--r--src/gcc-mpfr.mk15
-rw-r--r--src/gcc-objc.mk15
-rw-r--r--src/gcc.mk15
-rw-r--r--src/gd.mk17
-rw-r--r--src/gdal.mk15
-rw-r--r--src/geos.mk15
-rw-r--r--src/gettext.mk15
-rw-r--r--src/giflib.mk15
-rw-r--r--src/glew.mk15
-rw-r--r--src/glib.mk15
-rw-r--r--src/gnutls.mk17
-rw-r--r--src/gtk.mk15
-rw-r--r--src/ilmbase.mk15
-rw-r--r--src/jasper.mk15
-rw-r--r--src/jpeg.mk15
-rw-r--r--src/libdnet.mk15
-rw-r--r--src/libgcrypt.mk15
-rw-r--r--src/libgeotiff.mk17
-rw-r--r--src/libgpg_error.mk15
-rw-r--r--src/libgsasl.mk15
-rw-r--r--src/libgsf.mk15
-rw-r--r--src/libiconv.mk15
-rw-r--r--src/libidn.mk15
-rw-r--r--src/libmikmod.mk15
-rw-r--r--src/libntlm.mk15
-rw-r--r--src/libpng.mk15
-rw-r--r--src/libxml2.mk15
-rw-r--r--src/libxslt.mk15
-rw-r--r--src/lua.mk15
-rw-r--r--src/mingwrt.mk15
-rw-r--r--src/ogg.mk15
-rw-r--r--src/old.mk15
-rw-r--r--src/openexr.mk15
-rw-r--r--src/pango.mk15
-rw-r--r--src/pcre.mk15
-rw-r--r--src/pdcurses.mk15
-rw-r--r--src/pdflib_lite.mk15
-rw-r--r--src/pixman.mk15
-rw-r--r--src/pkg_config.mk15
-rw-r--r--src/proj.mk17
-rw-r--r--src/pthreads.mk15
-rw-r--r--src/sdl.mk15
-rw-r--r--src/sdl_image.mk15
-rw-r--r--src/sdl_mixer.mk15
-rw-r--r--src/sdl_ttf.mk15
-rw-r--r--src/smpeg.mk15
-rw-r--r--src/tiff.mk17
-rw-r--r--src/tre.mk15
-rw-r--r--src/vorbis.mk15
-rw-r--r--src/w32api.mk15
-rw-r--r--src/winpcap.mk15
-rw-r--r--src/wxwidgets.mk15
-rw-r--r--src/xmlwrapp.mk15
-rw-r--r--src/zlib.mk15
69 files changed, 585 insertions, 508 deletions
diff --git a/Makefile b/Makefile
index 0fa916d..88e673b 100644
--- a/Makefile
+++ b/Makefile
@@ -5,15 +5,16 @@ JOBS := 1
TARGET := i386-mingw32msvc
SOURCEFORGE_MIRROR := kent.dl.sourceforge.net
-VERSION := 2.5
-PREFIX := $(PWD)/usr
-PKG_DIR := $(PWD)/pkg
-TMP_DIR = $(PWD)/tmp-$(1)
-TOP_DIR := $(patsubst %/,%,$(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))))
-PATH := $(PREFIX)/bin:$(PATH)
-SHELL := bash
-SED := $(shell gsed --help >/dev/null 2>&1 && echo g)sed
-INSTALL := $(shell ginstall --help >/dev/null 2>&1 && echo g)install
+VERSION := 2.5
+PREFIX := $(PWD)/usr
+PKG_DIR := $(PWD)/pkg
+TMP_DIR = $(PWD)/tmp-$(1)
+MAKEFILE := $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))
+TOP_DIR := $(patsubst %/,%,$(dir $(MAKEFILE)))
+PATH := $(PREFIX)/bin:$(PATH)
+SHELL := bash
+SED := $(shell gsed --help >/dev/null 2>&1 && echo g)sed
+INSTALL := $(shell ginstall --help >/dev/null 2>&1 && echo g)install
# unset any environment variables which might cause trouble
AR =
@@ -40,13 +41,6 @@ SHORT_PKG_VERSION = \
PKG_RULES := $(patsubst $(TOP_DIR)/src/%.mk,%,$(wildcard $(TOP_DIR)/src/*.mk))
include $(TOP_DIR)/src/*.mk
-CHECK_ARCHIVE = \
- $(if $(filter %.tgz, $(1)),tar tfz '$(1)' >/dev/null 2>&1, \
- $(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))))))
-
UNPACK_ARCHIVE = \
$(if $(filter %.tgz, $(1)),tar xvzf '$(1)', \
$(if $(filter %.tar.gz, $(1)),tar xvzf '$(1)', \
@@ -57,6 +51,18 @@ UNPACK_ARCHIVE = \
UNPACK_PKG_ARCHIVE = \
$(call UNPACK_ARCHIVE,$(PKG_DIR)/$($(1)_FILE))
+PKG_CHECKSUM = \
+ sha1sum -b '$(PKG_DIR)/$($(1)_FILE)' | $(SED) -n 's,^\([0-9a-f]\{40\}\).*,\1,p'
+
+CHECK_PKG_ARCHIVE = \
+ [ '$($(1)_CHECKSUM)' == "`$(call PKG_CHECKSUM,$(1))`" ]
+
+DOWNLOAD_PKG_ARCHIVE = \
+ $(if $($(1)_URL_2), \
+ wget -T 30 -t 3 -c -O '$(PKG_DIR)/$($(1)_FILE)' '$($(1)_URL)' \
+ || wget -c -O '$(PKG_DIR)/$($(1)_FILE)' '$($(1)_URL_2)', \
+ wget -c -O '$(PKG_DIR)/$($(1)_FILE)' '$($(1)_URL)')
+
.PHONY: all
all: $(PKG_RULES)
@@ -66,12 +72,10 @@ $(1): $(PREFIX)/installed-$(1)
$(PREFIX)/installed-$(1): $(TOP_DIR)/src/$(1).mk $(addprefix $(PREFIX)/installed-,$($(1)_DEPS))
[ -d '$(PREFIX)' ] || mkdir -p '$(PREFIX)'
[ -d '$(PKG_DIR)' ] || mkdir -p '$(PKG_DIR)'
- cd '$(PKG_DIR)' && ( \
- $(call CHECK_ARCHIVE,$($(1)_FILE)) || \
- $(if $($(1)_URL_2), \
- wget -T 30 -t 3 -c -O '$($(1)_FILE)' '$($(1)_URL)' || \
- wget -c -O '$($(1)_FILE)' '$($(1)_URL_2)', \
- wget -c -O '$($(1)_FILE)' '$($(1)_URL)'))
+ $(if $$(shell $(call CHECK_PKG_ARCHIVE,$(1)) || echo 'error'),
+ $(call DOWNLOAD_PKG_ARCHIVE,$(1))
+ $(call CHECK_PKG_ARCHIVE,$(1))
+ ,)
$(if $(value $(1)_BUILD),
rm -rf '$(2)'
mkdir -p '$(2)'
@@ -122,17 +126,22 @@ clean-pkg:
.PHONY: update
define UPDATE
- $(if $(2), \
- $(info $(1): $(2)) \
- $(if $(filter $(2),$($(1)_VERSION)), \
- , \
- $(SED) 's/^\([^ ]*_VERSION *:=\).*/\1 $(2)/' -i '$(TOP_DIR)/src/$(1).mk'), \
+ $(if $(2),
+ $(info $(1): $(2))
+ $(if $(filter $(2),$($(1)_VERSION)),
+ ,
+ $(SED) 's/^\([^ ]*_VERSION *:=\).*/\1 $(2)/' -i '$(TOP_DIR)/src/$(1).mk'
+ $(MAKE) -f '$(MAKEFILE)' 'update-checksum-$(1)'),
$(error Unable to update version number: $(1)))
endef
update:
$(foreach PKG,$(PKG_RULES),$(call UPDATE,$(PKG),$(shell $($(PKG)_UPDATE))))
+update-checksum-%:
+ $(call DOWNLOAD_PKG_ARCHIVE,$*)
+ $(SED) 's/^\([^ ]*_CHECKSUM *:=\).*/\1 $(shell $(call PKG_CHECKSUM,$*))/' -i '$(TOP_DIR)/src/$*.mk'
+
.PHONY: dist
dist:
rm -rf 'mingw_cross_env-$(VERSION)'
diff --git a/src/atk.mk b/src/atk.mk
index fe3dbec..6b4a61f 100644
--- a/src/atk.mk
+++ b/src/atk.mk
@@ -1,12 +1,13 @@
# ATK
-PKG := atk
-$(PKG)_VERSION := 1.24.0
-$(PKG)_SUBDIR := atk-$($(PKG)_VERSION)
-$(PKG)_FILE := atk-$($(PKG)_VERSION).tar.bz2
-$(PKG)_WEBSITE := http://www.gtk.org/
-$(PKG)_URL := http://ftp.gnome.org/pub/gnome/sources/atk/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc glib gettext
+PKG := atk
+$(PKG)_VERSION := 1.24.0
+$(PKG)_CHECKSUM := 85ff5bd8f1879d2a43dfcf4842fc5ea9125dec11
+$(PKG)_SUBDIR := atk-$($(PKG)_VERSION)
+$(PKG)_FILE := atk-$($(PKG)_VERSION).tar.bz2
+$(PKG)_WEBSITE := http://www.gtk.org/
+$(PKG)_URL := http://ftp.gnome.org/pub/gnome/sources/atk/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc glib gettext
define $(PKG)_UPDATE
wget -q -O- 'http://www.gtk.org/download-windows.html' | \
diff --git a/src/binutils.mk b/src/binutils.mk
index 56d5903..c28f5a9 100644
--- a/src/binutils.mk
+++ b/src/binutils.mk
@@ -1,12 +1,13 @@
# MinGW binutils
-PKG := binutils
-$(PKG)_VERSION := 2.19.1
-$(PKG)_SUBDIR := binutils-$(firstword $(subst -, ,$($(PKG)_VERSION)))
-$(PKG)_FILE := binutils-$($(PKG)_VERSION)-src.tar.gz
-$(PKG)_WEBSITE := http://mingw.sourceforge.net/
-$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/mingw/$($(PKG)_FILE)
-$(PKG)_DEPS := mingwrt w32api
+PKG := binutils
+$(PKG)_VERSION := 2.19.1
+$(PKG)_CHECKSUM := 7e930435c47991c4070b1c74b010350e4669011f
+$(PKG)_SUBDIR := binutils-$(firstword $(subst -, ,$($(PKG)_VERSION)))
+$(PKG)_FILE := binutils-$($(PKG)_VERSION)-src.tar.gz
+$(PKG)_WEBSITE := http://mingw.sourceforge.net/
+$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/mingw/$($(PKG)_FILE)
+$(PKG)_DEPS := mingwrt w32api
define $(PKG)_UPDATE
wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=11290' | \
diff --git a/src/boost.mk b/src/boost.mk
index 0ab8883..2d08a5d 100644
--- a/src/boost.mk
+++ b/src/boost.mk
@@ -1,12 +1,13 @@
# Boost C++ Library
-PKG := boost
-$(PKG)_VERSION := 1_38_0
-$(PKG)_SUBDIR := boost_$($(PKG)_VERSION)
-$(PKG)_FILE := boost_$($(PKG)_VERSION).tar.bz2
-$(PKG)_WEBSITE := http://www.boost.org/
-$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/boost/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc zlib bzip2 expat
+PKG := boost
+$(PKG)_VERSION := 1_38_0
+$(PKG)_CHECKSUM := b32ff8133b0a38a74553c0d33cb1d70b3ce2d8f1
+$(PKG)_SUBDIR := boost_$($(PKG)_VERSION)
+$(PKG)_FILE := boost_$($(PKG)_VERSION).tar.bz2
+$(PKG)_WEBSITE := http://www.boost.org/
+$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/boost/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc zlib bzip2 expat
define $(PKG)_UPDATE
wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=7586&package_id=8041' | \
diff --git a/src/bzip2.mk b/src/bzip2.mk
index fbf1386..12b28f4 100644
--- a/src/bzip2.mk
+++ b/src/bzip2.mk
@@ -1,12 +1,13 @@
# bzip2
-PKG := bzip2
-$(PKG)_VERSION := 1.0.5
-$(PKG)_SUBDIR := bzip2-$($(PKG)_VERSION)
-$(PKG)_FILE := bzip2-$($(PKG)_VERSION).tar.gz
-$(PKG)_WEBSITE := http://www.bzip.org/
-$(PKG)_URL := http://www.bzip.org/$($(PKG)_VERSION)/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc
+PKG := bzip2
+$(PKG)_VERSION := 1.0.5
+$(PKG)_CHECKSUM := 8b02713ea0c8eb501cc8bdac4432d7f29700f767
+$(PKG)_SUBDIR := bzip2-$($(PKG)_VERSION)
+$(PKG)_FILE := bzip2-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://www.bzip.org/
+$(PKG)_URL := http://www.bzip.org/$($(PKG)_VERSION)/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'http://www.bzip.org/downloads.html' | \
diff --git a/src/cairo.mk b/src/cairo.mk
index 4feb41c..bcc960d 100644
--- a/src/cairo.mk
+++ b/src/cairo.mk
@@ -1,12 +1,13 @@
# cairo
-PKG := cairo
-$(PKG)_VERSION := 1.8.6
-$(PKG)_SUBDIR := cairo-$($(PKG)_VERSION)
-$(PKG)_FILE := cairo-$($(PKG)_VERSION).tar.gz
-$(PKG)_WEBSITE := http://cairographics.org/
-$(PKG)_URL := http://cairographics.org/releases/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc zlib libpng fontconfig freetype pixman
+PKG := cairo
+$(PKG)_VERSION := 1.8.6
+$(PKG)_CHECKSUM := d1e5479d4eeb7b1a3589672e3ef8f4899e7c5eba
+$(PKG)_SUBDIR := cairo-$($(PKG)_VERSION)
+$(PKG)_FILE := cairo-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://cairographics.org/
+$(PKG)_URL := http://cairographics.org/releases/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc zlib libpng fontconfig freetype pixman
define $(PKG)_UPDATE
wget -q -O- 'http://cairographics.org/releases/' | \
diff --git a/src/curl.mk b/src/curl.mk
index b0baf8a..7453951 100644
--- a/src/curl.mk
+++ b/src/curl.mk
@@ -1,12 +1,13 @@
# cURL
-PKG := curl
-$(PKG)_VERSION := 7.19.4
-$(PKG)_SUBDIR := curl-$($(PKG)_VERSION)
-$(PKG)_FILE := curl-$($(PKG)_VERSION).tar.bz2
-$(PKG)_WEBSITE := http://curl.haxx.se/libcurl/
-$(PKG)_URL := http://curl.haxx.se/download/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc gnutls libidn
+PKG := curl
+$(PKG)_VERSION := 7.19.4
+$(PKG)_CHECKSUM := 6b8cb206990cd68d8653cea16a47bd0febd5c50d
+$(PKG)_SUBDIR := curl-$($(PKG)_VERSION)
+$(PKG)_FILE := curl-$($(PKG)_VERSION).tar.bz2
+$(PKG)_WEBSITE := http://curl.haxx.se/libcurl/
+$(PKG)_URL := http://curl.haxx.se/download/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc gnutls libidn
define $(PKG)_UPDATE
wget -q -O- 'http://curl.haxx.se/changes.html' | \
diff --git a/src/expat.mk b/src/expat.mk
index 568b3ac..b35d33a 100644
--- a/src/expat.mk
+++ b/src/expat.mk
@@ -1,12 +1,13 @@
# Expat XML Parser
-PKG := expat
-$(PKG)_VERSION := 2.0.1
-$(PKG)_SUBDIR := expat-$($(PKG)_VERSION)
-$(PKG)_FILE := expat-$($(PKG)_VERSION).tar.gz
-$(PKG)_WEBSITE := http://expat.sourceforge.net/
-$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/expat/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc
+PKG := expat
+$(PKG)_VERSION := 2.0.1
+$(PKG)_CHECKSUM := 663548c37b996082db1f2f2c32af060d7aa15c2d
+$(PKG)_SUBDIR := expat-$($(PKG)_VERSION)
+$(PKG)_FILE := expat-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://expat.sourceforge.net/
+$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/expat/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=10127&package_id=10780' | \
diff --git a/src/fltk.mk b/src/fltk.mk
index a4de84d..a068f40 100644
--- a/src/fltk.mk
+++ b/src/fltk.mk
@@ -1,12 +1,13 @@
# FLTK
-PKG := fltk
-$(PKG)_VERSION := 1.1.9
-$(PKG)_SUBDIR := fltk-$($(PKG)_VERSION)
-$(PKG)_FILE := fltk-$($(PKG)_VERSION)-source.tar.bz2
-$(PKG)_WEBSITE := http://www.fltk.org/
-$(PKG)_URL := http://ftp.easysw.com/pub/fltk/$($(PKG)_VERSION)/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc pthreads zlib jpeg libpng
+PKG := fltk
+$(PKG)_VERSION := 1.1.9
+$(PKG)_CHECKSUM := 6f21903dc53c829ec71e8e49655eb19e624c8247
+$(PKG)_SUBDIR := fltk-$($(PKG)_VERSION)
+$(PKG)_FILE := fltk-$($(PKG)_VERSION)-source.tar.bz2
+$(PKG)_WEBSITE := http://www.fltk.org/
+$(PKG)_URL := http://ftp.easysw.com/pub/fltk/$($(PKG)_VERSION)/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc pthreads zlib jpeg libpng
define $(PKG)_UPDATE
wget -q -O- 'http://www.fltk.org/' | \
diff --git a/src/fontconfig.mk b/src/fontconfig.mk
index 15728b5..bcc3153 100644
--- a/src/fontconfig.mk
+++ b/src/fontconfig.mk
@@ -1,12 +1,13 @@
# fontconfig
-PKG := fontconfig
-$(PKG)_VERSION := 2.6.0
-$(PKG)_SUBDIR := fontconfig-$($(PKG)_VERSION)
-$(PKG)_FILE := fontconfig-$($(PKG)_VERSION).tar.gz
-$(PKG)_WEBSITE := http://fontconfig.org/
-$(PKG)_URL := http://fontconfig.org/release/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc freetype expat
+PKG := fontconfig
+$(PKG)_VERSION := 2.6.0
+$(PKG)_CHECKSUM := 93752566b8327485b153bd156049614f779b4c57
+$(PKG)_SUBDIR := fontconfig-$($(PKG)_VERSION)
+$(PKG)_FILE := fontconfig-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://fontconfig.org/
+$(PKG)_URL := http://fontconfig.org/release/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc freetype expat
define $(PKG)_UPDATE
wget -q -O- 'http://fontconfig.org/release/' | \
diff --git a/src/freetype.mk b/src/freetype.mk
index 4f10a0a..1672a9b 100644
--- a/src/freetype.mk
+++ b/src/freetype.mk
@@ -1,12 +1,13 @@
# freetype
-PKG := freetype
-$(PKG)_VERSION := 2.3.9
-$(PKG)_SUBDIR := freetype-$($(PKG)_VERSION)
-$(PKG)_FILE := freetype-$($(PKG)_VERSION).tar.bz2
-$(PKG)_WEBSITE := http://freetype.sourceforge.net/
-$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/freetype/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc zlib
+PKG := freetype
+$(PKG)_VERSION := 2.3.9
+$(PKG)_CHECKSUM := db08969cb5053879ff9e973fe6dd2c52c7ea2d4e
+$(PKG)_SUBDIR := freetype-$($(PKG)_VERSION)
+$(PKG)_FILE := freetype-$($(PKG)_VERSION).tar.bz2
+$(PKG)_WEBSITE := http://freetype.sourceforge.net/
+$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/freetype/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc zlib
define $(PKG)_UPDATE
wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=3157&package_id=3121' | \
diff --git a/src/gcc-core.mk b/src/gcc-core.mk
index b736bfb..6db00d3 100644
--- a/src/gcc-core.mk
+++ b/src/gcc-core.mk
@@ -1,12 +1,13 @@
# GCC core
-PKG := gcc-core
-$(PKG)_VERSION := 4.3.3
-$(PKG)_SUBDIR := gcc-$($(PKG)_VERSION)
-$(PKG)_FILE := gcc-core-$($(PKG)_VERSION).tar.bz2
-$(PKG)_WEBSITE := http://gcc.gnu.org/
-$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/tdm-gcc/$($(PKG)_FILE)
-$(PKG)_DEPS :=
+PKG := gcc-core
+$(PKG)_VERSION := 4.3.3
+$(PKG)_CHECKSUM := b907061e5788d7060bfb94396152ba9fc0786f91
+$(PKG)_SUBDIR := gcc-$($(PKG)_VERSION)
+$(PKG)_FILE := gcc-core-$($(PKG)_VERSION).tar.bz2
+$(PKG)_WEBSITE := http://gcc.gnu.org/
+$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/tdm-gcc/$($(PKG)_FILE)
+$(PKG)_DEPS :=
define $(PKG)_UPDATE
wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=200665&package_id=238462' | \
diff --git a/src/gcc-fortran.mk b/src/gcc-fortran.mk
index e350160..14a2b08 100644
--- a/src/gcc-fortran.mk
+++ b/src/gcc-fortran.mk
@@ -1,12 +1,13 @@
# GCC fortran
-PKG := gcc-fortran
-$(PKG)_VERSION := 4.3.3
-$(PKG)_SUBDIR := gcc-$($(PKG)_VERSION)
-$(PKG)_FILE := gcc-fortran-$($(PKG)_VERSION).tar.bz2
-$(PKG)_WEBSITE := http://gcc.gnu.org/
-$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/tdm-gcc/$($(PKG)_FILE)
-$(PKG)_DEPS :=
+PKG := gcc-fortran
+$(PKG)_VERSION := 4.3.3
+$(PKG)_CHECKSUM := 14d8a5974fa16dcd5a9e2452db7fa9afc46b3be4
+$(PKG)_SUBDIR := gcc-$($(PKG)_VERSION)
+$(PKG)_FILE := gcc-fortran-$($(PKG)_VERSION).tar.bz2
+$(PKG)_WEBSITE := http://gcc.gnu.org/
+$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/tdm-gcc/$($(PKG)_FILE)
+$(PKG)_DEPS :=
define $(PKG)_UPDATE
wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=200665&package_id=238462' | \
diff --git a/src/gcc-g++.mk b/src/gcc-g++.mk
index 57bb7f6..fd3a1f5 100644
--- a/src/gcc-g++.mk
+++ b/src/gcc-g++.mk
@@ -1,12 +1,13 @@
# GCC g++
-PKG := gcc-g++
-$(PKG)_VERSION := 4.3.3
-$(PKG)_SUBDIR := gcc-$($(PKG)_VERSION)
-$(PKG)_FILE := gcc-g++-$($(PKG)_VERSION).tar.bz2
-$(PKG)_WEBSITE := http://gcc.gnu.org/
-$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/tdm-gcc/$($(PKG)_FILE)
-$(PKG)_DEPS :=
+PKG := gcc-g++
+$(PKG)_VERSION := 4.3.3
+$(PKG)_CHECKSUM := cb41dc7f52a23167b1dfdadadd437bbecb1dce05
+$(PKG)_SUBDIR := gcc-$($(PKG)_VERSION)
+$(PKG)_FILE := gcc-g++-$($(PKG)_VERSION).tar.bz2
+$(PKG)_WEBSITE := http://gcc.gnu.org/
+$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/tdm-gcc/$($(PKG)_FILE)
+$(PKG)_DEPS :=
define $(PKG)_UPDATE
wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=200665&package_id=238462' | \
diff --git a/src/gcc-gmp.mk b/src/gcc-gmp.mk
index ccdb121..af643f9 100644
--- a/src/gcc-gmp.mk
+++ b/src/gcc-gmp.mk
@@ -1,12 +1,13 @@
# GMP for GCC
-PKG := gcc-gmp
-$(PKG)_VERSION := 4.2.4
-$(PKG)_SUBDIR := gmp-$($(PKG)_VERSION)
-$(PKG)_FILE := gmp-$($(PKG)_VERSION).tar.bz2
-$(PKG)_WEBSITE := http://www.gmplib.org/
-$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/tdm-gcc/$($(PKG)_FILE)
-$(PKG)_DEPS :=
+PKG := gcc-gmp
+$(PKG)_VERSION := 4.2.4
+$(PKG)_CHECKSUM := bb721f94fbeeb8c609104540b408da6707c370ec
+$(PKG)_SUBDIR := gmp-$($(PKG)_VERSION)
+$(PKG)_FILE := gmp-$($(PKG)_VERSION).tar.bz2
+$(PKG)_WEBSITE := http://www.gmplib.org/
+$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/tdm-gcc/$($(PKG)_FILE)
+$(PKG)_DEPS :=
define $(PKG)_UPDATE
wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=200665&package_id=238462' | \
diff --git a/src/gcc-mpfr.mk b/src/gcc-mpfr.mk
index 39d9de8..91eb4f8 100644
--- a/src/gcc-mpfr.mk
+++ b/src/gcc-mpfr.mk
@@ -1,12 +1,13 @@
# MPFR for GCC
-PKG := gcc-mpfr
-$(PKG)_VERSION := 2.3.2
-$(PKG)_SUBDIR := mpfr-$($(PKG)_VERSION)
-$(PKG)_FILE := mpfr-$($(PKG)_VERSION).tar.bz2
-$(PKG)_WEBSITE := http://www.mpfr.org/
-$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/tdm-gcc/$($(PKG)_FILE)
-$(PKG)_DEPS :=
+PKG := gcc-mpfr
+$(PKG)_VERSION := 2.3.2
+$(PKG)_CHECKSUM := 37dbd478e1c136f37cf4c68eb1522e86e2307288
+$(PKG)_SUBDIR := mpfr-$($(PKG)_VERSION)
+$(PKG)_FILE := mpfr-$($(PKG)_VERSION).tar.bz2
+$(PKG)_WEBSITE := http://www.mpfr.org/
+$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/tdm-gcc/$($(PKG)_FILE)
+$(PKG)_DEPS :=
define $(PKG)_UPDATE
wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=200665&package_id=238462' | \
diff --git a/src/gcc-objc.mk b/src/gcc-objc.mk
index 2f4dbd5..5778faa 100644
--- a/src/gcc-objc.mk
+++ b/src/gcc-objc.mk
@@ -1,12 +1,13 @@
# GCC objc
-PKG := gcc-objc
-$(PKG)_VERSION := 4.3.3
-$(PKG)_SUBDIR := gcc-$($(PKG)_VERSION)
-$(PKG)_FILE := gcc-objc-$($(PKG)_VERSION).tar.bz2
-$(PKG)_WEBSITE := http://gcc.gnu.org/
-$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/tdm-gcc/$($(PKG)_FILE)
-$(PKG)_DEPS :=
+PKG := gcc-objc
+$(PKG)_VERSION := 4.3.3
+$(PKG)_CHECKSUM := 2459c314ebb9c8661870b42a146def33826cf147
+$(PKG)_SUBDIR := gcc-$($(PKG)_VERSION)
+$(PKG)_FILE := gcc-objc-$($(PKG)_VERSION).tar.bz2
+$(PKG)_WEBSITE := http://gcc.gnu.org/
+$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/tdm-gcc/$($(PKG)_FILE)
+$(PKG)_DEPS :=
define $(PKG)_UPDATE
wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=200665&package_id=238462' | \
diff --git a/src/gcc.mk b/src/gcc.mk
index c1f93b1..2bcf693 100644
--- a/src/gcc.mk
+++ b/src/gcc.mk
@@ -1,12 +1,13 @@
# TDM-GCC
-PKG := gcc
-$(PKG)_VERSION := 4.3.3-tdm-1
-$(PKG)_SUBDIR := .
-$(PKG)_FILE := gcc-$($(PKG)_VERSION)-srcbase.zip
-$(PKG)_WEBSITE := http://www.tdragon.net/recentgcc/
-$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/tdm-gcc/$($(PKG)_FILE)
-$(PKG)_DEPS := pkg_config mingwrt w32api binutils gcc-gmp gcc-mpfr gcc-core gcc-g++ gcc-objc gcc-fortran
+PKG := gcc
+$(PKG)_VERSION := 4.3.3-tdm-1
+$(PKG)_CHECKSUM := 74a2f7867e27e414ffd5973fe6e70c8ac0f9d53c
+$(PKG)_SUBDIR := .
+$(PKG)_FILE := gcc-$($(PKG)_VERSION)-srcbase.zip
+$(PKG)_WEBSITE := http://www.tdragon.net/recentgcc/
+$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/tdm-gcc/$($(PKG)_FILE)
+$(PKG)_DEPS := pkg_config mingwrt w32api binutils gcc-gmp gcc-mpfr gcc-core gcc-g++ gcc-objc gcc-fortran
define $(PKG)_UPDATE
wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=200665&package_id=238347' | \
diff --git a/src/gd.mk b/src/gd.mk
index e6bfa95..37ac071 100644
--- a/src/gd.mk
+++ b/src/gd.mk
@@ -1,13 +1,14 @@
# GD (without support for xpm)
-PKG := gd
-$(PKG)_VERSION := 2.0.35
-$(PKG)_SUBDIR := gd-$($(PKG)_VERSION)
-$(PKG)_FILE := gd-$($(PKG)_VERSION).tar.bz2
-$(PKG)_WEBSITE := http://www.libgd.org/
-$(PKG)_URL := http://www.libgd.org/releases/$($(PKG)_FILE)
-$(PKG)_URL_2 := http://www.libgd.org/releases/oldreleases/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc freetype libpng libxml2
+PKG := gd
+$(PKG)_VERSION := 2.0.35
+$(PKG)_CHECKSUM := ccf34a610abff2dbf133a20c4d2a4aa94939018a
+$(PKG)_SUBDIR := gd-$($(PKG)_VERSION)
+$(PKG)_FILE := gd-$($(PKG)_VERSION).tar.bz2
+$(PKG)_WEBSITE := http://www.libgd.org/
+$(PKG)_URL := http://www.libgd.org/releases/$($(PKG)_FILE)
+$(PKG)_URL_2 := http://www.libgd.org/releases/oldreleases/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc freetype libpng libxml2
define $(PKG)_UPDATE
wget -q -O- 'http://www.libgd.org/releases/' | \
diff --git a/src/gdal.mk b/src/gdal.mk
index 4e33881..35679b0 100644
--- a/src/gdal.mk
+++ b/src/gdal.mk
@@ -1,12 +1,13 @@
# GDAL
-PKG := gdal
-$(PKG)_VERSION := 1.6.0
-$(PKG)_SUBDIR := gdal-$($(PKG)_VERSION)
-$(PKG)_FILE := gdal-$($(PKG)_VERSION).tar.gz
-$(PKG)_WEBSITE := http://www.gdal.org/
-$(PKG)_URL := http://download.osgeo.org/gdal/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc zlib libpng tiff libgeotiff jpeg giflib expat curl geos
+PKG := gdal
+$(PKG)_VERSION := 1.6.0
+$(PKG)_CHECKSUM := cae5a891231ee5794350d1626a688d802a429423
+$(PKG)_SUBDIR := gdal-$($(PKG)_VERSION)
+$(PKG)_FILE := gdal-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://www.gdal.org/
+$(PKG)_URL := http://download.osgeo.org/gdal/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc zlib libpng tiff libgeotiff jpeg giflib expat curl geos
define $(PKG)_UPDATE
wget -q -O- 'http://trac.osgeo.org/gdal/wiki/DownloadSource' | \
diff --git a/src/geos.mk b/src/geos.mk
index 074b27f..d00a729 100644
--- a/src/geos.mk
+++ b/src/geos.mk
@@ -1,12 +1,13 @@
# GEOS
-PKG := geos
-$(PKG)_VERSION := 3.1.0
-$(PKG)_SUBDIR := geos-$($(PKG)_VERSION)
-$(PKG)_FILE := geos-$($(PKG)_VERSION).tar.bz2
-$(PKG)_WEBSITE := http://trac.osgeo.org/geos/
-$(PKG)_URL := http://download.osgeo.org/geos/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc
+PKG := geos
+$(PKG)_VERSION := 3.1.0
+$(PKG)_CHECKSUM := a36b462e4afac91d7aacef9944bff0706ea64168
+$(PKG)_SUBDIR := geos-$($(PKG)_VERSION)
+$(PKG)_FILE := geos-$($(PKG)_VERSION).tar.bz2
+$(PKG)_WEBSITE := http://trac.osgeo.org/geos/
+$(PKG)_URL := http://download.osgeo.org/geos/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'http://geos.refractions.net/' | \
diff --git a/src/gettext.mk b/src/gettext.mk
index d3aac52..ee0d560 100644
--- a/src/gettext.mk
+++ b/src/gettext.mk
@@ -1,12 +1,13 @@
# gettext
-PKG := gettext
-$(PKG)_VERSION := 0.17
-$(PKG)_SUBDIR := gettext-$($(PKG)_VERSION)
-$(PKG)_FILE := gettext-$($(PKG)_VERSION).tar.gz
-$(PKG)_WEBSITE := http://www.gnu.org/software/gettext/
-$(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/gettext/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc libiconv
+PKG := gettext
+$(PKG)_VERSION := 0.17
+$(PKG)_CHECKSUM := c51803d9f745f6ace36bd09c0486d5735ce399cf
+$(PKG)_SUBDIR := gettext-$($(PKG)_VERSION)
+$(PKG)_FILE := gettext-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://www.gnu.org/software/gettext/
+$(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/gettext/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc libiconv
define $(PKG)_UPDATE
wget -q -O- 'http://www.gnu.org/software/gettext/' | \
diff --git a/src/giflib.mk b/src/giflib.mk
index 9b3d2f6..7c10f57 100644
--- a/src/giflib.mk
+++ b/src/giflib.mk
@@ -1,12 +1,13 @@
# giflib
-PKG := giflib
-$(PKG)_VERSION := 4.1.6
-$(PKG)_SUBDIR := giflib-$($(PKG)_VERSION)
-$(PKG)_FILE := giflib-$($(PKG)_VERSION).tar.bz2
-$(PKG)_WEBSITE := http://sourceforge.net/projects/libungif/
-$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/giflib/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc
+PKG := giflib
+$(PKG)_VERSION := 4.1.6
+$(PKG)_CHECKSUM := 22680f604ec92065f04caf00b1c180ba74fb8562
+$(PKG)_SUBDIR := giflib-$($(PKG)_VERSION)
+$(PKG)_FILE := giflib-$($(PKG)_VERSION).tar.bz2
+$(PKG)_WEBSITE := http://sourceforge.net/projects/libungif/
+$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/giflib/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=102202&package_id=119585' | \
diff --git a/src/glew.mk b/src/glew.mk
index e03ed5d..4541027 100644
--- a/src/glew.mk
+++ b/src/glew.mk
@@ -1,12 +1,13 @@
# GLEW
-PKG := glew
-$(PKG)_VERSION := 1.5.1
-$(PKG)_SUBDIR := glew
-$(PKG)_FILE := glew-$($(PKG)_VERSION)-src.tgz
-$(PKG)_WEBSITE := http://glew.sourceforge.net/
-$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/glew/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc
+PKG := glew
+$(PKG)_VERSION := 1.5.1
+$(PKG)_CHECKSUM := a94113169d46487ccda1bb2fde68fa1803bdf009
+$(PKG)_SUBDIR := glew
+$(PKG)_FILE := glew-$($(PKG)_VERSION)-src.tgz
+$(PKG)_WEBSITE := http://glew.sourceforge.net/
+$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/glew/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=67586&package_id=67942' | \
diff --git a/src/glib.mk b/src/glib.mk
index fc308ba..bc7bf1c 100644
--- a/src/glib.mk
+++ b/src/glib.mk
@@ -1,12 +1,13 @@
# GLib
-PKG := glib
-$(PKG)_VERSION := 2.20.0
-$(PKG)_SUBDIR := glib-$($(PKG)_VERSION)
-$(PKG)_FILE := glib-$($(PKG)_VERSION).tar.bz2
-$(PKG)_WEBSITE := http://www.gtk.org/
-$(PKG)_URL := http://ftp.gnome.org/pub/gnome/sources/glib/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc gettext pcre libiconv
+PKG := glib
+$(PKG)_VERSION := 2.20.0
+$(PKG)_CHECKSUM := 4d653ef39fd1ebe7b64217fd824dfb1bbbde7007
+$(PKG)_SUBDIR := glib-$($(PKG)_VERSION)
+$(PKG)_FILE := glib-$($(PKG)_VERSION).tar.bz2
+$(PKG)_WEBSITE := http://www.gtk.org/
+$(PKG)_URL := http://ftp.gnome.org/pub/gnome/sources/glib/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc gettext pcre libiconv
define $(PKG)_UPDATE
wget -q -O- 'http://www.gtk.org/download-windows.html' | \
diff --git a/src/gnutls.mk b/src/gnutls.mk
index 83dd24f..17c63ef 100644
--- a/src/gnutls.mk
+++ b/src/gnutls.mk
@@ -1,13 +1,14 @@
# GnuTLS
-PKG := gnutls
-$(PKG)_VERSION := 2.6.4
-$(PKG)_SUBDIR := gnutls-$($(PKG)_VERSION)
-$(PKG)_FILE := gnutls-$($(PKG)_VERSION).tar.bz2
-$(PKG)_WEBSITE := http://www.gnu.org/software/gnutls/
-$(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/gnutls/$($(PKG)_FILE)
-$(PKG)_URL_2 := ftp://ftp.gnupg.org/gcrypt/gnutls/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc libgcrypt
+PKG := gnutls
+$(PKG)_VERSION := 2.6.4
+$(PKG)_CHECKSUM := 11dd1e11599906a32b3ff92308f4c4dbaadbad58
+$(PKG)_SUBDIR := gnutls-$($(PKG)_VERSION)
+$(PKG)_FILE := gnutls-$($(PKG)_VERSION).tar.bz2
+$(PKG)_WEBSITE := http://www.gnu.org/software/gnutls/
+$(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/gnutls/$($(PKG)_FILE)
+$(PKG)_URL_2 := ftp://ftp.gnupg.org/gcrypt/gnutls/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc libgcrypt
define $(PKG)_UPDATE
wget -q -O- 'http://git.savannah.gnu.org/gitweb/?p=gnutls.git;a=tags' | \
diff --git a/src/gtk.mk b/src/gtk.mk
index 30b3f18..b3bbcfe 100644
--- a/src/gtk.mk
+++ b/src/gtk.mk
@@ -1,12 +1,13 @@
# GTK+
-PKG := gtk
-$(PKG)_VERSION := 2.16.0
-$(PKG)_SUBDIR := gtk+-$($(PKG)_VERSION)
-$(PKG)_FILE := gtk+-$($(PKG)_VERSION).tar.bz2
-$(PKG)_WEBSITE := http://www.gtk.org/
-$(PKG)_URL := http://ftp.gnome.org/pub/gnome/sources/gtk+/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc gettext libpng jpeg tiff jasper glib atk pango cairo
+PKG := gtk
+$(PKG)_VERSION := 2.16.0
+$(PKG)_CHECKSUM := b737ad4b224a3cff966ef43b2682c696d756764c
+$(PKG)_SUBDIR := gtk+-$($(PKG)_VERSION)
+$(PKG)_FILE := gtk+-$($(PKG)_VERSION).tar.bz2
+$(PKG)_WEBSITE := http://www.gtk.org/
+$(PKG)_URL := http://ftp.gnome.org/pub/gnome/sources/gtk+/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc gettext libpng jpeg tiff jasper glib atk pango cairo
define $(PKG)_UPDATE
wget -q -O- 'http://www.gtk.org/download-windows.html' | \
diff --git a/src/ilmbase.mk b/src/ilmbase.mk
index fc588ee..875d5a0 100644
--- a/src/ilmbase.mk
+++ b/src/ilmbase.mk
@@ -1,12 +1,13 @@
# IlmBase
-PKG := ilmbase
-$(PKG)_VERSION := 1.0.1
-$(PKG)_SUBDIR := ilmbase-$($(PKG)_VERSION)
-$(PKG)_FILE := ilmbase-$($(PKG)_VERSION).tar.gz
-$(PKG)_WEBSITE := http://www.openexr.com/
-$(PKG)_URL := http://download.savannah.nongnu.org/releases/openexr/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc
+PKG := ilmbase
+$(PKG)_VERSION := 1.0.1
+$(PKG)_CHECKSUM := 143adc547be83c6df75831ae957eef4b2706c9c0
+$(PKG)_SUBDIR := ilmbase-$($(PKG)_VERSION)
+$(PKG)_FILE := ilmbase-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://www.openexr.com/
+$(PKG)_URL := http://download.savannah.nongnu.org/releases/openexr/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'http://www.openexr.com/downloads.html' | \
diff --git a/src/jasper.mk b/src/jasper.mk
index 83c8944..8d9b43f 100644
--- a/src/jasper.mk
+++ b/src/jasper.mk
@@ -1,12 +1,13 @@
# JasPer
-PKG := jasper
-$(PKG)_VERSION := 1.900.1
-$(PKG)_SUBDIR := jasper-$($(PKG)_VERSION)
-$(PKG)_FILE := jasper-$($(PKG)_VERSION).zip
-$(PKG)_WEBSITE := http://www.ece.uvic.ca/~mdadams/jasper/
-$(PKG)_URL := http://www.ece.uvic.ca/~mdadams/jasper/software/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc jpeg
+PKG := jasper
+$(PKG)_VERSION := 1.900.1
+$(PKG)_CHECKSUM := 9c5735f773922e580bf98c7c7dfda9bbed4c5191
+$(PKG)_SUBDIR := jasper-$($(PKG)_VERSION)
+$(PKG)_FILE := jasper-$($(PKG)_VERSION).zip
+$(PKG)_WEBSITE := http://www.ece.uvic.ca/~mdadams/jasper/
+$(PKG)_URL := http://www.ece.uvic.ca/~mdadams/jasper/software/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc jpeg
define $(PKG)_UPDATE
wget -q -O- 'http://www.ece.uvic.ca/~mdadams/jasper/' | \
diff --git a/src/jpeg.mk b/src/jpeg.mk
index fcf2bb6..f275fe5 100644
--- a/src/jpeg.mk
+++ b/src/jpeg.mk
@@ -1,13 +1,14 @@
# jpeg
# http://packages.debian.org/unstable/source/libjpeg6b
-PKG := jpeg
-$(PKG)_VERSION := 6b
-$(PKG)_SUBDIR := jpeg-$($(PKG)_VERSION)
-$(PKG)_WEBSITE := http://www.ijg.org/
-$(PKG)_FILE := libjpeg6b_$($(PKG)_VERSION).orig.tar.gz
-$(PKG)_URL := http://ftp.debian.org/debian/pool/main/libj/libjpeg6b/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc
+PKG := jpeg
+$(PKG)_VERSION := 6b
+$(PKG)_CHECKSUM := 7079f0d6c42fad0cfba382cf6ad322add1ace8f9
+$(PKG)_SUBDIR := jpeg-$($(PKG)_VERSION)
+$(PKG)_WEBSITE := http://www.ijg.org/
+$(PKG)_FILE := libjpeg6b_$($(PKG)_VERSION).orig.tar.gz
+$(PKG)_URL := http://ftp.debian.org/debian/pool/main/libj/libjpeg6b/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'http://packages.debian.org/unstable/source/libjpeg6b' | \
diff --git a/src/libdnet.mk b/src/libdnet.mk
index efd98c9..8473a5f 100644
--- a/src/libdnet.mk
+++ b/src/libdnet.mk
@@ -1,12 +1,13 @@
# libdnet
-PKG := libdnet
-$(PKG)_VERSION := 1.11
-$(PKG)_SUBDIR := libdnet-$($(PKG)_VERSION)
-$(PKG)_FILE := libdnet-$($(PKG)_VERSION).tar.gz
-$(PKG)_WEBSITE := http://libdnet.sourceforge.net/
-$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/libdnet/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc winpcap
+PKG := libdnet
+$(PKG)_VERSION := 1.11
+$(PKG)_CHECKSUM := e2ae8c7f0ca95655ae9f77fd4a0e2235dc4716bf
+$(PKG)_SUBDIR := libdnet-$($(PKG)_VERSION)
+$(PKG)_FILE := libdnet-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://libdnet.sourceforge.net/
+$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/libdnet/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc winpcap
define $(PKG)_UPDATE
wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=36243&package_id=28560' | \
diff --git a/src/libgcrypt.mk b/src/libgcrypt.mk
index 9fa0b7c..e2d9bfc 100644
--- a/src/libgcrypt.mk
+++ b/src/libgcrypt.mk
@@ -1,12 +1,13 @@
# libgcrypt
-PKG := libgcrypt
-$(PKG)_VERSION := 1.4.4
-$(PKG)_SUBDIR := libgcrypt-$($(PKG)_VERSION)
-$(PKG)_FILE := libgcrypt-$($(PKG)_VERSION).tar.bz2
-$(PKG)_WEBSITE := ftp://ftp.gnupg.org/gcrypt/libgcrypt/
-$(PKG)_URL := ftp://ftp.gnupg.org/gcrypt/libgcrypt/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc libgpg_error
+PKG := libgcrypt
+$(PKG)_VERSION := 1.4.4
+$(PKG)_CHECKSUM := 3987f0efcbb7048c136d5c859e88eee1763a14f6
+$(PKG)_SUBDIR := libgcrypt-$($(PKG)_VERSION)
+$(PKG)_FILE := libgcrypt-$($(PKG)_VERSION).tar.bz2
+$(PKG)_WEBSITE := ftp://ftp.gnupg.org/gcrypt/libgcrypt/
+$(PKG)_URL := ftp://ftp.gnupg.org/gcrypt/libgcrypt/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc libgpg_error
define $(PKG)_UPDATE
wget -q -O- 'ftp://ftp.gnupg.org/gcrypt/libgcrypt/' | \
diff --git a/src/libgeotiff.mk b/src/libgeotiff.mk
index 76d9de8..fdcf752 100644
--- a/src/libgeotiff.mk
+++ b/src/libgeotiff.mk
@@ -1,13 +1,14 @@
# GeoTiff
-PKG := libgeotiff
-$(PKG)_VERSION := 1.2.5
-$(PKG)_SUBDIR := libgeotiff-$($(PKG)_VERSION)
-$(PKG)_FILE := libgeotiff-$($(PKG)_VERSION).tar.gz
-$(PKG)_WEBSITE := http://trac.osgeo.org/geotiff/
-$(PKG)_URL := http://download.osgeo.org/geotiff/libgeotiff/$($(PKG)_FILE)
-$(PKG)_URL_2 := ftp://ftp.remotesensing.org/pub/geotiff/libgeotiff/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc zlib jpeg tiff proj
+PKG := libgeotiff
+$(PKG)_VERSION := 1.2.5
+$(PKG)_CHECKSUM := 38b10070374636fedfdde328ff1c9f3c6e8e581f
+$(PKG)_SUBDIR := libgeotiff-$($(PKG)_VERSION)
+$(PKG)_FILE := libgeotiff-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://trac.osgeo.org/geotiff/
+$(PKG)_URL := http://download.osgeo.org/geotiff/libgeotiff/$($(PKG)_FILE)
+$(PKG)_URL_2 := ftp://ftp.remotesensing.org/pub/geotiff/libgeotiff/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc zlib jpeg tiff proj
define $(PKG)_UPDATE
wget -q -O- 'http://trac.osgeo.org/geotiff/' | \
diff --git a/src/libgpg_error.mk b/src/libgpg_error.mk
index 9d08c4c..a03816d 100644
--- a/src/libgpg_error.mk
+++ b/src/libgpg_error.mk
@@ -1,12 +1,13 @@
# libgpg-error
-PKG := libgpg_error
-$(PKG)_VERSION := 1.7
-$(PKG)_SUBDIR := libgpg-error-$($(PKG)_VERSION)
-$(PKG)_FILE := libgpg-error-$($(PKG)_VERSION).tar.bz2
-$(PKG)_WEBSITE := ftp://ftp.gnupg.org/gcrypt/libgpg-error/
-$(PKG)_URL := ftp://ftp.gnupg.org/gcrypt/libgpg-error/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc
+PKG := libgpg_error
+$(PKG)_VERSION := 1.7
+$(PKG)_CHECKSUM := bf8c6babe1e28cae7dd6374ca24ddcc42d57e902
+$(PKG)_SUBDIR := libgpg-error-$($(PKG)_VERSION)
+$(PKG)_FILE := libgpg-error-$($(PKG)_VERSION).tar.bz2
+$(PKG)_WEBSITE := ftp://ftp.gnupg.org/gcrypt/libgpg-error/
+$(PKG)_URL := ftp://ftp.gnupg.org/gcrypt/libgpg-error/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'ftp://ftp.gnupg.org/gcrypt/libgpg-error/' | \
diff --git a/src/libgsasl.mk b/src/libgsasl.mk
index 8a9ab04..f11fba0 100644
--- a/src/libgsasl.mk
+++ b/src/libgsasl.mk
@@ -1,12 +1,13 @@
# Libgsasl
-PKG := libgsasl
-$(PKG)_VERSION := 1.1
-$(PKG)_SUBDIR := libgsasl-$($(PKG)_VERSION)
-$(PKG)_FILE := libgsasl-$($(PKG)_VERSION).tar.gz
-$(PKG)_WEBSITE := http://www.gnu.org/software/gsasl/
-$(PKG)_URL := http://ftp.gnu.org/gnu/gsasl/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc libiconv libidn libntlm
+PKG := libgsasl
+$(PKG)_VERSION := 1.1
+$(PKG)_CHECKSUM := 6261807a5251eba564175169af0662e6e1583ca7
+$(PKG)_SUBDIR := libgsasl-$($(PKG)_VERSION)
+$(PKG)_FILE := libgsasl-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://www.gnu.org/software/gsasl/
+$(PKG)_URL := http://ftp.gnu.org/gnu/gsasl/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc libiconv libidn libntlm
define $(PKG)_UPDATE
wget -q -O- 'http://git.savannah.gnu.org/gitweb/?p=gsasl.git;a=tags' | \
diff --git a/src/libgsf.mk b/src/libgsf.mk
index ea90230..7cce34b 100644
--- a/src/libgsf.mk
+++ b/src/libgsf.mk
@@ -1,12 +1,13 @@
# libgsf
-PKG := libgsf
-$(PKG)_VERSION := 1.14.11
-$(PKG)_SUBDIR := libgsf-$($(PKG)_VERSION)
-$(PKG)_FILE := libgsf-$($(PKG)_VERSION).tar.bz2
-$(PKG)_WEBSITE := http://ftp.gnome.org/pub/gnome/sources/libgsf/
-$(PKG)_URL := http://ftp.gnome.org/pub/gnome/sources/libgsf/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc zlib bzip2 glib libxml2
+PKG := libgsf
+$(PKG)_VERSION := 1.14.11
+$(PKG)_CHECKSUM := 9f097ba5e3d538f6810ae27941a918964aea1de9
+$(PKG)_SUBDIR := libgsf-$($(PKG)_VERSION)
+$(PKG)_FILE := libgsf-$($(PKG)_VERSION).tar.bz2
+$(PKG)_WEBSITE := http://ftp.gnome.org/pub/gnome/sources/libgsf/
+$(PKG)_URL := http://ftp.gnome.org/pub/gnome/sources/libgsf/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc zlib bzip2 glib libxml2
define $(PKG)_UPDATE
wget -q -O- -U 'mingw_cross_env' 'http://freshmeat.net/projects/libgsf/' | \
diff --git a/src/libiconv.mk b/src/libiconv.mk
index 0cf0b74..cf25c76 100644
--- a/src/libiconv.mk
+++ b/src/libiconv.mk
@@ -1,12 +1,13 @@
# libiconv
-PKG := libiconv
-$(PKG)_VERSION := 1.12
-$(PKG)_SUBDIR := libiconv-$($(PKG)_VERSION)
-$(PKG)_FILE := libiconv-$($(PKG)_VERSION).tar.gz
-$(PKG)_WEBSITE := http://www.gnu.org/software/libiconv/
-$(PKG)_URL := http://ftp.gnu.org/pub/gnu/libiconv/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc
+PKG := libiconv
+$(PKG)_VERSION := 1.12
+$(PKG)_CHECKSUM := a5738d7dfbbd01c49e8ce026ea4ffa0f01af0179
+$(PKG)_SUBDIR := libiconv-$($(PKG)_VERSION)
+$(PKG)_FILE := libiconv-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://www.gnu.org/software/libiconv/
+$(PKG)_URL := http://ftp.gnu.org/pub/gnu/libiconv/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'http://www.gnu.org/software/libiconv/' | \
diff --git a/src/libidn.mk b/src/libidn.mk
index f739fea..79f1034 100644
--- a/src/libidn.mk
+++ b/src/libidn.mk
@@ -1,12 +1,13 @@
# Libidn
-PKG := libidn
-$(PKG)_VERSION := 1.14
-$(PKG)_SUBDIR := libidn-$($(PKG)_VERSION)
-$(PKG)_FILE := libidn-$($(PKG)_VERSION).tar.gz
-$(PKG)_WEBSITE := http://www.gnu.org/software/libidn/
-$(PKG)_URL := ftp://ftp.gnu.org/gnu/libidn/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc libiconv
+PKG := libidn
+$(PKG)_VERSION := 1.14
+$(PKG)_CHECKSUM := ab68746b9c74f07605b6b0ee13dc0b4b7b8101a8
+$(PKG)_SUBDIR := libidn-$($(PKG)_VERSION)
+$(PKG)_FILE := libidn-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://www.gnu.org/software/libidn/
+$(PKG)_URL := ftp://ftp.gnu.org/gnu/libidn/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc libiconv
define $(PKG)_UPDATE
wget -q -O- 'http://git.savannah.gnu.org/gitweb/?p=libidn.git;a=tags' | \
diff --git a/src/libmikmod.mk b/src/libmikmod.mk
index 6d7b1a7..3c709e5 100644
--- a/src/libmikmod.mk
+++ b/src/libmikmod.mk
@@ -1,12 +1,13 @@
# libMikMod
-PKG := libmikmod
-$(PKG)_VERSION := 3.2.0-beta2
-$(PKG)_SUBDIR := libmikmod-$($(PKG)_VERSION)
-$(PKG)_FILE := libmikmod-$($(PKG)_VERSION).tar.bz2
-$(PKG)_WEBSITE := http://mikmod.raphnet.net/
-$(PKG)_URL := http://mikmod.raphnet.net/files/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc pthreads
+PKG := libmikmod
+$(PKG)_VERSION := 3.2.0-beta2
+$(PKG)_CHECKSUM := f16fc09ee643af295a8642f578bda97a81aaf744
+$(PKG)_SUBDIR := libmikmod-$($(PKG)_VERSION)
+$(PKG)_FILE := libmikmod-$($(PKG)_VERSION).tar.bz2
+$(PKG)_WEBSITE := http://mikmod.raphnet.net/
+$(PKG)_URL := http://mikmod.raphnet.net/files/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc pthreads
define $(PKG)_UPDATE
wget -q -O- 'http://mikmod.raphnet.net/' | \
diff --git a/src/libntlm.mk b/src/libntlm.mk
index bde99e8..05dfdce 100644
--- a/src/libntlm.mk
+++ b/src/libntlm.mk
@@ -1,12 +1,13 @@
# Libntlm
-PKG := libntlm
-$(PKG)_VERSION := 1.0
-$(PKG)_SUBDIR := libntlm-$($(PKG)_VERSION)
-$(PKG)_FILE := libntlm-$($(PKG)_VERSION).tar.gz
-$(PKG)_WEBSITE := http://josefsson.org/libntlm/
-$(PKG)_URL := http://josefsson.org/libntlm/releases/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc
+PKG := libntlm
+$(PKG)_VERSION := 1.0
+$(PKG)_CHECKSUM := c6b351f2c0e5b999204d429c743d0005ba927fa4
+$(PKG)_SUBDIR := libntlm-$($(PKG)_VERSION)
+$(PKG)_FILE := libntlm-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://josefsson.org/libntlm/
+$(PKG)_URL := http://josefsson.org/libntlm/releases/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'http://git.savannah.gnu.org/gitweb/?p=libntlm.git;a=tags' | \
diff --git a/src/libpng.mk b/src/libpng.mk
index dea89f7..c03c789 100644
--- a/src/libpng.mk
+++ b/src/libpng.mk
@@ -1,12 +1,13 @@
# libpng
-PKG := libpng
-$(PKG)_VERSION := 1.2.35
-$(PKG)_SUBDIR := libpng-$($(PKG)_VERSION)
-$(PKG)_FILE := libpng-$($(PKG)_VERSION).tar.bz2
-$(PKG)_WEBSITE := http://www.libpng.org/
-$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/libpng/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc zlib
+PKG := libpng
+$(PKG)_VERSION := 1.2.35
+$(PKG)_CHECKSUM := aad4faf21a1fc5853a55a2ff51351707bde3f6ac
+$(PKG)_SUBDIR := libpng-$($(PKG)_VERSION)
+$(PKG)_FILE := libpng-$($(PKG)_VERSION).tar.bz2
+$(PKG)_WEBSITE := http://www.libpng.org/
+$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/libpng/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc zlib
define $(PKG)_UPDATE
wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=5624' | \
diff --git a/src/libxml2.mk b/src/libxml2.mk
index 0622fce..5f004a3 100644
--- a/src/libxml2.mk
+++ b/src/libxml2.mk
@@ -1,12 +1,13 @@
# libxml2
-PKG := libxml2
-$(PKG)_VERSION := 2.7.3
-$(PKG)_SUBDIR := libxml2-$($(PKG)_VERSION)
-$(PKG)_FILE := libxml2-$($(PKG)_VERSION).tar.gz
-$(PKG)_WEBSITE := http://www.xmlsoft.org/
-$(PKG)_URL := ftp://xmlsoft.org/libxml2/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc
+PKG := libxml2
+$(PKG)_VERSION := 2.7.3
+$(PKG)_CHECKSUM := fd4e427fb55c977876bc74c0e552ef7d3d794a07
+$(PKG)_SUBDIR := libxml2-$($(PKG)_VERSION)
+$(PKG)_FILE := libxml2-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://www.xmlsoft.org/
+$(PKG)_URL := ftp://xmlsoft.org/libxml2/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'ftp://xmlsoft.org/libxml2/' | \
diff --git a/src/libxslt.mk b/src/libxslt.mk
index 44f5dba..7e49b90 100644
--- a/src/libxslt.mk
+++ b/src/libxslt.mk
@@ -1,12 +1,13 @@
# libxslt
-PKG := libxslt
-$(PKG)_VERSION := 1.1.24
-$(PKG)_SUBDIR := libxslt-$($(PKG)_VERSION)
-$(PKG)_FILE := libxslt-$($(PKG)_VERSION).tar.gz
-$(PKG)_WEBSITE := http://xmlsoft.org/XSLT/
-$(PKG)_URL := ftp://xmlsoft.org/libxslt/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc libxml2 libgcrypt
+PKG := libxslt
+$(PKG)_VERSION := 1.1.24
+$(PKG)_CHECKSUM := b5402e24abff5545ed76f6a55049cbebc664bd58
+$(PKG)_SUBDIR := libxslt-$($(PKG)_VERSION)
+$(PKG)_FILE := libxslt-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://xmlsoft.org/XSLT/
+$(PKG)_URL := ftp://xmlsoft.org/libxslt/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc libxml2 libgcrypt
define $(PKG)_UPDATE
wget -q -O- 'ftp://xmlsoft.org/libxslt/' | \
diff --git a/src/lua.mk b/src/lua.mk
index 818ab58..ca82154 100644
--- a/src/lua.mk
+++ b/src/lua.mk
@@ -1,12 +1,13 @@
# Lua
-PKG := lua
-$(PKG)_VERSION := 5.1.4
-$(PKG)_SUBDIR := lua-$($(PKG)_VERSION)
-$(PKG)_FILE := lua-$($(PKG)_VERSION).tar.gz
-$(PKG)_WEBSITE := http://www.lua.org/
-$(PKG)_URL := http://www.lua.org/ftp/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc
+PKG := lua
+$(PKG)_VERSION := 5.1.4
+$(PKG)_CHECKSUM := 2b11c8e60306efb7f0734b747588f57995493db7
+$(PKG)_SUBDIR := lua-$($(PKG)_VERSION)
+$(PKG)_FILE := lua-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://www.lua.org/
+$(PKG)_URL := http://www.lua.org/ftp/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'http://www.lua.org/download.html' | \
diff --git a/src/mingwrt.mk b/src/mingwrt.mk
index c4230ba..2af2394 100644
--- a/src/mingwrt.mk
+++ b/src/mingwrt.mk
@@ -1,12 +1,13 @@
# MinGW Runtime
-PKG := mingwrt
-$(PKG)_VERSION := 3.15.2-mingw32
-$(PKG)_SUBDIR := .
-$(PKG)_FILE := mingwrt-$($(PKG)_VERSION)-dev.tar.gz
-$(PKG)_WEBSITE := http://mingw.sourceforge.net/
-$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/mingw/$($(PKG)_FILE)
-$(PKG)_DEPS :=
+PKG := mingwrt
+$(PKG)_VERSION := 3.15.2-mingw32
+$(PKG)_CHECKSUM := 36ef40de84cb8778e68f883d1cf320d9e627342d
+$(PKG)_SUBDIR := .
+$(PKG)_FILE := mingwrt-$($(PKG)_VERSION)-dev.tar.gz
+$(PKG)_WEBSITE := http://mingw.sourceforge.net/
+$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/mingw/$($(PKG)_FILE)
+$(PKG)_DEPS :=
define $(PKG)_UPDATE
wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=11598' | \
diff --git a/src/ogg.mk b/src/ogg.mk
index bb3e175..3438209 100644
--- a/src/ogg.mk
+++ b/src/ogg.mk
@@ -1,12 +1,13 @@
# OGG
-PKG := ogg
-$(PKG)_VERSION := 1.1.3
-$(PKG)_SUBDIR := libogg-$($(PKG)_VERSION)
-$(PKG)_FILE := libogg-$($(PKG)_VERSION).tar.gz
-$(PKG)_WEBSITE := http://www.xiph.org/ogg/
-$(PKG)_URL := http://downloads.xiph.org/releases/ogg/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc
+PKG := ogg
+$(PKG)_VERSION := 1.1.3
+$(PKG)_CHECKSUM := a3e495a8baf6939efad7e0bd11cc0e466838c3db
+$(PKG)_SUBDIR := libogg-$($(PKG)_VERSION)
+$(PKG)_FILE := libogg-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://www.xiph.org/ogg/
+$(PKG)_URL := http://downloads.xiph.org/releases/ogg/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'http://www.xiph.org/downloads/' | \
diff --git a/src/old.mk b/src/old.mk
index 7e54b46..78893fc 100644
--- a/src/old.mk
+++ b/src/old.mk
@@ -1,12 +1,13 @@
# old
-PKG := old
-$(PKG)_VERSION := 0.17
-$(PKG)_SUBDIR := old-$($(PKG)_VERSION)
-$(PKG)_FILE := old-$($(PKG)_VERSION).tar.bz2
-$(PKG)_WEBSITE := http://blitiri.com.ar/p/old/
-$(PKG)_URL := http://blitiri.com.ar/p/old/files/$($(PKG)_VERSION)/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc
+PKG := old
+$(PKG)_VERSION := 0.17
+$(PKG)_CHECKSUM := d519a8282b0774c344ffeb1b4899f8be53d6d7b3
+$(PKG)_SUBDIR := old-$($(PKG)_VERSION)
+$(PKG)_FILE := old-$($(PKG)_VERSION).tar.bz2
+$(PKG)_WEBSITE := http://blitiri.com.ar/p/old/
+$(PKG)_URL := http://blitiri.com.ar/p/old/files/$($(PKG)_VERSION)/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'http://blitiri.com.ar/p/old/' | \
diff --git a/src/openexr.mk b/src/openexr.mk
index 8571ff1..c067ea7 100644
--- a/src/openexr.mk
+++ b/src/openexr.mk
@@ -1,12 +1,13 @@
# OpenEXR
-PKG := openexr
-$(PKG)_VERSION := 1.6.1
-$(PKG)_SUBDIR := openexr-$($(PKG)_VERSION)
-$(PKG)_FILE := openexr-$($(PKG)_VERSION).tar.gz
-$(PKG)_WEBSITE := http://www.openexr.com/
-$(PKG)_URL := http://download.savannah.nongnu.org/releases/openexr/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc ilmbase
+PKG := openexr
+$(PKG)_VERSION := 1.6.1
+$(PKG)_CHECKSUM := b3650e6542f0e09daadb2d467425530bc8eec333
+$(PKG)_SUBDIR := openexr-$($(PKG)_VERSION)
+$(PKG)_FILE := openexr-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://www.openexr.com/
+$(PKG)_URL := http://download.savannah.nongnu.org/releases/openexr/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc ilmbase
define $(PKG)_UPDATE
wget -q -O- 'http://www.openexr.com/downloads.html' | \
diff --git a/src/pango.mk b/src/pango.mk
index ce70186..8e69961 100644
--- a/src/pango.mk
+++ b/src/pango.mk
@@ -1,12 +1,13 @@
# Pango
-PKG := pango
-$(PKG)_VERSION := 1.24.0
-$(PKG)_SUBDIR := pango-$($(PKG)_VERSION)
-$(PKG)_FILE := pango-$($(PKG)_VERSION).tar.bz2
-$(PKG)_WEBSITE := http://www.pango.org/
-$(PKG)_URL := http://ftp.gnome.org/pub/gnome/sources/pango/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc fontconfig freetype cairo glib
+PKG := pango
+$(PKG)_VERSION := 1.24.0
+$(PKG)_CHECKSUM := 32e99f3f1b4ca550225837bf35d581d4d92d08a9
+$(PKG)_SUBDIR := pango-$($(PKG)_VERSION)
+$(PKG)_FILE := pango-$($(PKG)_VERSION).tar.bz2
+$(PKG)_WEBSITE := http://www.pango.org/
+$(PKG)_URL := http://ftp.gnome.org/pub/gnome/sources/pango/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc fontconfig freetype cairo glib
define $(PKG)_UPDATE
wget -q -O- 'http://www.gtk.org/download-windows.html' | \
diff --git a/src/pcre.mk b/src/pcre.mk
index d4a8405..9fffa00 100644
--- a/src/pcre.mk
+++ b/src/pcre.mk
@@ -1,12 +1,13 @@
# PCRE
-PKG := pcre
-$(PKG)_VERSION := 7.8
-$(PKG)_SUBDIR := pcre-$($(PKG)_VERSION)
-$(PKG)_FILE := pcre-$($(PKG)_VERSION).tar.bz2
-$(PKG)_WEBSITE := http://www.pcre.org/
-$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/pcre/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc
+PKG := pcre
+$(PKG)_VERSION := 7.8
+$(PKG)_CHECKSUM := 552909f9d18e1954eec639f926957a4cb2de1ec3
+$(PKG)_SUBDIR := pcre-$($(PKG)_VERSION)
+$(PKG)_FILE := pcre-$($(PKG)_VERSION).tar.bz2
+$(PKG)_WEBSITE := http://www.pcre.org/
+$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/pcre/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=10194&package_id=9960' | \
diff --git a/src/pdcurses.mk b/src/pdcurses.mk
index 6515e55..781b14e 100644
--- a/src/pdcurses.mk
+++ b/src/pdcurses.mk
@@ -1,12 +1,13 @@
# PDcurses
-PKG := pdcurses
-$(PKG)_VERSION := 3.4
-$(PKG)_SUBDIR := PDCurses-$($(PKG)_VERSION)
-$(PKG)_FILE := PDCurses-$($(PKG)_VERSION).tar.gz
-$(PKG)_WEBSITE := http://pdcurses.sourceforge.net/
-$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/pdcurses/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc
+PKG := pdcurses
+$(PKG)_VERSION := 3.4
+$(PKG)_CHECKSUM := e36684442a6171cc3a5165c8c49c70f67db7288c
+$(PKG)_SUBDIR := PDCurses-$($(PKG)_VERSION)
+$(PKG)_FILE := PDCurses-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://pdcurses.sourceforge.net/
+$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/pdcurses/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=30480&package_id=22452' | \
diff --git a/src/pdflib_lite.mk b/src/pdflib_lite.mk
index 7303ca0..dd6dd19 100644
--- a/src/pdflib_lite.mk
+++ b/src/pdflib_lite.mk
@@ -1,12 +1,13 @@
# PDFlib Lite
-PKG := pdflib_lite
-$(PKG)_VERSION := 7.0.4
-$(PKG)_SUBDIR := PDFlib-Lite-$($(PKG)_VERSION)
-$(PKG)_FILE := PDFlib-Lite-$($(PKG)_VERSION).tar.gz
-$(PKG)_WEBSITE := http://www.pdflib.com/download/pdflib-family/pdflib-lite/
-$(PKG)_URL := http://www.pdflib.com/binaries/PDFlib/$(subst .,,$($(PKG)_VERSION))/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc
+PKG := pdflib_lite
+$(PKG)_VERSION := 7.0.4
+$(PKG)_CHECKSUM := bc2fb4639bcb09d319ad7a1141616fcd50a7d7be
+$(PKG)_SUBDIR := PDFlib-Lite-$($(PKG)_VERSION)
+$(PKG)_FILE := PDFlib-Lite-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://www.pdflib.com/download/pdflib-family/pdflib-lite/
+$(PKG)_URL := http://www.pdflib.com/binaries/PDFlib/$(subst .,,$($(PKG)_VERSION))/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'http://www.pdflib.com/download/pdflib-family/pdflib-lite/' | \
diff --git a/src/pixman.mk b/src/pixman.mk
index 3c67a94..828f8a2 100644
--- a/src/pixman.mk
+++ b/src/pixman.mk
@@ -1,12 +1,13 @@
# pixman
-PKG := pixman
-$(PKG)_VERSION := 0.14.0
-$(PKG)_SUBDIR := pixman-$($(PKG)_VERSION)
-$(PKG)_FILE := pixman-$($(PKG)_VERSION).tar.gz
-$(PKG)_WEBSITE := http://cairographics.org/
-$(PKG)_URL := http://cairographics.org/releases/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc
+PKG := pixman
+$(PKG)_VERSION := 0.14.0
+$(PKG)_CHECKSUM := 1220f44bfe22cd4ec4cc20d9accb9a809ab8b75c
+$(PKG)_SUBDIR := pixman-$($(PKG)_VERSION)
+$(PKG)_FILE := pixman-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://cairographics.org/
+$(PKG)_URL := http://cairographics.org/releases/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'http://cairographics.org/releases/' | \
diff --git a/src/pkg_config.mk b/src/pkg_config.mk
index 64f5fd8..341a7b4 100644
--- a/src/pkg_config.mk
+++ b/src/pkg_config.mk
@@ -1,12 +1,13 @@
# pkg-config
-PKG := pkg_config
-$(PKG)_VERSION := 0.23
-$(PKG)_SUBDIR := pkg-config-$($(PKG)_VERSION)
-$(PKG)_FILE := pkg-config-$($(PKG)_VERSION).tar.gz
-$(PKG)_WEBSITE := http://pkg-config.freedesktop.org/
-$(PKG)_URL := http://pkgconfig.freedesktop.org/releases/$($(PKG)_FILE)
-$(PKG)_DEPS :=
+PKG := pkg_config
+$(PKG)_VERSION := 0.23
+$(PKG)_CHECKSUM := b59dddd6b5320bd74c0f74b3339618a327096b2a
+$(PKG)_SUBDIR := pkg-config-$($(PKG)_VERSION)
+$(PKG)_FILE := pkg-config-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://pkg-config.freedesktop.org/
+$(PKG)_URL := http://pkgconfig.freedesktop.org/releases/$($(PKG)_FILE)
+$(PKG)_DEPS :=
define $(PKG)_UPDATE
wget -q -O- 'http://pkgconfig.freedesktop.org/' | \
diff --git a/src/proj.mk b/src/proj.mk
index d95cc97..72730cd 100644
--- a/src/proj.mk
+++ b/src/proj.mk
@@ -1,13 +1,14 @@
# proj
-PKG := proj
-$(PKG)_VERSION := 4.6.1
-$(PKG)_SUBDIR := proj-$($(PKG)_VERSION)
-$(PKG)_FILE := proj-$($(PKG)_VERSION).tar.gz
-$(PKG)_WEBSITE := http://trac.osgeo.org/proj/
-$(PKG)_URL := http://download.osgeo.org/proj/$($(PKG)_FILE)
-$(PKG)_URL_2 := ftp://ftp.remotesensing.org/proj/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc
+PKG := proj
+$(PKG)_VERSION := 4.6.1
+$(PKG)_CHECKSUM := ddfdad6cba28af5f91b14fd6690bd22bbbc79390
+$(PKG)_SUBDIR := proj-$($(PKG)_VERSION)
+$(PKG)_FILE := proj-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://trac.osgeo.org/proj/
+$(PKG)_URL := http://download.osgeo.org/proj/$($(PKG)_FILE)
+$(PKG)_URL_2 := ftp://ftp.remotesensing.org/proj/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'http://trac.osgeo.org/proj/' | \
diff --git a/src/pthreads.mk b/src/pthreads.mk
index 9c87544..0e2ee0b 100644
--- a/src/pthreads.mk
+++ b/src/pthreads.mk
@@ -1,12 +1,13 @@
# pthreads-w32
-PKG := pthreads
-$(PKG)_VERSION := 2-8-0
-$(PKG)_SUBDIR := pthreads-w32-$($(PKG)_VERSION)-release
-$(PKG)_FILE := pthreads-w32-$($(PKG)_VERSION)-release.tar.gz
-$(PKG)_WEBSITE := http://sourceware.org/pthreads-win32/
-$(PKG)_URL := ftp://sourceware.org/pub/pthreads-win32/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc
+PKG := pthreads
+$(PKG)_VERSION := 2-8-0
+$(PKG)_CHECKSUM := da8371cb20e8e238f96a1d0651212f154d84a9ac
+$(PKG)_SUBDIR := pthreads-w32-$($(PKG)_VERSION)-release
+$(PKG)_FILE := pthreads-w32-$($(PKG)_VERSION)-release.tar.gz
+$(PKG)_WEBSITE := http://sourceware.org/pthreads-win32/
+$(PKG)_URL := ftp://sourceware.org/pub/pthreads-win32/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'ftp://sourceware.org/pub/pthreads-win32/Release_notes' | \
diff --git a/src/sdl.mk b/src/sdl.mk
index e4872c5..0c6e19e 100644
--- a/src/sdl.mk
+++ b/src/sdl.mk
@@ -1,12 +1,13 @@
# SDL
-PKG := sdl
-$(PKG)_VERSION := 1.2.11
-$(PKG)_SUBDIR := SDL-$($(PKG)_VERSION)
-$(PKG)_FILE := SDL-$($(PKG)_VERSION).tar.gz
-$(PKG)_WEBSITE := http://libsdl.org/
-$(PKG)_URL := http://libsdl.org/release/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc libiconv
+PKG := sdl
+$(PKG)_VERSION := 1.2.11
+$(PKG)_CHECKSUM := 2259134d714e35ab1469d513674a3cd02510d198
+$(PKG)_SUBDIR := SDL-$($(PKG)_VERSION)
+$(PKG)_FILE := SDL-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://libsdl.org/
+$(PKG)_URL := http://libsdl.org/release/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc libiconv
define $(PKG)_UPDATE
wget -q -O- 'http://libsdl.org/release/changes.html' | \
diff --git a/src/sdl_image.mk b/src/sdl_image.mk
index 5964c47..268d730 100644
--- a/src/sdl_image.mk
+++ b/src/sdl_image.mk
@@ -1,12 +1,13 @@
# SDL_image
-PKG := sdl_image
-$(PKG)_VERSION := 1.2.7
-$(PKG)_SUBDIR := SDL_image-$($(PKG)_VERSION)
-$(PKG)_FILE := SDL_image-$($(PKG)_VERSION).tar.gz
-$(PKG)_WEBSITE := http://libsdl.org/projects/SDL_image/
-$(PKG)_URL := http://libsdl.org/projects/SDL_image/release/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc sdl jpeg libpng tiff
+PKG := sdl_image
+$(PKG)_VERSION := 1.2.7
+$(PKG)_CHECKSUM := 0cffd05e41014651e7114d7fea309c9f37ef2d8a
+$(PKG)_SUBDIR := SDL_image-$($(PKG)_VERSION)
+$(PKG)_FILE := SDL_image-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://libsdl.org/projects/SDL_image/
+$(PKG)_URL := http://libsdl.org/projects/SDL_image/release/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc sdl jpeg libpng tiff
define $(PKG)_UPDATE
wget -q -O- 'http://libsdl.org/projects/SDL_image/' | \
diff --git a/src/sdl_mixer.mk b/src/sdl_mixer.mk
index 6122bbc..4a64020 100644
--- a/src/sdl_mixer.mk
+++ b/src/sdl_mixer.mk
@@ -1,12 +1,13 @@
# SDL_mixer
-PKG := sdl_mixer
-$(PKG)_VERSION := 1.2.8
-$(PKG)_SUBDIR := SDL_mixer-$($(PKG)_VERSION)
-$(PKG)_FILE := SDL_mixer-$($(PKG)_VERSION).tar.gz
-$(PKG)_WEBSITE := http://libsdl.org/projects/SDL_mixer/
-$(PKG)_URL := http://libsdl.org/projects/SDL_mixer/release/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc sdl libmikmod ogg smpeg
+PKG := sdl_mixer
+$(PKG)_VERSION := 1.2.8
+$(PKG)_CHECKSUM := 7fa56d378f9ca53434f9470aeb2997ad84a348c6
+$(PKG)_SUBDIR := SDL_mixer-$($(PKG)_VERSION)
+$(PKG)_FILE := SDL_mixer-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://libsdl.org/projects/SDL_mixer/
+$(PKG)_URL := http://libsdl.org/projects/SDL_mixer/release/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc sdl libmikmod ogg smpeg
define $(PKG)_UPDATE
wget -q -O- 'http://libsdl.org/projects/SDL_mixer/' | \
diff --git a/src/sdl_ttf.mk b/src/sdl_ttf.mk
index 51fad80..18791e6 100644
--- a/src/sdl_ttf.mk
+++ b/src/sdl_ttf.mk
@@ -1,12 +1,13 @@
# SDL_ttf
-PKG := sdl_ttf
-$(PKG)_VERSION := 2.0.9
-$(PKG)_SUBDIR := SDL_ttf-$($(PKG)_VERSION)
-$(PKG)_FILE := SDL_ttf-$($(PKG)_VERSION).tar.gz
-$(PKG)_WEBSITE := http://libsdl.org/projects/SDL_ttf/
-$(PKG)_URL := http://libsdl.org/projects/SDL_ttf/release/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc sdl freetype
+PKG := sdl_ttf
+$(PKG)_VERSION := 2.0.9
+$(PKG)_CHECKSUM := 6bc3618b08ddbbf565fe8f63f624782c15e1cef2
+$(PKG)_SUBDIR := SDL_ttf-$($(PKG)_VERSION)
+$(PKG)_FILE := SDL_ttf-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://libsdl.org/projects/SDL_ttf/
+$(PKG)_URL := http://libsdl.org/projects/SDL_ttf/release/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc sdl freetype
define $(PKG)_UPDATE
wget -q -O- 'http://libsdl.org/projects/SDL_ttf/' | \
diff --git a/src/smpeg.mk b/src/smpeg.mk
index 6b72f80..1cc0823 100644
--- a/src/smpeg.mk
+++ b/src/smpeg.mk
@@ -1,13 +1,14 @@
# smpeg
# http://packages.debian.org/unstable/source/smpeg
-PKG := smpeg
-$(PKG)_VERSION := 0.4.5+cvs20030824
-$(PKG)_SUBDIR := smpeg-$($(PKG)_VERSION).orig
-$(PKG)_WEBSITE := http://icculus.org/smpeg/
-$(PKG)_FILE := smpeg_$($(PKG)_VERSION).orig.tar.gz
-$(PKG)_URL := http://ftp.debian.org/debian/pool/main/s/smpeg/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc sdl
+PKG := smpeg
+$(PKG)_VERSION := 0.4.5+cvs20030824
+$(PKG)_CHECKSUM := d3460181f4b5e79b33f3bf4e9642a4fe6f98bc89
+$(PKG)_SUBDIR := smpeg-$($(PKG)_VERSION).orig
+$(PKG)_WEBSITE := http://icculus.org/smpeg/
+$(PKG)_FILE := smpeg_$($(PKG)_VERSION).orig.tar.gz
+$(PKG)_URL := http://ftp.debian.org/debian/pool/main/s/smpeg/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc sdl
define $(PKG)_UPDATE
wget -q -O- 'http://packages.debian.org/unstable/source/smpeg' | \
diff --git a/src/tiff.mk b/src/tiff.mk
index 64f2bbd..faaf346 100644
--- a/src/tiff.mk
+++ b/src/tiff.mk
@@ -1,13 +1,14 @@
# LibTIFF
-PKG := tiff
-$(PKG)_VERSION := 3.8.2
-$(PKG)_SUBDIR := tiff-$($(PKG)_VERSION)
-$(PKG)_FILE := tiff-$($(PKG)_VERSION).tar.gz
-$(PKG)_WEBSITE := http://www.remotesensing.org/libtiff/
-$(PKG)_URL := http://download.osgeo.org/libtiff/$($(PKG)_FILE)
-$(PKG)_URL_2 := ftp://ftp.remotesensing.org/pub/libtiff/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc pthreads zlib jpeg
+PKG := tiff
+$(PKG)_VERSION := 3.8.2
+$(PKG)_CHECKSUM := 549e67b6a15b42bfcd72fe17cda7c9a198a393eb
+$(PKG)_SUBDIR := tiff-$($(PKG)_VERSION)
+$(PKG)_FILE := tiff-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://www.remotesensing.org/libtiff/
+$(PKG)_URL := http://download.osgeo.org/libtiff/$($(PKG)_FILE)
+$(PKG)_URL_2 := ftp://ftp.remotesensing.org/pub/libtiff/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc pthreads zlib jpeg
define $(PKG)_UPDATE
wget -q -O- 'http://www.remotesensing.org/libtiff/' | \
diff --git a/src/tre.mk b/src/tre.mk
index 2c0130c..645d77c 100644
--- a/src/tre.mk
+++ b/src/tre.mk
@@ -1,12 +1,13 @@
# TRE
-PKG := tre
-$(PKG)_VERSION := 0.7.5
-$(PKG)_SUBDIR := tre-$($(PKG)_VERSION)
-$(PKG)_FILE := tre-$($(PKG)_VERSION).tar.bz2
-$(PKG)_WEBSITE := http://laurikari.net/tre/
-$(PKG)_URL := http://laurikari.net/tre/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc
+PKG := tre
+$(PKG)_VERSION := 0.7.5
+$(PKG)_CHECKSUM := 16b860479341f3179ef987765aacda9e2803f7bb
+$(PKG)_SUBDIR := tre-$($(PKG)_VERSION)
+$(PKG)_FILE := tre-$($(PKG)_VERSION).tar.bz2
+$(PKG)_WEBSITE := http://laurikari.net/tre/
+$(PKG)_URL := http://laurikari.net/tre/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'http://laurikari.net/tre/download.html' | \
diff --git a/src/vorbis.mk b/src/vorbis.mk
index 9ce6a25..885699d 100644
--- a/src/vorbis.mk
+++ b/src/vorbis.mk
@@ -1,12 +1,13 @@
# Vorbis
-PKG := vorbis
-$(PKG)_VERSION := 1.2.0
-$(PKG)_SUBDIR := libvorbis-$($(PKG)_VERSION)
-$(PKG)_FILE := libvorbis-$($(PKG)_VERSION).tar.gz
-$(PKG)_WEBSITE := http://www.vorbis.com/
-$(PKG)_URL := http://downloads.xiph.org/releases/vorbis/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc pthreads ogg
+PKG := vorbis
+$(PKG)_VERSION := 1.2.0
+$(PKG)_CHECKSUM := 6ff5f9d9d71cc385ee180171cc21af5653b76a16
+$(PKG)_SUBDIR := libvorbis-$($(PKG)_VERSION)
+$(PKG)_FILE := libvorbis-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://www.vorbis.com/
+$(PKG)_URL := http://downloads.xiph.org/releases/vorbis/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc pthreads ogg
define $(PKG)_UPDATE
wget -q -O- 'http://www.xiph.org/downloads/' | \
diff --git a/src/w32api.mk b/src/w32api.mk
index bd0e884..d6d8645 100644
--- a/src/w32api.mk
+++ b/src/w32api.mk
@@ -1,12 +1,13 @@
# MinGW Windows API
-PKG := w32api
-$(PKG)_VERSION := 3.13-mingw32
-$(PKG)_SUBDIR := .
-$(PKG)_FILE := w32api-$($(PKG)_VERSION)-dev.tar.gz
-$(PKG)_WEBSITE := http://mingw.sourceforge.net/
-$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/mingw/$($(PKG)_FILE)
-$(PKG)_DEPS :=
+PKG := w32api
+$(PKG)_VERSION := 3.13-mingw32
+$(PKG)_CHECKSUM := 5eb7d8ec0fe032a92bea3a2c8282a78df2f1793c
+$(PKG)_SUBDIR := .
+$(PKG)_FILE := w32api-$($(PKG)_VERSION)-dev.tar.gz
+$(PKG)_WEBSITE := http://mingw.sourceforge.net/
+$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/mingw/$($(PKG)_FILE)
+$(PKG)_DEPS :=
define $(PKG)_UPDATE
wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=11550' | \
diff --git a/src/winpcap.mk b/src/winpcap.mk
index 00fc524..9dde9ee 100644
--- a/src/winpcap.mk
+++ b/src/winpcap.mk
@@ -1,12 +1,13 @@
# WinPcap
-PKG := winpcap
-$(PKG)_VERSION := 4_0_2
-$(PKG)_SUBDIR := winpcap
-$(PKG)_FILE := WpcapSrc_$($(PKG)_VERSION).zip
-$(PKG)_WEBSITE := http://www.winpcap.org/
-$(PKG)_URL := http://www.winpcap.org/install/bin/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc
+PKG := winpcap
+$(PKG)_VERSION := 4_0_2
+$(PKG)_CHECKSUM := faa4e0cd73352d400d123be63b9c6c02c7e132d1
+$(PKG)_SUBDIR := winpcap
+$(PKG)_FILE := WpcapSrc_$($(PKG)_VERSION).zip
+$(PKG)_WEBSITE := http://www.winpcap.org/
+$(PKG)_URL := http://www.winpcap.org/install/bin/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'http://www.winpcap.org/devel.htm' | \
diff --git a/src/wxwidgets.mk b/src/wxwidgets.mk
index 5dbd63d..d8e5692 100644
--- a/src/wxwidgets.mk
+++ b/src/wxwidgets.mk
@@ -1,12 +1,13 @@
# wxWidgets
-PKG := wxwidgets
-$(PKG)_VERSION := 2.8.10
-$(PKG)_SUBDIR := wxMSW-$($(PKG)_VERSION)
-$(PKG)_FILE := wxMSW-$($(PKG)_VERSION).tar.bz2
-$(PKG)_WEBSITE := http://www.wxwidgets.org/
-$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/wxwindows/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc libiconv libpng jpeg tiff sdl tre zlib expat
+PKG := wxwidgets
+$(PKG)_VERSION := 2.8.10
+$(PKG)_CHECKSUM := e674086391ce5c8e64ef1823654d6f88b064c8e0
+$(PKG)_SUBDIR := wxMSW-$($(PKG)_VERSION)
+$(PKG)_FILE := wxMSW-$($(PKG)_VERSION).tar.bz2
+$(PKG)_WEBSITE := http://www.wxwidgets.org/
+$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/wxwindows/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc libiconv libpng jpeg tiff sdl tre zlib expat
define $(PKG)_UPDATE
wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=9863&package_id=14078' | \
diff --git a/src/xmlwrapp.mk b/src/xmlwrapp.mk
index f150701..98bbb80 100644
--- a/src/xmlwrapp.mk
+++ b/src/xmlwrapp.mk
@@ -1,12 +1,13 @@
# xmlwrapp
-PKG := xmlwrapp
-$(PKG)_VERSION := 0.6.0
-$(PKG)_SUBDIR := xmlwrapp-$($(PKG)_VERSION)
-$(PKG)_FILE := xmlwrapp-$($(PKG)_VERSION).tar.gz
-$(PKG)_WEBSITE := http://sourceforge.net/projects/xmlwrapp/
-$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/xmlwrapp/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc libxml2 libxslt
+PKG := xmlwrapp
+$(PKG)_VERSION := 0.6.0
+$(PKG)_CHECKSUM := 4f6f8cf4e18b8e76be1b01b575766156bbee42a0
+$(PKG)_SUBDIR := xmlwrapp-$($(PKG)_VERSION)
+$(PKG)_FILE := xmlwrapp-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://sourceforge.net/projects/xmlwrapp/
+$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/xmlwrapp/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc libxml2 libxslt
define $(PKG)_UPDATE
wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=142403&package_id=156331' | \
diff --git a/src/zlib.mk b/src/zlib.mk
index e88e14b..6c5d609 100644
--- a/src/zlib.mk
+++ b/src/zlib.mk
@@ -1,12 +1,13 @@
# zlib
-PKG := zlib
-$(PKG)_VERSION := 1.2.3
-$(PKG)_SUBDIR := zlib-$($(PKG)_VERSION)
-$(PKG)_FILE := zlib-$($(PKG)_VERSION).tar.bz2
-$(PKG)_WEBSITE := http://www.zlib.net/
-$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/libpng/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc
+PKG := zlib
+$(PKG)_VERSION := 1.2.3
+$(PKG)_CHECKSUM := 967e280f284d02284b0cd8872a8e2e04bfdc7283
+$(PKG)_SUBDIR := zlib-$($(PKG)_VERSION)
+$(PKG)_FILE := zlib-$($(PKG)_VERSION).tar.bz2
+$(PKG)_WEBSITE := http://www.zlib.net/
+$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/libpng/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=5624&package_id=14274' | \