pull/13/head
Volker Grabsch 13 years ago
commit 6ca88cec3a

@ -2,3 +2,4 @@
^log($|/)
^pkg($|/)
^dist($|/)
^wip($|/)

@ -154,6 +154,7 @@ build-only-$(1):
$(foreach PKG_PATCH,$(sort $(wildcard $(TOP_DIR)/src/$(1)-*.patch)),
(cd '$(2)/$($(1)_SUBDIR)' && $(PATCH) -p1 -u) < $(PKG_PATCH))
$$(call $(1)_BUILD,$(2)/$($(1)_SUBDIR),$(TOP_DIR)/src/$(1)-test)
(du -k -d 0 '$(2)' 2>/dev/null || du -k --max-depth 0 '$(2)') | $(SED) -n 's/^\(\S*\).*/du: \1 KiB/p'
rm -rfv '$(2)'
,)
[ -d '$(PREFIX)/installed' ] || mkdir -p '$(PREFIX)/installed'

@ -450,31 +450,26 @@ USE_OSGPLUGIN(&lt;plugin2&gt;)
<dl>
<dt>2011-06-07 &ndash; Release <span id="latest-version">2.21</span></dt>
<dt>2011-xx-xx &ndash; Release <span id="latest-version">2.22</span></dt>
<dd>
<p>
<a href="https://bitbucket.org/vog/mingw-cross-env/downloads/mingw-cross-env-2.21.tar.gz">Download</a> |
<a href="http://hg.savannah.nongnu.org/hgweb/mingw-cross-env/log/2.21">Changelog</a>
</p>
<p>
Minor bugfixes in several packages.
</p>
<p>
Almost all packages are updated to their latest version.
<a href="https://bitbucket.org/vog/mingw-cross-env/downloads/mingw-cross-env-2.22.tar.gz">Download</a> |
<a href="http://hg.savannah.nongnu.org/hgweb/mingw-cross-env/log/2.22">Changelog</a>
</p>
<p>
Packages gtkmm and gtksourceviewmm have been renamed to gtkmm2 and gtksourceviewmm2.
Almost all packages were updated to their latest version.
</p>
</dd>
<dt>Release Updates</dt>
<dd>
<p>
New packages are supported:
libass, poco, and t4k_common.
</p>
If you are experiencing problems with a release
(e.g. broken download links), try the
<a href="#development">stable development branch.</a>
</dd>
<dt>Old Releases</dt>
<dd>
<a href="#history">History</a>
@ -486,6 +481,45 @@ USE_OSGPLUGIN(&lt;plugin2&gt;)
<div class="section">
<h2 id="development">Development Version</h2>
<p>
For the sake of simplicity, there are two development
branches - "default" and "stable". Although it might
seem obvious, here's an overview of the types of
changes that go into each branch:
</p>
<ul class="compact-list">
<li>
Any change in the build scripts goes into "default".
</li>
<li>
Any package upgrade goes into "default".
</li>
<li>
Any documentation upgrade that refers to a feature
not present in stable goes into "default".
</li>
<li>
Anything else that doesn't effect the build goes
into "stable".
</li>
<li>
Any non-critical improvement to the main Makefile
goes into "stable".
</li>
<li>
Any improvement in the package download URLs or
package version recognition goes into "stable".
</li>
<li>
When in doubt, use "default" rather than "stable".
</li>
<li>
After a successful testing phase, the whole "default"
branch will be merged (moved) into "stable".
</li>
</ul>
<p>
To obtain the current development version,
install
@ -495,6 +529,13 @@ USE_OSGPLUGIN(&lt;plugin2&gt;)
<pre>hg clone http://hg.savannah.nongnu.org/hgweb/mingw-cross-env</pre>
<p>
The stable version can be obtained by:
</p>
<pre>hg clone -b stable \
http://hg.savannah.nongnu.org/hgweb/mingw-cross-env</pre>
<p>
To retrieve updates, run:
</p>
@ -567,6 +608,10 @@ USE_OSGPLUGIN(&lt;plugin2&gt;)
<td><a href="http://gcc.gnu.org/">GCC</a> (gcc, g++)</td>
<td></td>
</tr>
<tr>
<td><a href="http://www.gnu.org/s/gettext/">GNU Gettext</a></td>
<td></td>
</tr>
<tr>
<td><a href="http://www.gnu.org/software/make/">GNU Make</a></td>
<td>≥ 3.81</td>
@ -629,11 +674,11 @@ USE_OSGPLUGIN(&lt;plugin2&gt;)
</tr>
</table>
<h3 id="requirements-debian">Debian</h3>
<h3 id="requirements-debian">Debian (GNU/kFreeBSD &amp; GNU/Linux)</h3>
<!-- http://www.debian.org/distrib/packages#search_packages -->
<pre>aptitude install -R autoconf automake bash bison bzip2 \
cmake flex g++ intltool make sed \
cmake flex gettext g++ intltool make sed \
libtool libltdl-dev openssl libssl-dev \
libxml-parser-perl patch perl \
pkg-config scons unzip wget \
@ -648,7 +693,7 @@ USE_OSGPLUGIN(&lt;plugin2&gt;)
<!-- https://admin.fedoraproject.org/pkgdb/ -->
<pre>yum install autoconf automake bash bison bzip2 cmake \
flex gcc-c++ intltool make sed libtool \
flex gcc-c++ gettext intltool make sed libtool \
openssl-devel patch perl pkgconfig scons \
yasm unzip wget xz</pre>
@ -661,7 +706,7 @@ USE_OSGPLUGIN(&lt;plugin2&gt;)
<!-- http://www.freebsd.org/ports/ -->
<pre>pkg_add -r automake111 autoconf268 bash bison cmake \
flex gmake gsed intltool libtool openssl \
flex gettext gmake gsed intltool libtool openssl \
patch perl p5-XML-Parser pkg-config scons \
unzip wget yasm</pre>
@ -685,7 +730,7 @@ USE_OSGPLUGIN(&lt;plugin2&gt;)
<!-- http://www.frugalware.org/packages -->
<pre>pacman-g2 -S autoconf automake bash bzip2 bison cmake \
flex gcc intltool make sed libtool openssl \
flex gcc gettext intltool make sed libtool openssl \
patch perl perl-xml-parser pkgconfig scons \
unzip wget xz xz-lzma yasm</pre>
@ -700,6 +745,7 @@ USE_OSGPLUGIN(&lt;plugin2&gt;)
<pre>emerge sys-devel/autoconf sys-devel/automake \
app-shells/bash sys-devel/bison app-arch/bzip2 \
dev-util/cmake sys-devel/flex sys-devel/gcc \
sys-devel/gettext \
dev-util/intltool sys-devel/make sys-apps/sed \
sys-devel/libtool dev-libs/openssl sys-devel/patch \
dev-lang/perl dev-perl/XML-Parser \
@ -717,7 +763,7 @@ USE_OSGPLUGIN(&lt;plugin2&gt;)
</p>
<!-- http://www.macports.org/ports.php -->
<pre>sudo port install autoconf automake bison cmake flex \
gsed intltool libtool openssl \
gettext gsed intltool libtool openssl \
p5-xml-parser pkgconfig scons \
wget xz yasm</pre>
<p>
@ -743,8 +789,8 @@ sudo gcc_select gcc42</pre>
On 64-bit openSUSE, install also:
</p>
<pre>zypper install -R gcc-32bit glibc-devel-32bit \
libgcc45-32bit libgomp45-32bit \
libstdc++45-devel-32bit</pre>
libgcc46-32bit libgomp46-32bit \
libstdc++46-devel-32bit</pre>
<h3 id="open-issue-nsis">Open Issues with NSIS</h3>
@ -1138,6 +1184,31 @@ https://...</pre>
<dl>
<dt>2011-06-07 &ndash; Release 2.21</dt>
<dd>
<p>
<a href="https://bitbucket.org/vog/mingw-cross-env/downloads/mingw-cross-env-2.21.tar.gz">Download</a> |
<a href="http://hg.savannah.nongnu.org/hgweb/mingw-cross-env/log/2.21">Changelog</a>
</p>
<p>
Minor bugfixes in several packages.
</p>
<p>
Almost all packages are updated to their latest version.
</p>
<p>
Packages gtkmm and gtksourceviewmm have been renamed to gtkmm2 and gtksourceviewmm2.
</p>
<p>
New packages are supported:
libass, poco, and t4k_common.
</p>
</dd>
<dt>2011-04-05 &ndash; Release 2.20</dt>
<dd>
<p>

@ -4,8 +4,8 @@
# ATK
PKG := atk
$(PKG)_IGNORE :=
$(PKG)_VERSION := 2.0.0
$(PKG)_CHECKSUM := a11205c094ce68cbe3ee7dd92163e08e00c34cce
$(PKG)_VERSION := 2.0.1
$(PKG)_CHECKSUM := f830ff27590e4dd486ebe6538e2b03484faee10a
$(PKG)_SUBDIR := atk-$($(PKG)_VERSION)
$(PKG)_FILE := atk-$($(PKG)_VERSION).tar.bz2
$(PKG)_WEBSITE := http://www.gtk.org/

@ -4,8 +4,8 @@
# Boost C++ Library
PKG := boost
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.46.1
$(PKG)_CHECKSUM := 3ca6e173ec805e5126868d8a03618e587aa26aef
$(PKG)_VERSION := 1.47.0
$(PKG)_CHECKSUM := 6e3eb548b9d955c0bc6f71c51042b713b678136a
$(PKG)_SUBDIR := boost_$(subst .,_,$($(PKG)_VERSION))
$(PKG)_FILE := boost_$(subst .,_,$($(PKG)_VERSION)).tar.bz2
$(PKG)_WEBSITE := http://www.boost.org/
@ -24,8 +24,8 @@ define $(PKG)_BUILD
# make the build script generate .a library files instead of .lib
$(SED) -i 's,<target-os>windows : lib ;,<target-os>windows : a ;,' '$(1)/tools/build/v2/tools/types/lib.jam'
# compile boost jam
cd '$(1)/tools/build/v2/engine/src' && ./build.sh
cd '$(1)' && tools/build/v2/engine/src/bin.*/bjam \
cd '$(1)/tools/build/v2/engine' && ./build.sh
cd '$(1)' && tools/build/v2/engine/bin.*/bjam \
-j '$(JOBS)' \
--ignore-site-config \
--user-config=user-config.jam \

@ -23,7 +23,7 @@ define $(PKG)_BUILD
$(SED) -i 's,FC =.*,FC = $(TARGET)-gfortran,g' '$(1)/Makefile.MINGW32'
$(SED) -i 's, make , $(MAKE) ,g' '$(1)/Makefile'
rm '$(1)/Makefile.in'
ln -s '$(1)/Makefile.MINGW32' '$(1)/Makefile.in'
ln -sf '$(1)/Makefile.MINGW32' '$(1)/Makefile.in'
mkdir '$(1)/MINGW32'
$(MAKE) -C '$(1)' -j '$(JOBS)' alllib
cd '$(1)' && $(TARGET)-ar cr libcblas.a src/*.o

@ -0,0 +1,216 @@
This file is part of mingw-cross-env.
See doc/index.html for further information.
Contains ad hoc patches for cross building.
From 89e55b180994db937e019678a2abccd0c6f73f7e Mon Sep 17 00:00:00 2001
From: mingw-cross-env
Date: Fri, 21 Oct 2011 23:08:52 +0200
Subject: [PATCH] adjustments for mingw-cross-env
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e5af443..7d77f9d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -135,6 +135,8 @@ set(ALL_CGAL_LIBRARIES CGAL CGAL_Core CGAL_ImageIO CGAL_Qt3 CGAL_Qt4 CACHE INTER
#
#--------------------------------------------------------------------------------------------------
+uniquely_add_flags( CXXFLAGS "-DBOOST_THREAD_USE_LIB;-DBoost_USE_STATIC_LIBS" )
+SET(CMAKE_CXX_FLAGS_RELEASE "-DBOOST_THREAD_USE_LIB -DBoost_USE_STATIC_LIBS -O3 -DNDEBUG" CACHE STRING blah FORCE)
if( MSVC )
uniquely_add_flags ( CGAL_CXX_FLAGS "-D_CRT_SECURE_NO_DEPRECATE;-D_SCL_SECURE_NO_DEPRECATE;-D_CRT_SECURE_NO_WARNINGS;-D_SCL_SECURE_NO_WARNINGS" )
diff --git a/TryRunResults.cgal.cmake b/TryRunResults.cgal.cmake
new file mode 100644
index 0000000..cba9b44
--- /dev/null
+++ b/TryRunResults.cgal.cmake
@@ -0,0 +1,139 @@
+SET( CGAL_CFG_ARRAY_MEMBER_INITIALIZATION_BUG
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( CGAL_CFG_DENORMALS_COMPILE_BUG
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( CGAL_CFG_FPU_ROUNDING_MODE_UNWINDING_VC_BUG
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( CGAL_CFG_IEEE_754_BUG
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( CGAL_CFG_ISTREAM_INT_BUG
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( CGAL_CFG_LONGNAME_BUG
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( CGAL_CFG_MATCHING_BUG_5
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( CGAL_CFG_MATCHING_BUG_6
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( CGAL_CFG_NESTED_CLASS_FRIEND_DECLARATION_BUG
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( CGAL_CFG_NO_CPP0X_ARRAY
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( CGAL_CFG_NO_CPP0X_AUTO
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( CGAL_CFG_NO_CPP0X_DECLTYPE
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( CGAL_CFG_NO_CPP0X_DEFAULT_TEMPLATE_ARGUMENTS_FOR_FUNCTION_TEMPLATES
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( CGAL_CFG_NO_CPP0X_DELEGATING_CONSTRUCTORS
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( CGAL_CFG_NO_CPP0X_DELETED_AND_DEFAULT_FUNCTIONS
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( CGAL_CFG_NO_CPP0X_INITIALIZER_LISTS
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( CGAL_CFG_NO_CPP0X_ISFINITE
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( CGAL_CFG_NO_CPP0X_LAMBDAS
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( CGAL_CFG_NO_CPP0X_LONG_LONG
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( CGAL_CFG_NO_CPP0X_RVALUE_REFERENCE
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( CGAL_CFG_NO_CPP0X_TUPLE
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( CGAL_CFG_NO_CPP0X_VARIADIC_TEMPLATES
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( CGAL_CFG_NO_LIMITS
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( CGAL_CFG_NO_LOGICAL_OPERATORS_ALTERNATIVES
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( CGAL_CFG_NO_MESSAGE_PRAGMA_BUG
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( CGAL_CFG_NO_NEXTAFTER
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( CGAL_CFG_NO_STATEMENT_EXPRESSIONS
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( CGAL_CFG_NO_STL
+ 0
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( CGAL_CFG_NO_TMPL_IN_TMPL_PARAM
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( CGAL_CFG_NO_TR1_ARRAY
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( CGAL_CFG_NO_TR1_TUPLE
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( CGAL_CFG_NO_WARNING_CPP_DIRECTIVE_BUG
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( CGAL_CFG_NUMERIC_LIMITS_BUG
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( CGAL_CFG_OUTOFLINE_MEMBER_DEFINITION_BUG
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( CGAL_CFG_TYPENAME_BEFORE_DEFAULT_ARGUMENT_BUG
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( CGAL_CFG_USING_BASE_MEMBER_BUG_2
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( GCC_RUN_RES
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( GMP_RUN_RES
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( MPFR_RUN_RES
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( QT4_RUN_RES
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( ZLIB_RUN_RES
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( GCC_RUN_RES__TRYRUN_OUTPUT
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( GMP_RUN_RES__TRYRUN_OUTPUT
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( MPFR_RUN_RES__TRYRUN_OUTPUT
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( QT4_RUN_RES__TRYRUN_OUTPUT
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+SET( ZLIB_RUN_RES__TRYRUN_OUTPUT
+ FAILED_TO_RUN
+ CACHE STRING "Result from TRY_RUN" FORCE)
+
diff --git a/cmake/modules/FindBoost.cmake b/cmake/modules/FindBoost.cmake
index fbdde88..5d8a0a9 100644
--- a/cmake/modules/FindBoost.cmake
+++ b/cmake/modules/FindBoost.cmake
@@ -167,6 +167,7 @@
#
include( CGAL_VersionUtils )
+set(Boost_USE_STATIC_LIBS ON)
#-------------------------------------------------------------------------------
@@ -706,7 +707,9 @@ ELSE (_boost_IN_CACHE)
ENDIF( Boost_USE_STATIC_LIBS )
# Find libraries (search in user defined directories first)
+ SET ( _boost_COMPILER "_win32")
SET ( _boost_${UPPERCOMPONENT}_LIBRARY_RELEASE_NAMES
+ ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}
${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}-${Boost_LIB_VERSION}
${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_STATIC_TAG}-${Boost_LIB_VERSION}
${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}-${Boost_LIB_VERSION}
diff --git a/include/CGAL/Constrained_Delaunay_triangulation_2.h b/include/CGAL/Constrained_Delaunay_triangulation_2.h
index f1a7201..23a53c9 100644
--- a/include/CGAL/Constrained_Delaunay_triangulation_2.h
+++ b/include/CGAL/Constrained_Delaunay_triangulation_2.h
@@ -389,7 +389,7 @@ is_flipable(Face_handle f, int i, bool perturb) const
Face_handle ni = f->neighbor(i);
if (is_infinite(f) || is_infinite(ni)) return false;
if (f->is_constrained(i)) return false;
- return (side_of_oriented_circle(ni, f->vertex(i)->point(), perturb)
+ return (this->side_of_oriented_circle(ni, f->vertex(i)->point(), perturb)
== ON_POSITIVE_SIDE);
}
@@ -493,7 +493,7 @@ test_conflict(const Point& p, Face_handle fh) const
// return true if P is inside the circumcircle of fh
// if fh is infinite, return true when p is in the positive
// halfspace or on the boundary and in the finite edge of fh
- Oriented_side os = side_of_oriented_circle(fh,p,true);
+ Oriented_side os = this->side_of_oriented_circle(fh,p,true);
if (os == ON_POSITIVE_SIDE) return true;
if (os == ON_ORIENTED_BOUNDARY && is_infinite(fh)) {
--
1.7.7

@ -0,0 +1,48 @@
# This file is part of mingw-cross-env.
# See doc/index.html for further information.
# cgal
PKG := cgal
$(PKG)_IGNORE :=
$(PKG)_VERSION := 3.8
$(PKG)_CHECKSUM := 23748df1e60d62da166d2e395732ae2fe274317d
$(PKG)_SUBDIR := CGAL-$($(PKG)_VERSION)
$(PKG)_FILE := CGAL-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://www.cgal.org/
$(PKG)_URL := https://gforge.inria.fr/frs/download.php/28500/$($(PKG)_FILE)
$(PKG)_DEPS := gcc boost gmp mpfr
define $(PKG)_UPDATE
wget -q -O- 'https://gforge.inria.fr/frs/?group_id=52' | \
grep 'CGAL-' | \
$(SED) -n 's,.*CGAL-\([0-9][^>a-z]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && cmake \
-DCGAL_INSTALL_CMAKE_DIR:STRING="lib/CGAL" \
-DCMAKE_BUILD_TYPE:STRING="Release" \
-DCGAL_INSTALL_INC_DIR:STRING="include" \
-DCGAL_INSTALL_DOC_DIR:STRING="share/doc/CGAL-3.8" \
-DCGAL_INSTALL_BIN_DIR:STRING="bin" \
-DBOOST_LIB_DIAGNOSTIC_DEFINITIONS:STRING="-DBOOST_LIB_DIAGNOSTIC" \
-DWITH_CGAL_Qt3:BOOL="0" \
-DCMAKE_TOOLCHAIN_FILE=$(PREFIX)/$(TARGET)/share/cmake/mingw-cross-env-conf.cmake \
-DBOOST_COMPILER=_win32 \
-DBOOST_THREAD_USE_LIB=1 \
-DBOOST_USE_STATIC_LIBS=1 \
-C TryRunResults.cgal.cmake .
$(MAKE) -C '$(1)' -j $(JOBS)
cd '$(1)/examples/AABB_tree' && cmake \
-DBOOST_LIB_DIAGNOSTIC_DEFINITIONS:STRING="-DBOOST_LIB_DIAGNOSTIC" \
-DWITH_CGAL_Qt3:BOOL="0" \
-DCMAKE_TOOLCHAIN_FILE=$(PREFIX)/$(TARGET)/share/cmake/mingw-cross-env-conf.cmake \
-DBOOST_COMPILER=_win32 \
-DBOOST_THREAD_USE_LIB=1 \
-DBOOST_USE_STATIC_LIBS=1 \
-DCGAL_DIR:STRING="../.." .
$(MAKE) -C '$(1)/examples/AABB_tree' -j $(JOBS)
$(MAKE) -C '$(1)' -j $(JOBS) install
$(INSTALL) '$(1)/examples/AABB_tree/AABB_polyhedron_edge_example.exe' '$(PREFIX)/$(TARGET)/bin/test-cgal.exe'
endef

@ -4,13 +4,13 @@
# cURL
PKG := curl
$(PKG)_IGNORE :=
$(PKG)_VERSION := 7.21.6
$(PKG)_CHECKSUM := 049a3aff13d283f6e4ea1f9aa3aa6abc067fd42e
$(PKG)_VERSION := 7.22.0
$(PKG)_CHECKSUM := 8e7b2b0ca933812614ec0eade2f83e77632247d6
$(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)_DEPS := gcc gnutls libidn libssh2
define $(PKG)_UPDATE
wget -q -O- 'http://curl.haxx.se/download/?C=M;O=D' | \
@ -27,7 +27,7 @@ define $(PKG)_BUILD
--prefix='$(PREFIX)/$(TARGET)' \
--with-gnutls \
--with-libidn \
LIBS="-lgcrypt -liconv `$(PREFIX)/$(TARGET)/bin/gpg-error-config --libs`"
LIBS="-lgcrypt -liconv `$(PREFIX)/$(TARGET)/bin/gpg-error-config --libs` -lssh2"
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
'$(TARGET)-gcc' \

@ -1,17 +1,19 @@
This file is part of mingw-cross-env.
See doc/index.html for further information.
From 7241e09abbfc2021f2a7e5cbded70222023fa7e6 Mon Sep 17 00:00:00 2001
From: Mark Brand <mabrand@mabrand.nl>
Contains ad hoc patches for cross building.
From 9c99802fc9d0e3b2c90b00ba877ae8be9bab615f Mon Sep 17 00:00:00 2001
From: mingw-cross-env
Date: Tue, 4 Jan 2011 00:47:49 +0100
Subject: [PATCH 1/1] always static in mingw-cross-env
Subject: [PATCH 1/2] always static in mingw-cross-env
diff --git a/dbus/dbus-macros.h b/dbus/dbus-macros.h
index d1e40ec..3a32355 100644
index dcd3eeb..8324278 100644
--- a/dbus/dbus-macros.h
+++ b/dbus/dbus-macros.h
@@ -158,6 +158,7 @@
@@ -172,6 +172,7 @@
*/
#if defined(_WIN32)
@ -20,5 +22,35 @@ index d1e40ec..3a32355 100644
# define DBUS_EXPORT
# elif defined(dbus_1_EXPORTS)
--
1.7.1
1.7.6.3
From d7bc1aff67132c09d154999c282e1b391bbe7a39 Mon Sep 17 00:00:00 2001
From: mingw-cross-env
Date: Fri, 23 Sep 2011 16:24:46 +0200
Subject: [PATCH 2/2] add missing MemoryBarrier (mingw-cross-env specific)
Windows API has this, but it's not in MinGW.
See http://lists-archives.org/mingw-users/15935-missing-definition-of-memorybarrier.html
diff --git a/dbus/dbus-sysdeps-win.c b/dbus/dbus-sysdeps-win.c
index b492b09..082225f 100644
--- a/dbus/dbus-sysdeps-win.c
+++ b/dbus/dbus-sysdeps-win.c
@@ -55,6 +55,13 @@
#include <ws2tcpip.h>
#include <wincrypt.h>
+__CRT_INLINE VOID MemoryBarrier(VOID)
+{
+ LONG Barrier = 0;
+ __asm__ __volatile__("xchgl %%eax,%0 "
+ :"=r" (Barrier));
+}
+
/* Declarations missing in mingw's headers */
extern BOOL WINAPI ConvertStringSidToSidA (LPCSTR StringSid, PSID *Sid);
extern BOOL WINAPI ConvertSidToStringSidA (PSID Sid, LPSTR *StringSid);
--
1.7.6.3

@ -4,8 +4,8 @@
# dbus
PKG := dbus
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.5.0
$(PKG)_CHECKSUM := 4f0c82af6de628d7359dcdbc0da402f8e369e367
$(PKG)_VERSION := 1.5.8
$(PKG)_CHECKSUM := c5e9e286b5757f892cc21f894145e7f05c8fc813
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://$(PKG).freedesktop.org/
@ -15,12 +15,12 @@ $(PKG)_DEPS := gcc expat
define $(PKG)_UPDATE
wget -q -O- 'http://cgit.freedesktop.org/dbus/dbus/refs/tags' | \
$(SED) -n "s,.*<a href='[^']*/tag/?id=[^0-9]*\\([0-9][^']*\\)'.*,\\1,p" | \
grep -v '^1\.[0123]\.' | \
grep -v '^1\.[01234]\.' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
cd '$(1)' && automake && ./configure \
--host='$(TARGET)' \
--prefix='$(PREFIX)/$(TARGET)' \
--with-xml=expat \
@ -29,8 +29,6 @@ define $(PKG)_BUILD
--disable-asserts \
--disable-shared \
--enable-static \
--disable-tests \
--disable-standalone-tests \
--disable-silent-rules
$(MAKE) -C '$(1)' -j '$(JOBS)' install
endef

@ -0,0 +1,26 @@
# This file is part of mingw-cross-env.
# See doc/index.html for further information.
# eigen
PKG := eigen
$(PKG)_IGNORE :=
$(PKG)_VERSION := 2.0.16
$(PKG)_CHECKSUM := 16732775f93174563e575c3570395a11a5e57104
$(PKG)_SUBDIR := $(PKG)-$(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://eigen.tuxfamily.org/
$(PKG)_URL := http://bitbucket.org/$(PKG)/$(PKG)/get/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'http://eigen.tuxfamily.org/index.php?title=Main_Page#Download' | \
grep 'eigen/get/' | \
$(SED) -n 's,.*eigen/get/\(2[^>]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && \
cmake . -DCMAKE_TOOLCHAIN_FILE=$(PREFIX)/$(TARGET)/share/cmake/mingw-cross-env-conf.cmake
$(MAKE) -C '$(1)' -j '$(JOBS)' install
endef

@ -1,79 +0,0 @@
# This file is part of mingw-cross-env.
# See doc/index.html for further information.
This patch has been taken from:
http://dev.exiv2.org/issues/764
Index: trunk/src/psdimage.cpp
===================================================================
--- trunk/src/psdimage.cpp (revision 2468)
+++ trunk/src/psdimage.cpp (revision 2469)
@@ -400,7 +400,7 @@
uint32_t resourceType = getULong(buf, bigEndian);
if (resourceType != kPhotoshopResourceType) {
- break; // bad resource type
+ throw Error(3, "Photoshop"); // bad resource type
}
uint16_t resourceId = getUShort(buf + 4, bigEndian);
uint32_t resourceNameLength = buf[6];
@@ -416,13 +416,13 @@
if (io_->read(buf, 4) != 4) throw Error(3, "Photoshop");
uint32_t resourceSize = getULong(buf, bigEndian);
+ uint32_t pResourceSize = (resourceSize + 1) & ~1; // padded resource size
uint32_t curOffset = io_->tell();
// Write IPTC_NAA resource block
if ((resourceId == kPhotoshopResourceID_IPTC_NAA ||
resourceId > kPhotoshopResourceID_IPTC_NAA) && iptcDone == false) {
newResLength += writeIptcData(iptcData_, outIo);
- resourceSize = (resourceSize + 1) & ~1; // adjust for padding
iptcDone = true;
}
@@ -430,7 +430,6 @@
else if ((resourceId == kPhotoshopResourceID_ExifInfo ||
resourceId > kPhotoshopResourceID_ExifInfo) && exifDone == false) {
newResLength += writeExifData(exifData_, outIo);
- resourceSize = (resourceSize + 1) & ~1; // adjust for padding
exifDone = true;
}
@@ -438,7 +437,6 @@
else if ((resourceId == kPhotoshopResourceID_XMPPacket ||
resourceId > kPhotoshopResourceID_XMPPacket) && xmpDone == false) {
newResLength += writeXmpData(xmpData_, outIo);
- resourceSize = (resourceSize + 1) & ~1; // adjust for padding
xmpDone = true;
}
@@ -467,10 +465,9 @@
readTotal = 0;
toRead = 0;
- resourceSize = (resourceSize + 1) & ~1; // pad to even
- while (readTotal < resourceSize) {
- toRead = static_cast<long>(resourceSize - readTotal) < lbuf.size_
- ? static_cast<long>(resourceSize - readTotal) : lbuf.size_;
+ while (readTotal < pResourceSize) {
+ toRead = static_cast<long>(pResourceSize - readTotal) < lbuf.size_
+ ? static_cast<long>(pResourceSize - readTotal) : lbuf.size_;
if (io_->read(lbuf.pData_, toRead) != toRead) {
throw Error(3, "Photoshop");
}
@@ -478,11 +475,11 @@
if (outIo.write(lbuf.pData_, toRead) != toRead) throw Error(21);
}
if (outIo.error()) throw Error(21);
- newResLength += resourceSize + adjResourceNameLen + 12;
+ newResLength += pResourceSize + adjResourceNameLen + 12;
}
- io_->seek(curOffset + resourceSize, BasicIo::beg);
- oldResLength -= (12 + adjResourceNameLen + resourceSize);
+ io_->seek(curOffset + pResourceSize, BasicIo::beg);
+ oldResLength -= (12 + adjResourceNameLen + pResourceSize);
}
// Append IPTC_NAA resource block, if not yet written

@ -1,41 +0,0 @@
# This file is part of mingw-cross-env.
# See doc/index.html for further information.
This patch has been taken from:
http://dev.exiv2.org/issues/767
Index: trunk/config/configure.ac
===================================================================
--- trunk/config/configure.ac (revision 2471)
+++ trunk/config/configure.ac (revision 2472)
@@ -31,12 +31,6 @@
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_CANONICAL_HOST
-# Add flag for DLL on Windows
-case "$host_os" in
-*mingw* | *cygwin*)
- LDFLAGS="$LDFLAGS -no-undefined"
- ;;
-esac
# ---------------------------------------------------------------------------
# i18n support
@@ -204,6 +198,17 @@
fi
AC_SUBST(EXV_LIB_STATIC)
+# Add flag for DLL on Windows
+#
+# This must happen after all other configure checks, because
+# the "-no-undefined" flag is only for libtool and may not be
+# passed to GCC by accident.
+case "$host_os" in
+*mingw* | *cygwin*)
+ LDFLAGS="$LDFLAGS -no-undefined"
+ ;;
+esac
+
# ---------------------------------------------------------------------------
# Create output files.
# ---------------------------------------------------------------------------

@ -0,0 +1,49 @@
This file is part of mingw-cross-env.
See doc/index.html for further information.
This patch has been taken from:
http://dev.exiv2.org/projects/exiv2/repository/revisions/2619
Index: trunk/src/epsimage.cpp
===================================================================
--- trunk/src/epsimage.cpp (revision 2618)
+++ trunk/src/epsimage.cpp (revision 2619)
@@ -393,6 +393,7 @@
unsigned int depth = 0;
const unsigned int maxDepth = UINT_MAX;
bool illustrator8 = false;
+ bool corelDraw = false;
bool implicitPage = false;
bool implicitPageTrailer = false;
bool inDefaultsPreviewPrologSetup = false;
@@ -547,6 +548,8 @@
posAi7ThumbnailEndData = startPos;
} else if (posEndComments == posEndEps && line == "%%EndComments") {
posEndComments = startPos;
+ } else if (inDefaultsPreviewPrologSetup && startsWith(line, "%%BeginResource: procset wCorel")) {
+ corelDraw = true;
} else if (line == "%%EndPreview") {
inDefaultsPreviewPrologSetup = false;
} else if (line == "%%EndDefaults") {
@@ -922,6 +925,10 @@
writeTemp(*tempIo, "%%BeginPageSetup" + lineEnding);
}
writeTemp(*tempIo, "%Exiv2BeginXMP: Before %%EndPageSetup" + lineEnding);
+ if (corelDraw) {
+ writeTemp(*tempIo, "%Exiv2Notice: The following line is needed by CorelDRAW." + lineEnding);
+ writeTemp(*tempIo, "@rs" + lineEnding);
+ }
if (posBeginPhotoshop != posEndEps) {
writeTemp(*tempIo, "%Exiv2Notice: The following line is needed by Photoshop." + lineEnding);
writeTemp(*tempIo, "%begin_xml_code" + lineEnding);
@@ -953,6 +960,10 @@
writeTemp(*tempIo, "%Exiv2Notice: The following line is needed by Photoshop." + lineEnding);
writeTemp(*tempIo, "%end_xml_code" + lineEnding);
}
+ if (corelDraw) {
+ writeTemp(*tempIo, "%Exiv2Notice: The following line is needed by CorelDRAW." + lineEnding);
+ writeTemp(*tempIo, "@sv" + lineEnding);
+ }
writeTemp(*tempIo, "%Exiv2EndXMP" + lineEnding);
if (line != "%%EndPageSetup") {
writeTemp(*tempIo, "%%EndPageSetup" + lineEnding);

@ -4,8 +4,8 @@
# Exiv2
PKG := exiv2
$(PKG)_IGNORE :=
$(PKG)_VERSION := 0.21.1
$(PKG)_CHECKSUM := d33e0efbad5d6a7af7f2e6d1d0beb6e7c941cfca
$(PKG)_VERSION := 0.22
$(PKG)_CHECKSUM := 35211d853a986fe1b008fca14db090726e8dcce3
$(PKG)_SUBDIR := exiv2-$($(PKG)_VERSION)
$(PKG)_FILE := exiv2-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://www.exiv2.org/
@ -20,8 +20,6 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
# rebuild configure script as one of the patches modifies configure.ac
$(MAKE) -C '$(1)/config' -f config.make
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
@ -31,8 +29,6 @@ define $(PKG)_BUILD
--disable-visibility \
--disable-nls \
--with-expat
# fix pkg-config linker flags
$(SED) -i 's,-no-undefined,,' '$(1)/config/exiv2.pc'
$(MAKE) -C '$(1)/xmpsdk/src' -j '$(JOBS)'
$(MAKE) -C '$(1)/src' -j '$(JOBS)' install-lib
endef

@ -4,8 +4,8 @@
# ffmpeg
PKG := ffmpeg
$(PKG)_IGNORE :=
$(PKG)_VERSION := 0.7-rc1
$(PKG)_CHECKSUM := d15c005f46483fbfc3b678cb1c89123762b56b82
$(PKG)_VERSION := 0.8.5
$(PKG)_CHECKSUM := a69d909958b23f8b2509ddda6cdeba2601edf5ff
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2
$(PKG)_WEBSITE := http://www.ffmpeg.org/

@ -4,8 +4,8 @@
# fftw
PKG := fftw
$(PKG)_IGNORE :=
$(PKG)_VERSION := 3.2.2
$(PKG)_CHECKSUM := d43b799eedfb9408f62f9f056f5e8a645618467b
$(PKG)_VERSION := 3.3
$(PKG)_CHECKSUM := e44493ba4babeacba184568e727876d9aed44205
$(PKG)_SUBDIR := fftw-$($(PKG)_VERSION)
$(PKG)_FILE := fftw-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://www.fftw.org/

@ -0,0 +1,21 @@
This file is part of mingw-cross-env.
See doc/index.html for further information.
diff -Nur file-5.09/magic/Makefile.am file-5.09-mingw-cross-env/magic/Makefile.am
--- file-5.09/magic/Makefile.am 2011-09-08 23:58:42.000000000 +0200
+++ file-5.09-mingw-cross-env/magic/Makefile.am 2011-10-23 17:31:31.456765605 +0200
@@ -246,13 +246,8 @@
# FIXME: Build file natively as well so that it can be used to compile
# the target's magic file; for now we bail if the local version does not match
-if IS_CROSS_COMPILE
-FILE_COMPILE = file
+FILE_COMPILE = $(top_builddir)/src/file.local
FILE_COMPILE_DEP =
-else
-FILE_COMPILE = $(top_builddir)/src/file
-FILE_COMPILE_DEP = $(FILE_COMPILE)
-endif
${MAGIC}: $(EXTRA_DIST) $(FILE_COMPILE_DEP)
@rm -fr magic

@ -0,0 +1,38 @@
# This file is part of mingw-cross-env.
# See doc/index.html for further information.
# file
PKG := file
$(PKG)_IGNORE :=
$(PKG)_VERSION := 5.09
$(PKG)_CHECKSUM := 9d905f9e50033c3f5be3728473cbb709a41550fb
$(PKG)_SUBDIR := file-$($(PKG)_VERSION)
$(PKG)_FILE := file-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://www.darwinsys.com/file/
$(PKG)_URL := ftp://ftp.astron.com/pub/file/$($(PKG)_FILE)
$(PKG)_DEPS := gcc libgnurx
define $(PKG)_UPDATE
wget -q -O- 'ftp://ftp.astron.com/pub/file/' | \
grep 'file-' | \
$(SED) -n 's,.*file-\([0-9][^>]*\)\.tar.*,\1,p' | \
tail -1
endef
define $(PKG)_BUILD
# "file" needs a runnable version of the "file" utility
# itself. This must match the source code regarding its
# version. Therefore we build a native one ourselves first.
cd '$(1)' && ./configure \
--disable-shared
$(MAKE) -C '$(1)/src' -j '$(JOBS)' file
cp '$(1)/src/file' '$(1)/src/file.local'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)'
$(MAKE) -C '$(1)' clean
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
endef

File diff suppressed because it is too large Load Diff

@ -4,12 +4,12 @@
# FLTK
PKG := fltk
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.3.x-r8659
$(PKG)_CHECKSUM := 97d5002f1f3a32bf78634954e63c491483e727ac
$(PKG)_VERSION := 1.3.0
$(PKG)_CHECKSUM := 720f2804be6132ebae9909d4e74dedcc00b39d25
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $($(PKG)_SUBDIR).tar.bz2
$(PKG)_FILE := $($(PKG)_SUBDIR)-source.tar.gz
$(PKG)_WEBSITE := http://www.fltk.org/
$(PKG)_URL := http://ftp.easysw.com/pub/fltk/snapshots/$($(PKG)_FILE)
$(PKG)_URL := http://ftp.easysw.com/pub/fltk/$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := gcc zlib jpeg libpng pthreads
define $(PKG)_UPDATE
@ -33,7 +33,7 @@ define $(PKG)_BUILD
# enable exceptions, because disabling them doesn't make any sense on PCs
$(SED) -i 's,-fno-exceptions,,' '$(1)/makeinclude'
$(MAKE) -C '$(1)' -j '$(JOBS)' install DIRS=src LIBCOMMAND='$(TARGET)-ar cr'
ln -sf $(PREFIX)/$(TARGET)/bin/fltk-config $(PREFIX)/bin/$(TARGET)-fltk-config
ln -sf '$(PREFIX)/$(TARGET)/bin/fltk-config' '$(PREFIX)/bin/$(TARGET)-fltk-config'
'$(TARGET)-g++' \
-W -Wall -Werror -pedantic -ansi \

@ -0,0 +1,56 @@
This file is part of mingw-cross-env.
See doc/index.html for further information.
Contains ad hoc patches for cross building.
From 80e19ec2e4f84fb9d0959993b53ade4bd6cb9195 Mon Sep 17 00:00:00 2001
From: mingw-cross-env
Date: Mon, 24 Oct 2011 09:40:10 +0200
Subject: [PATCH] add pkg-config support
based on
http://old.nabble.com/-PATCH--Add-pkgconfig-file-td23312302.html
diff --git a/Makefile.am b/Makefile.am
index 39c5628..b504bc6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -68,3 +68,6 @@ dist-hook:
libtool: $(LIBTOOL_DEPS)
$(SHELL) ./config.status --recheck
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = glut.pc
diff --git a/configure.ac b/configure.ac
index 2f81174..5f069f7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -95,5 +95,5 @@ if test "x$enable_debug" = xyes; then
fi
# Generate output.
-AC_CONFIG_FILES([Makefile doc/Makefile include/GL/Makefile include/Makefile progs/Makefile progs/demos/CallbackMaker/Makefile progs/demos/Fractals/Makefile progs/demos/Fractals_random/Makefile progs/demos/Lorenz/Makefile progs/demos/Makefile progs/demos/One/Makefile progs/demos/shapes/Makefile progs/demos/smooth_opengl3/Makefile progs/demos/spaceball/Makefile src/Makefile])
+AC_CONFIG_FILES([Makefile doc/Makefile include/GL/Makefile include/Makefile progs/Makefile progs/demos/CallbackMaker/Makefile progs/demos/Fractals/Makefile progs/demos/Fractals_random/Makefile progs/demos/Lorenz/Makefile progs/demos/Makefile progs/demos/One/Makefile progs/demos/shapes/Makefile progs/demos/smooth_opengl3/Makefile progs/demos/spaceball/Makefile src/Makefile glut.pc])
AC_OUTPUT
diff --git a/glut.pc.in b/glut.pc.in
new file mode 100644
index 0000000..ea57c4a
--- /dev/null
+++ b/glut.pc.in
@@ -0,0 +1,12 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@/@PACKAGE@
+
+Name: glut
+Description: A freely licensed alternative to the GLUT library
+Version: @VERSION@
+Libs: -L${libdir} -lglut
+Libs.private: -lglu32 -lopengl32 -lwinmm -lgdi32 -mwindows
+Cflags: -DFREEGLUT_STATIC -I${includedir}
+
--
1.7.7

@ -0,0 +1,20 @@
/* This file is part of mingw-cross-env. */
/* See doc/index.html for further information. */
#include <GL/glut.h>
#include <stdio.h>
int main(int argc, char *argv[])
{
glutInit(&argc, argv);
glutInitWindowSize(640,480);
glutInitWindowPosition(10,10);
glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH);
glutCreateWindow("FreeGLUT Shapes");
glutMainLoop();
return(0);
}

@ -19,6 +19,7 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
cd '$(1)' && ./autogen.sh
$(SED) -i 's,Windows\.h,windows.h,' '$(1)/src/freeglut_internal.h'
$(SED) -i 's,WindowsX\.h,windowsx.h,' '$(1)/src/freeglut_internal.h'
$(SED) -i 's,MMSystem\.h,mmsystem.h,' '$(1)/src/freeglut_internal.h'
@ -31,5 +32,10 @@ define $(PKG)_BUILD
--disable-debug \
--without-progs \
--without-x
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= EXPORT_FLAGS='-DFREEGLUT_STATIC'
'$(TARGET)-gcc' \
-W -Wall -Werror -ansi -pedantic \
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-freeglut.exe' \
`'$(TARGET)-pkg-config' glut --cflags --libs`
endef

@ -4,8 +4,8 @@
# FreeImage
PKG := freeimage
$(PKG)_IGNORE :=
$(PKG)_VERSION := 3.15.0
$(PKG)_CHECKSUM := ec2faa01d1b312aab68d77afe62861759c790100
$(PKG)_VERSION := 3.15.1
$(PKG)_CHECKSUM := 02ae98007fc64d72a8f15ec3ff24c36ac745fbc8
$(PKG)_SUBDIR := FreeImage
$(PKG)_FILE := FreeImage$(subst .,,$($(PKG)_VERSION)).zip
$(PKG)_WEBSITE := http://freeimage.sourceforge.net/

@ -4,12 +4,12 @@
# FreeTDS
PKG := freetds
$(PKG)_IGNORE :=
$(PKG)_VERSION := 0.91.dev.20110523RC2
$(PKG)_CHECKSUM := c5848c9bf940782730dddf24a3bff141c9c9c369
$(PKG)_VERSION := 0.91
$(PKG)_CHECKSUM := 3ab06c8e208e82197dc25d09ae353d9f3be7db52
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://www.freetds.org/
$(PKG)_URL := https://bitbucket.org/mabrand/mingw-cross-env/downloads/$($(PKG)_FILE)
$(PKG)_URL := http://ibiblio.org/pub/Linux/ALPHA/$(PKG)/stable/$($(PKG)_FILE)
$(PKG)_DEPS := gcc libiconv gnutls
define $(PKG)_UPDATE

@ -4,8 +4,8 @@
# freetype
PKG := freetype
$(PKG)_IGNORE :=
$(PKG)_VERSION := 2.4.4
$(PKG)_CHECKSUM := 1d136cbc51c67b212c91ba04dc5db797f35e64e6
$(PKG)_VERSION := 2.4.7
$(PKG)_CHECKSUM := e1b2356ebbc6d39d813797572b1e5d8a2635e969
$(PKG)_SUBDIR := freetype-$($(PKG)_VERSION)
$(PKG)_FILE := freetype-$($(PKG)_VERSION).tar.bz2
$(PKG)_WEBSITE := http://freetype.sourceforge.net/

@ -8,7 +8,7 @@ http://sourceforge.net/tracker/?func=detail&atid=302435&aid=3011968&group_id=243
diff -urN a/gcc/ginclude/float.h b/gcc/ginclude/float.h
--- a/gcc/ginclude/float.h 2009-04-09 17:00:19.000000000 +0200
+++ b/gcc/ginclude/float.h 2010-06-05 12:03:41.887724045 +0200
@@ -236,3 +236,7 @@
@@ -275,3 +275,7 @@
#endif /* __STDC_WANT_DEC_FP__ */
#endif /* _FLOAT_H___ */

@ -3,18 +3,16 @@
# MPFR for GCC
PKG := gcc-mpfr
$(PKG)_IGNORE :=
$(PKG)_VERSION := 3.0.1
$(PKG)_CHECKSUM := fbf402fc196724ae60ef01eb6ca8490b1ea4db69
$(PKG)_SUBDIR := mpfr-$($(PKG)_VERSION)
$(PKG)_FILE := mpfr-$($(PKG)_VERSION).tar.bz2
$(PKG)_WEBSITE := http://www.mpfr.org/
$(PKG)_URL := http://www.mpfr.org/mpfr-$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_URL_2 := http://ftp.gnu.org/gnu/mpfr/$($(PKG)_FILE)
$(PKG)_IGNORE = $(mpfr_IGNORE)
$(PKG)_VERSION = $(mpfr_VERSION)
$(PKG)_CHECKSUM = $(mpfr_CHECKSUM)
$(PKG)_SUBDIR = $(mpfr_SUBDIR)
$(PKG)_FILE = $(mpfr_FILE)
$(PKG)_WEBSITE = $(mpfr_WEBSITE)
$(PKG)_URL = $(mpfr_URL)
$(PKG)_URL_2 = $(mpfr_URL_2)
$(PKG)_DEPS :=
define $(PKG)_UPDATE
wget -q --no-check-certificate -O- 'https://gforge.inria.fr/scm/viewvc.php/tags/?root=mpfr&sortby=date' | \
$(SED) -n 's,.*<a name="\([0-9][^"]*\)".*,\1,p' | \
head -1
echo $(mpfr_VERSION)
endef

@ -4,8 +4,8 @@
# GCC
PKG := gcc
$(PKG)_IGNORE :=
$(PKG)_VERSION := 4.6.0
$(PKG)_CHECKSUM := dcbb5ce724c4bf87b9ec93473d16b71e9ebac483
$(PKG)_VERSION := 4.6.1
$(PKG)_CHECKSUM := 8bf66f7a71534ba564563a0ba0b2517aead8ac30
$(PKG)_SUBDIR := gcc-$($(PKG)_VERSION)
$(PKG)_FILE := gcc-$($(PKG)_VERSION).tar.bz2
$(PKG)_WEBSITE := http://gcc.gnu.org/
@ -34,6 +34,7 @@ define $(PKG)_BUILD
cd '$(1).build' && '$(1)/configure' \
--target='$(TARGET)' \
--prefix='$(PREFIX)' \
--libdir='$(PREFIX)/lib' \
--enable-languages='c,c++,objc,fortran' \
--enable-version-specific-runtime-libs \
--with-gcc \
@ -46,7 +47,9 @@ define $(PKG)_BUILD
--disable-win32-registry \
--enable-threads=win32 \
--disable-libgomp \
--disable-libmudflap
--disable-libmudflap \
--with-mpfr-include='$(1)/mpfr/src' \
--with-mpfr-lib='$(1).build/mpfr/src/.libs'
$(MAKE) -C '$(1).build' -j '$(JOBS)'
$(MAKE) -C '$(1).build' -j 1 install
@ -60,6 +63,7 @@ define $(PKG)_BUILD
[ -d '$(dir $(CMAKE_TOOLCHAIN_FILE))' ] || mkdir -p '$(dir $(CMAKE_TOOLCHAIN_FILE))'
(echo 'set(BUILD_SHARED_LIBS OFF)'; \
echo 'set(CMAKE_SYSTEM_NAME Windows)'; \
echo 'set(MSYS 1)'; \
echo 'set(CMAKE_FIND_ROOT_PATH $(PREFIX)/$(TARGET))'; \
echo 'set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)'; \
echo 'set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)'; \
@ -68,6 +72,7 @@ define $(PKG)_BUILD
echo 'set(CMAKE_CXX_COMPILER $(PREFIX)/bin/$(TARGET)-g++)'; \
echo 'set(CMAKE_RC_COMPILER $(PREFIX)/bin/$(TARGET)-windres)'; \
echo 'set(PKG_CONFIG_EXECUTABLE $(PREFIX)/bin/$(TARGET)-pkg-config)'; \
echo 'set(QT_QMAKE_EXECUTABLE $(PREFIX)/bin/$(TARGET)-qmake)'; \
echo 'set(CMAKE_INSTALL_PREFIX $(PREFIX)/$(TARGET) CACHE PATH "Installation Prefix")'; \
echo 'set(CMAKE_BUILD_TYPE Release CACHE STRING "Debug|Release|RelWithDebInfo|MinSizeRel")') \
> '$(CMAKE_TOOLCHAIN_FILE)'

@ -1,36 +0,0 @@
This file is part of mingw-cross-env.
See doc/index.html for further information.
http://trac.osgeo.org/gdal/changeset/21526
Index: /branches/1.8/gdal/frmts/png/pngdataset.cpp
===================================================================
--- a/frmts/png/pngdataset.cpp (revision 21032)
+++ b/frmts/png/pngdataset.cpp (revision 21526)
@@ -1316,5 +1316,5 @@
*/
check = (png_size_t)VSIFReadL(data, (png_size_t)1, length,
- (VSILFILE*)png_ptr->io_ptr);
+ (VSILFILE*)png_get_io_ptr(png_ptr));
if (check != length)
@@ -1331,5 +1331,5 @@
png_uint_32 check;
- check = VSIFWriteL(data, 1, length, (VSILFILE*)(png_ptr->io_ptr));
+ check = VSIFWriteL(data, 1, length, (VSILFILE*)png_get_io_ptr(png_ptr));
if (check != length)
@@ -1342,5 +1342,5 @@
static void png_vsi_flush(png_structp png_ptr)
{
- VSIFFlushL( (VSILFILE*)(png_ptr->io_ptr) );
+ VSIFFlushL( (VSILFILE*)png_get_io_ptr(png_ptr) );
}
@@ -1358,5 +1358,5 @@
// semantics. Ugg.
- jmp_buf* psSetJmpContext = (jmp_buf*) png_ptr->error_ptr;
+ jmp_buf* psSetJmpContext = (jmp_buf*) png_get_error_ptr(png_ptr);
if (psSetJmpContext)
{

@ -4,8 +4,8 @@
# GDAL
PKG := gdal
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.8.0
$(PKG)_CHECKSUM := e5a2802933054050c6fb0b0a0e1f46b5dd195b0a
$(PKG)_VERSION := 1.8.1
$(PKG)_CHECKSUM := b2f8b12ebdd00c05bc7f1ab7b761d9ac335c470c
$(PKG)_SUBDIR := gdal-$($(PKG)_VERSION)
$(PKG)_FILE := gdal-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://www.gdal.org/
@ -85,5 +85,5 @@ define $(PKG)_BUILD
$(MAKE) -C '$(1)/alg' -j 1 install
$(MAKE) -C '$(1)/ogr' -j 1 install OGR_ENABLED=
$(MAKE) -C '$(1)/apps' -j 1 install BIN_LIST=
ln -sf $(PREFIX)/$(TARGET)/bin/gdal-config $(PREFIX)/bin/$(TARGET)-gdal-config
ln -sf '$(PREFIX)/$(TARGET)/bin/gdal-config' '$(PREFIX)/bin/$(TARGET)-gdal-config'
endef

@ -3,8 +3,8 @@
# gdb
PKG := gdb
$(PKG)_VERSION := 7.2
$(PKG)_CHECKSUM := 14daf8ccf1307f148f80c8db17f8e43f545c2691
$(PKG)_VERSION := 7.3.1
$(PKG)_CHECKSUM := e57f2c7f93536ef54fab728eb733bf2c36550718
$(PKG)_SUBDIR := gdb-$($(PKG)_VERSION)
$(PKG)_FILE := gdb-$($(PKG)_VERSION)a.tar.bz2
$(PKG)_WEBSITE := http://www.gnu.org/software/gdb/
@ -15,6 +15,8 @@ $(PKG)_DEPS := gcc expat libiconv zlib
define $(PKG)_UPDATE
wget -q -O- 'http://ftp.gnu.org/gnu/gdb/?C=M;O=D' | \
$(SED) -n 's,.*<a href="gdb-\([0-9][^"]*\)\.tar.*,\1,p' | \
grep -v '^7\.3a' | \
sort -r | \
head -1
endef
@ -25,5 +27,5 @@ define $(PKG)_BUILD
--prefix='$(PREFIX)/$(TARGET)' \
CONFIG_SHELL=$(SHELL)
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)/gdb' -j 1 install
$(MAKE) -C '$(1)' -j 1 install
endef

@ -4,8 +4,8 @@
# GEOS
PKG := geos
$(PKG)_IGNORE :=
$(PKG)_VERSION := 3.3.0rc1
$(PKG)_CHECKSUM := 6a8f7153d887d7a5085dcee62251b6f9c82a2283
$(PKG)_VERSION := 3.3.1
$(PKG)_CHECKSUM := 4f89e62c636dbf3e5d7e1bfcd6d9a7bff1bcfa60
$(PKG)_SUBDIR := geos-$($(PKG)_VERSION)
$(PKG)_FILE := geos-$($(PKG)_VERSION).tar.bz2
$(PKG)_WEBSITE := http://trac.osgeo.org/geos/

@ -0,0 +1,22 @@
/* This file is part of mingw-cross-env. */
/* See doc/index.html for further information. */
#include <stdio.h>
#include <GL/glew.h>
int main(int argc, char *argv[])
{
GLenum err;
(void)argc;
(void)argv;
err = glewInit();
if (GLEW_OK != err)
{
fprintf(stderr, "Error: %s\n", glewGetErrorString(err));
}
fprintf(stdout, "Status: Using GLEW %s\n", glewGetString(GLEW_VERSION));
return 0;
}

@ -4,8 +4,8 @@
# GLEW
PKG := glew
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.6.0
$(PKG)_CHECKSUM := ed555d15d0f01239b262c4cf803e97d60d8a18b6
$(PKG)_VERSION := 1.7.0
$(PKG)_CHECKSUM := 9266f2360c1687a96f2ea06419671d370b2928d1
$(PKG)_SUBDIR := glew-$($(PKG)_VERSION)
$(PKG)_FILE := glew-$($(PKG)_VERSION).tgz
$(PKG)_WEBSITE := http://glew.sourceforge.net/
@ -39,4 +39,9 @@ define $(PKG)_BUILD
$(INSTALL) -d '$(PREFIX)/$(TARGET)/include'
$(INSTALL) -d '$(PREFIX)/$(TARGET)/include/GL'
$(INSTALL) -m644 '$(1)/include/GL/glew.h' '$(1)/include/GL/wglew.h' '$(PREFIX)/$(TARGET)/include/GL/'
'$(TARGET)-gcc' \
-W -Wall -Werror -ansi -pedantic \
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-glew.exe' \
`'$(TARGET)-pkg-config' glew --cflags --libs`
endef

@ -6,7 +6,7 @@ Contains ad hoc patches for cross building.
From 4693f62d3f01f7b7d26607e6eed843202cbf90f7 Mon Sep 17 00:00:00 2001
From: mingw-cross-env
Date: Thu, 23 Sep 2010 21:36:04 +0200
Subject: [PATCH 1/7] no gtk doc check
Subject: [PATCH 1/5] no gtk doc check
diff --git a/configure.ac b/configure.ac
@ -29,7 +29,7 @@ index a821267..2e541d2 100644
From 46d0d473e6fb32c5204d063cad5f5073d2a139a5 Mon Sep 17 00:00:00 2001
From: mingw-cross-env
Date: Thu, 23 Sep 2010 21:41:51 +0200
Subject: [PATCH 2/7] optional gettext
Subject: [PATCH 2/5] optional gettext
diff --git a/configure.ac b/configure.ac
@ -71,7 +71,7 @@ index c710046..269bfdf 100644
From 3473b5183b2e59d247cd1db053efc6c9ecaf2aab Mon Sep 17 00:00:00 2001
From: mingw-cross-env
Date: Thu, 23 Sep 2010 21:42:46 +0200
Subject: [PATCH 3/7] fix tool paths
Subject: [PATCH 3/5] fix tool paths
diff --git a/glib-2.0.pc.in b/glib-2.0.pc.in
@ -98,7 +98,7 @@ index 3d1ac12..58e1ecf 100644
From 0e57514812500d5d4dee03e1be8059a25876dd99 Mon Sep 17 00:00:00 2001
From: mingw-cross-env
Date: Thu, 23 Sep 2010 21:45:50 +0200
Subject: [PATCH 4/7] fix dependency libs
Subject: [PATCH 4/5] fix dependency libs
diff --git a/configure.ac b/configure.ac
@ -132,7 +132,7 @@ index 58e1ecf..17b2133 100644
From 87931c81f6401fb0c25064ec0ba2edca9ec53924 Mon Sep 17 00:00:00 2001
From: mingw-cross-env
Date: Sat, 25 Sep 2010 00:07:33 +0200
Subject: [PATCH 5/7] add -ldnsapi to gio-2.0.pc
Subject: [PATCH 5/5] add -ldnsapi to gio-2.0.pc
diff --git a/gio-2.0.pc.in b/gio-2.0.pc.in
@ -149,56 +149,3 @@ index 92cda85..7a4e224 100644
Cflags:
--
1.7.1
From 58d20f08e876298e795f7282ddc6cfccbe6f05fe Mon Sep 17 00:00:00 2001
From: mingw-cross-env
Date: Sun, 3 Oct 2010 20:24:46 +0200
Subject: [PATCH 6/7] darwin config libiconv
diff --git a/configure.ac b/configure.ac
index e472768..a681285 100644
--- a/configure.ac
+++ b/configure.ac
@@ -374,6 +374,12 @@ dnl ***********************
dnl
dnl We do this before the gettext checks, to avoid distortion
+case $host in
+ *-*-darwin*)
+ with_libiconv=native
+ ;;
+esac
+
dnl On Windows we use a native implementation
if test x"$glib_native_win32" = xyes; then
--
1.7.1
From a340fa1dfbf9a8ac58cd1b026bd26de30d7fc581 Mon Sep 17 00:00:00 2001
From: mingw-cross-env
Date: Sun, 3 Oct 2010 20:25:32 +0200
Subject: [PATCH 7/7] apple iconv
This patch has been taken from:
http://mail.gnome.org/archives/gtk-list/2009-August/msg00146.html
diff --git a/glib/gconvert.c b/glib/gconvert.c
index 52a3dd8..d8b4f89 100644
--- a/glib/gconvert.c
+++ b/glib/gconvert.c
@@ -61,7 +61,7 @@
#if defined(USE_LIBICONV_GNU) && !defined (_LIBICONV_H)
#error GNU libiconv in use but included iconv.h not from libiconv
#endif
-#if !defined(USE_LIBICONV_GNU) && defined (_LIBICONV_H)
+#if !defined(USE_LIBICONV_GNU) && defined (_LIBICONV_H) && !defined(__APPLE__)
#error GNU libiconv not in use but included iconv.h is from libiconv
#endif
--
1.7.1

@ -4,8 +4,8 @@
# GLib
PKG := glib
$(PKG)_IGNORE :=
$(PKG)_VERSION := 2.28.6
$(PKG)_CHECKSUM := 51996339c823cf36ba28c774c4afad933d5f5744
$(PKG)_VERSION := 2.28.8
$(PKG)_CHECKSUM := 20cd63705a8805260da0320c65b979233f2e3c18
$(PKG)_SUBDIR := glib-$($(PKG)_VERSION)
$(PKG)_FILE := glib-$($(PKG)_VERSION).tar.bz2
$(PKG)_WEBSITE := http://www.gtk.org/

@ -4,8 +4,8 @@
# GLibmm
PKG := glibmm
$(PKG)_IGNORE :=
$(PKG)_VERSION := 2.28.1
$(PKG)_CHECKSUM := 76cfba52d8fb1e3f46d14c3fea31269deb49e2fc
$(PKG)_VERSION := 2.28.2
$(PKG)_CHECKSUM := d15bc0fed7dea6fec73746370653687f74e02592
$(PKG)_SUBDIR := glibmm-$($(PKG)_VERSION)
$(PKG)_FILE := glibmm-$($(PKG)_VERSION).tar.bz2
$(PKG)_WEBSITE := http://www.gtkmm.org/

@ -0,0 +1,26 @@
This file is part of mingw-cross-env.
See doc/index.html for further information.
Contains ad hoc patches for cross building.
From 2f8e6d6727a6140e12b8af09a64cdec05054162e Mon Sep 17 00:00:00 2001
From: mingw-cross-env
Date: Wed, 17 Aug 2011 14:01:51 +0200
Subject: [PATCH] adding missing ws2_32 to Libs.private
diff --git a/lib/gnutls.pc.in b/lib/gnutls.pc.in
index bac5f42..eb4e6df 100644
--- a/lib/gnutls.pc.in
+++ b/lib/gnutls.pc.in
@@ -20,6 +20,6 @@ Description: Transport Security Layer implementation for the GNU system
URL: http://www.gnu.org/software/gnutls/
Version: @VERSION@
Libs: -L${libdir} -lgnutls
-Libs.private: @LTLIBGCRYPT@ @LTLIBNETTLE@ @NETTLE_LIBS@ @GNUTLS_ZLIB_LIBS_PRIVATE@
+Libs.private: @LTLIBGCRYPT@ @LTLIBNETTLE@ @NETTLE_LIBS@ @P11_KIT_LIBS@ @GNUTLS_ZLIB_LIBS_PRIVATE@ -lws2_32
@GNUTLS_REQUIRES_PRIVATE@
Cflags: -I${includedir}
--
1.7.6

@ -0,0 +1,16 @@
/* This file is part of mingw-cross-env. */
/* See doc/index.html for further information. */
#include <gnutls/gnutls.h>
int main(int argc, char *argv[])
{
(void)argc;
(void)argv;
gnutls_global_init ();
gnutls_global_deinit ();
return 0;
}

@ -3,12 +3,12 @@
# GnuTLS
PKG := gnutls
$(PKG)_VERSION := 2.12.5
$(PKG)_CHECKSUM := dd45d4fb7c365d18803b9eafef838b310c899d67
$(PKG)_VERSION := 2.12.12
$(PKG)_CHECKSUM := 6c87591705b21f7cae845ecdae158a6c5d8f2847
$(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 := ftp://ftp.gnutls.org/pub/gnutls/$($(PKG)_FILE)
$(PKG)_URL_2 := ftp://ftp.gnupg.org/gcrypt/gnutls/$($(PKG)_FILE)
$(PKG)_DEPS := gcc zlib libgcrypt
@ -17,6 +17,7 @@ define $(PKG)_UPDATE
grep '<a class="list name"' | \
$(SED) -n 's,.*<a[^>]*>gnutls_\([0-9]*_[0-9]*[02468]_[^<]*\)<.*,\1,p' | \
$(SED) 's,_,.,g' | \
grep -v '^3\.' | \
head -1
endef
@ -37,6 +38,13 @@ define $(PKG)_BUILD
--with-included-pakchois \
--with-libgcrypt \
--without-lzo \
LIBS='-lz'
--without-p11-kit \
LIBS='-lz' \
ac_cv_prog_AR='$(TARGET)-ar'
$(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= defexec_DATA=
'$(TARGET)-gcc' \
-W -Wall -Werror -ansi -pedantic \
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-gnutls.exe' \
`'$(TARGET)-pkg-config' gnutls --cflags --libs`
endef

@ -0,0 +1,18 @@
/* This file is part of mingw-cross-env. */
/* See doc/index.html for further information. */
#include <stdio.h>
#include <gsl/gsl_sf_bessel.h>
int main(int argc, char *argv[])
{
double x, y;
(void)argc;
(void)argv;
x = 5.0;
y = gsl_sf_bessel_J0 (x);
printf ("J0(%g) = %.18e\n", x, y);
return 0;
}

@ -20,6 +20,8 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--prefix='$(PREFIX)/$(TARGET)' \
@ -27,4 +29,9 @@ define $(PKG)_BUILD
--enable-static
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j 1 install
'$(TARGET)-gcc' \
-W -Wall -Werror -ansi -pedantic \
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-gsl.exe' \
-lgsl
endef

@ -1,76 +1,97 @@
This file is part of mingw-cross-env.
See doc/index.html for further information.
Patches taken from
https://sourceforge.net/tracker/?func=detail&aid=3288762&group_id=52781&atid=468023
https://sourceforge.net/tracker/?func=detail&aid=3288772&group_id=52781&atid=468023
Contains ad hoc patches for cross building.
From d49ac167169e2db531e1be5a48575186c8bc8799 Mon Sep 17 00:00:00 2001
From a4e9166bc8d78b2aee3c25757d479d4c2e53c7be Mon Sep 17 00:00:00 2001
From: mingw-cross-env
Date: Mon, 18 Apr 2011 09:20:27 +0200
Subject: [PATCH 1/2] use ws2spi instead of wspiapi
Date: Sun, 23 Oct 2011 21:36:53 +0200
Subject: [PATCH 1/2] support static linking to ntlm
diff --git a/gsoap/VisualStudio2005/wsdl2h/wsdl2h/stdsoap2.h b/gsoap/VisualStudio2005/wsdl2h/wsdl2h/stdsoap2.h
index 238b7f1..ffccf80 100644
--- a/gsoap/VisualStudio2005/wsdl2h/wsdl2h/stdsoap2.h
+++ b/gsoap/VisualStudio2005/wsdl2h/wsdl2h/stdsoap2.h
@@ -693,7 +693,7 @@ A commercial use license is available from Genivia, Inc., contact@genivia.com
# endif
# include <winsock2.h> /* Visual Studio 2005 users: you must install the Platform SDK (R2) */
# include <ws2tcpip.h>
-# include <wspiapi.h>
+# include <ws2spi.h>
# ifdef WITH_IPV6
# define SOAP_GAI_STRERROR gai_strerrorA
# endif
diff --git a/gsoap/samples/calc_vs2005/calc_vs2005/stdsoap2.h b/gsoap/samples/calc_vs2005/calc_vs2005/stdsoap2.h
index 238b7f1..ffccf80 100644
--- a/gsoap/samples/calc_vs2005/calc_vs2005/stdsoap2.h
+++ b/gsoap/samples/calc_vs2005/calc_vs2005/stdsoap2.h
@@ -693,7 +693,7 @@ A commercial use license is available from Genivia, Inc., contact@genivia.com
# endif
# include <winsock2.h> /* Visual Studio 2005 users: you must install the Platform SDK (R2) */
# include <ws2tcpip.h>
-# include <wspiapi.h>
+# include <ws2spi.h>
# ifdef WITH_IPV6
# define SOAP_GAI_STRERROR gai_strerrorA
# endif
diff --git a/gsoap/stdsoap2.h b/gsoap/stdsoap2.h
index 238b7f1..ffccf80 100644
--- a/gsoap/stdsoap2.h
+++ b/gsoap/stdsoap2.h
@@ -693,7 +693,7 @@ A commercial use license is available from Genivia, Inc., contact@genivia.com
# endif
# include <winsock2.h> /* Visual Studio 2005 users: you must install the Platform SDK (R2) */
# include <ws2tcpip.h>
-# include <wspiapi.h>
+# include <ws2spi.h>
# ifdef WITH_IPV6
# define SOAP_GAI_STRERROR gai_strerrorA
# endif
diff --git a/configure b/configure
index ad1830d..be95edf 100755
--- a/configure
+++ b/configure
@@ -4822,7 +4822,7 @@ case "${host}" in
;;
*-*-cygwin*) platform=CYGWIN ;;
*-*-mingw*) platform=MINGW
- SAMPLE_EXTRA_LIBS="-lws2_32 -lkernel32 -luser32 -lgdi32"
+ SAMPLE_EXTRA_LIBS="-lntlm -lws2_32 -lkernel32 -luser32 -lgdi32"
;;
*-*-freebsd*) platform=FREEBSD ;;
*-*-openbsd*) platform=OPENBSD ;;
--
1.7.4.1
1.7.7
From 2ed5f1205a5517c4f1d919942fbebd58327ee3df Mon Sep 17 00:00:00 2001
From da0eb2fc386be0fd914ef8f9a7d6bf73004ea230 Mon Sep 17 00:00:00 2001
From: mingw-cross-env
Date: Mon, 18 Apr 2011 10:14:06 +0200
Subject: [PATCH 2/2] add missing libs to gsoapssl++.pc
Date: Mon, 24 Oct 2011 11:17:13 +0200
Subject: [PATCH 2/2] ntlm support in .pc files
diff --git a/gsoap++.pc.in b/gsoap++.pc.in
index 035afd9..3411d55 100644
--- a/gsoap++.pc.in
+++ b/gsoap++.pc.in
@@ -8,4 +8,4 @@ Description: SOAP C++ Web Services
Version: @VERSION@
Requires:
Libs: -L${libdir} -lgsoap++ @SAMPLE_EXTRA_LIBS@
-Cflags: @SOAPCPP2_IPV6@ -DWITH_DOM -I${includedir}
+Cflags: @SOAPCPP2_IPV6@ -DWITH_DOM -DWITH_NTLM -I${includedir}
diff --git a/gsoap.pc.in b/gsoap.pc.in
index e2607aa..96a54b9 100644
--- a/gsoap.pc.in
+++ b/gsoap.pc.in
@@ -8,4 +8,4 @@ Description: SOAP C Web Services
Version: @VERSION@
Requires:
Libs: -L${libdir} -lgsoap @SAMPLE_EXTRA_LIBS@
-Cflags: @SOAPCPP2_IPV6@ -DWITH_DOM -I${includedir}
+Cflags: @SOAPCPP2_IPV6@ -DWITH_DOM -DWITH_NTLM -I${includedir}
diff --git a/gsoapck++.pc.in b/gsoapck++.pc.in
index cb03e2f..b349049 100644
--- a/gsoapck++.pc.in
+++ b/gsoapck++.pc.in
@@ -8,4 +8,4 @@ Description: SOAP C++ Web Services with Cookies Enabled
Version: @VERSION@
Requires:
Libs: -L${libdir} -lgsoapck++ @SAMPLE_EXTRA_LIBS@
-Cflags: @SOAPCPP2_IPV6@ -DWITH_COOKIES -DWITH_DOM -I${includedir}
+Cflags: @SOAPCPP2_IPV6@ -DWITH_COOKIES -DWITH_DOM -DWITH_NTLM -I${includedir}
diff --git a/gsoapck.pc.in b/gsoapck.pc.in
index 859a922..e5ce5eb 100644
--- a/gsoapck.pc.in
+++ b/gsoapck.pc.in
@@ -8,4 +8,4 @@ Description: SOAP C Web Services with Cookies Enabled
Version: @VERSION@
Requires:
Libs: -L${libdir} -lgsoapck @SAMPLE_EXTRA_LIBS@
-Cflags: @SOAPCPP2_IPV6@ -DWITH_COOKIES -DWITH_DOM -I${includedir}
+Cflags: @SOAPCPP2_IPV6@ -DWITH_COOKIES -DWITH_DOM -DWITH_NTLM -I${includedir}
diff --git a/gsoapssl++.pc.in b/gsoapssl++.pc.in
index e8c8f4f..07515fe 100644
index 391d820..791408a 100644
--- a/gsoapssl++.pc.in
+++ b/gsoapssl++.pc.in
@@ -7,5 +7,5 @@ Name: GSoap
Description: SOAP C++ Web Services with SSL and ZLIB
@@ -8,4 +8,4 @@ Description: SOAP C++ Web Services with SSL and ZLIB
Version: @VERSION@
Requires:
Libs: -L${libdir} -lgsoapssl++ @SAMPLE_SSL_LIBS@ @SAMPLE_EXTRA_LIBS@
-Cflags: @SOAPCPP2_IPV6@ -DWITH_OPENSSL -DWITH_DOM -DWITH_COOKIES -DWITH_GZIP -I${includedir}
+Cflags: @SOAPCPP2_IPV6@ -DWITH_OPENSSL -DWITH_DOM -DWITH_NTLM -DWITH_COOKIES -DWITH_GZIP -I${includedir}
diff --git a/gsoapssl.pc.in b/gsoapssl.pc.in
index 79c940a..17c9ee3 100644
--- a/gsoapssl.pc.in
+++ b/gsoapssl.pc.in
@@ -8,4 +8,4 @@ Description: SOAP C Web Services with SSL and ZLIB
Version: @VERSION@
Requires:
-Libs: -L${libdir} -lgsoapssl++
+Libs: -L${libdir} -lgsoapssl++ @SAMPLE_SSL_LIBS@ @SAMPLE_EXTRA_LIBS@
Cflags: -DWITH_OPENSSL -DWITH_DOM -DWITH_COOKIES -DWITH_GZIP -I${includedir}
Libs: -L${libdir} -lgsoapssl @SAMPLE_SSL_LIBS@ @SAMPLE_EXTRA_LIBS@
-Cflags: @SOAPCPP2_IPV6@ -DWITH_OPENSSL -DWITH_DOM -DWITH_COOKIES -DWITH_GZIP -I${includedir}
+Cflags: @SOAPCPP2_IPV6@ -DWITH_OPENSSL -DWITH_DOM -DWITH_NTLM -DWITH_COOKIES -DWITH_GZIP -I${includedir}
--
1.7.4.1
1.7.7

@ -4,13 +4,13 @@
# gSOAP
PKG := gsoap
$(PKG)_IGNORE :=
$(PKG)_VERSION := 2.8.2
$(PKG)_CHECKSUM := 199b7d4cf0b6a5bf81a2198e39f03c092ffc05a7
$(PKG)_VERSION := 2.8.4
$(PKG)_CHECKSUM := fea8734c83c2b5f9d07c44c556b27a6ce7ff0649
$(PKG)_SUBDIR := gsoap-$(call SHORT_PKG_VERSION,$(PKG))
$(PKG)_FILE := gsoap_$($(PKG)_VERSION).zip
$(PKG)_WEBSITE := http://gsoap2.sourceforge.net/
$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/gsoap2/gSOAP/$($(PKG)_FILE)
$(PKG)_DEPS := gcc gnutls
$(PKG)_DEPS := gcc gnutls libntlm
define $(PKG)_UPDATE
wget -q -O- 'http://sourceforge.net/projects/gsoap2/files/gSOAP/' | \
@ -33,6 +33,8 @@ define $(PKG)_BUILD
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
# fix hard-coded gnutls dependencies
$(SED) -i "s/-lgnutls -lgcrypt -lgpg-error -lz/`'$(TARGET)-pkg-config' --libs-only-l gnutls`/g;" '$(1)/configure'
# Build for mingw. Static by default.
# Prevent undefined reference to _rpl_malloc.
@ -40,10 +42,11 @@ define $(PKG)_BUILD
cd '$(1)' && ac_cv_func_malloc_0_nonnull=yes ./configure \
--prefix='$(PREFIX)/$(TARGET)' \
--host='$(TARGET)' \
--enable-gnutls
--enable-gnutls \
CPPFLAGS='-DWITH_NTLM'
# Building for mingw requires native soapcpp2
ln -s '$(PREFIX)/bin/$(TARGET)-soapcpp2' '$(1)'/gsoap/src/soapcpp2
ln -sf '$(PREFIX)/bin/$(TARGET)-soapcpp2' '$(1)/gsoap/src/soapcpp2'
# Parallel bulds can fail
$(MAKE) -C '$(1)' -j 1 AR='$(TARGET)-ar'

@ -4,8 +4,8 @@
# gst-plugins-base
PKG := gst-plugins-base
$(PKG)_IGNORE :=
$(PKG)_VERSION := 0.10.34
$(PKG)_CHECKSUM := 4db5f3112fe3a74ba46443e577647cff65b727e7
$(PKG)_VERSION := 0.10.35
$(PKG)_CHECKSUM := 6d7dc463fed5dd43f79a53ad523fcbd6d0916303
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2
$(PKG)_WEBSITE := http://gstreamer.freedesktop.org/

@ -4,8 +4,8 @@
# gst-plugins-good
PKG := gst-plugins-good
$(PKG)_IGNORE :=
$(PKG)_VERSION := 0.10.29
$(PKG)_CHECKSUM := a0e55c20ae36c8de18990c56b4d97ed3997cc6e0
$(PKG)_VERSION := 0.10.30
$(PKG)_CHECKSUM := 9c78a751bb2f20ad50a1daf6860e0098e0495f5a
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2
$(PKG)_WEBSITE := http://gstreamer.freedesktop.org/

@ -4,8 +4,8 @@
# gstreamer
PKG := gstreamer
$(PKG)_IGNORE :=
$(PKG)_VERSION := 0.10.34
$(PKG)_CHECKSUM := 3ebb64dceb45963e8be17c447a24a63958705164
$(PKG)_VERSION := 0.10.35
$(PKG)_CHECKSUM := ad03b8aca7b2415929b6ecc4c140b178acef39de
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2
$(PKG)_WEBSITE := http://gstreamer.freedesktop.org/

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -4,10 +4,10 @@
# ImageMagick
PKG := imagemagick
$(PKG)_IGNORE :=
$(PKG)_VERSION := 6.6.9-9
$(PKG)_CHECKSUM := 1d46f9d2b9294b11b9e9c03ee8da7e1df8d92fef
$(PKG)_VERSION := 6.7.2-7
$(PKG)_CHECKSUM := 13198d502e95abb305c23c3d56378e9139fcb7c3
$(PKG)_SUBDIR := ImageMagick-$($(PKG)_VERSION)
$(PKG)_FILE := ImageMagick-$($(PKG)_VERSION).tar.bz2
$(PKG)_FILE := ImageMagick-$($(PKG)_VERSION).tar.xz
$(PKG)_WEBSITE := http://www.imagemagick.org/
$(PKG)_URL := http://ftp.nluug.nl/ImageMagick/$($(PKG)_FILE)
$(PKG)_DEPS := gcc bzip2 ffmpeg fftw freetype jasper jpeg lcms libpng libtool openexr pthreads tiff zlib

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -4,8 +4,8 @@
# lame
PKG := lame
$(PKG)_IGNORE :=
$(PKG)_VERSION := 3.98.4
$(PKG)_CHECKSUM := eb29c7c937b9b7330ca979dfabc25ab2a31b9db2
$(PKG)_VERSION := 3.99
$(PKG)_CHECKSUM := 91dfd25bedc02759051a6b3af05e61337a575028
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://lame.sourceforge.net/

@ -4,8 +4,8 @@
# lcms
PKG := lcms
$(PKG)_IGNORE :=
$(PKG)_VERSION := 2.1
$(PKG)_CHECKSUM := 0ce856a004068ff6e22f9f2d7b94a11b9b469bf9
$(PKG)_VERSION := 2.2
$(PKG)_CHECKSUM := 55ae4884a92c7fbd491c118aa3b356814b1014df
$(PKG)_SUBDIR := $(PKG)$(word 1,$(subst ., ,$($(PKG)_VERSION)))-$(subst a,,$($(PKG)_VERSION))
$(PKG)_FILE := $(PKG)$(word 1,$(subst ., ,$($(PKG)_VERSION)))-$(subst a,,$($(PKG)_VERSION)).tar.gz
$(PKG)_WEBSITE := http://www.littlecms.com/

@ -4,8 +4,8 @@
# Libarchive
PKG := libarchive
$(PKG)_IGNORE :=
$(PKG)_VERSION := 2.8.4
$(PKG)_CHECKSUM := b9cc3bbd20bd71f996be9ec738f19fda8653f7af
$(PKG)_VERSION := 2.8.5
$(PKG)_CHECKSUM := e48a3b50de84b1d747f5af9ca5ba90eb6d3a4a78
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://code.google.com/p/libarchive/

@ -4,13 +4,13 @@
# libass
PKG := libass
$(PKG)_IGNORE :=
$(PKG)_VERSION := 0.9.11
$(PKG)_CHECKSUM := 6f69f6c4474c649de4fd7913b050bfd4cf8110cb
$(PKG)_VERSION := 0.10.0
$(PKG)_CHECKSUM := 7a0ea048f687421f3e1314988ca02f04861fc5f0
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $($(PKG)_SUBDIR).tar.bz2
$(PKG)_FILE := $($(PKG)_SUBDIR).tar.xz
$(PKG)_WEBSITE := http://code.google.com/p/libass/
$(PKG)_URL := http://libass.googlecode.com/files/$($(PKG)_FILE)
$(PKG)_DEPS := gcc freetype fontconfig
$(PKG)_DEPS := gcc freetype fontconfig fribidi
define $(PKG)_UPDATE
wget -q -O- 'http://code.google.com/p/libass/downloads/list?sort=-uploaded' | \

File diff suppressed because it is too large Load Diff

@ -0,0 +1,27 @@
This file is part of mingw-cross-env.
See doc/index.html for further information.
Patch taken from http://sourceforge.net/mailarchive/message.php?msg_id=27995461
mingwrt 3.20 provides ssize_t and defines _SSIZE_T_. This patch
allows libdnet to use this ssize_t instead of defining its
own which causes build failure. Applies to libdnet 1.11.
diff --git a/include/dnet/os.h b/include/dnet/os.h
index c12c7b2..9e8bdd2 100644
--- a/include/dnet/os.h
+++ b/include/dnet/os.h
@@ -23,8 +23,10 @@
typedef u_short uint16_t;
typedef u_int uint32_t;
# ifndef __CYGWIN__
+# ifndef _SSIZE_T_
typedef long ssize_t;
# endif
+# endif
#else
# include <sys/param.h>
# include <sys/types.h>
--
1.7.6

@ -4,16 +4,16 @@
# libevent
PKG := libevent
$(PKG)_IGNORE :=
$(PKG)_VERSION := 2.0.11
$(PKG)_CHECKSUM := 843b5d395054b9d4d5586220c004c29cdcc37fcf
$(PKG)_VERSION := 2.0.15
$(PKG)_CHECKSUM := 8e4f662f3bed28f82f89a5d0afaecac75adfa925
$(PKG)_SUBDIR := libevent-$($(PKG)_VERSION)-stable
$(PKG)_FILE := libevent-$($(PKG)_VERSION)-stable.tar.gz
$(PKG)_WEBSITE := http://monkey.org/~provos/libevent/
$(PKG)_URL := http://monkey.org/~provos/$($(PKG)_FILE)
$(PKG)_WEBSITE := http://libevent.org
$(PKG)_URL := https://github.com/downloads/$(PKG)/$(PKG)/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'http://www.monkey.org/~provos/libevent/' | \
wget -q -O- 'http://libevent.org/' | \
grep 'libevent-' | \
$(SED) -n 's,.*libevent-\([0-9][^>]*\)-stable\.tar.*,\1,p' | \
head -1

@ -0,0 +1,31 @@
/* This file is part of mingw-cross-env. */
/* See doc/index.html for further information. */
#include <stdio.h>
#include <ffi.h>
int main(int argc, char *argv[])
{
ffi_cif cif;
ffi_type *args[1];
void *values[1];
char *s;
int rc;
(void)argc;
(void)argv;
args[0] = &ffi_type_pointer;
values[0] = &s;
if (ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 1,
&ffi_type_uint, args) == FFI_OK)
{
s = "Hello World!";
ffi_call(&cif, FFI_FN(puts), &rc, values);
s = "Goodbye!";
ffi_call(&cif, FFI_FN(puts), &rc, values);
}
return 0;
}

@ -4,8 +4,8 @@
# libffi
PKG := libffi
$(PKG)_IGNORE :=
$(PKG)_VERSION := 3.0.9
$(PKG)_CHECKSUM := 56e41f87780e09d06d279690e53d4ea2c371ea88
$(PKG)_VERSION := 3.0.10
$(PKG)_CHECKSUM := 97abf70e6a6d315d9259d58ac463663051d471e1
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://sourceware.org/$(PKG)/
@ -24,6 +24,11 @@ define $(PKG)_BUILD
--host='$(TARGET)' \
--prefix='$(PREFIX)/$(TARGET)' \
--disable-shared
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j 1 install
$(MAKE) -C '$(1)/$(TARGET)' -j '$(JOBS)'
$(MAKE) -C '$(1)/$(TARGET)' -j 1 install
'$(TARGET)-gcc' \
-W -Wall -Werror -std=c99 -pedantic \
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-libffi.exe' \
`'$(TARGET)-pkg-config' libffi --cflags --libs`
endef

@ -4,8 +4,8 @@
# libgcrypt
PKG := libgcrypt
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.4.6
$(PKG)_CHECKSUM := 445b9e158aaf91e24eae3d1040c6213e9d9f5ba6
$(PKG)_VERSION := 1.5.0
$(PKG)_CHECKSUM := 3e776d44375dc1a710560b98ae8437d5da6e32cf
$(PKG)_SUBDIR := libgcrypt-$($(PKG)_VERSION)
$(PKG)_FILE := libgcrypt-$($(PKG)_VERSION).tar.bz2
$(PKG)_WEBSITE := ftp://ftp.gnupg.org/gcrypt/libgcrypt/

@ -0,0 +1,18 @@
This file is part of mingw-cross-env.
See doc/index.html for further information.
diff -Nur mingw-libgnurx-2.5.1/Makefile.mingw-cross-env mingw-libgnurx-2.5.1-mingw-cross-env/Makefile.mingw-cross-env
--- mingw-libgnurx-2.5.1/Makefile.mingw-cross-env 1970-01-01 01:00:00.000000000 +0100
+++ mingw-libgnurx-2.5.1-mingw-cross-env/Makefile.mingw-cross-env 2011-10-23 16:57:18.579312050 +0200
@@ -0,0 +1,11 @@
+include Makefile
+
+libgnurx.a: $(OBJECTS)
+ rm -f $@
+ $(TARGET)-ar rcu $@ $(OBJECTS)
+ $(TARGET)-ranlib $@
+
+install-static: libgnurx.a
+ mkdir -p ${includedir} ${libdir}
+ cp -p ${srcdir}/regex.h ${includedir}
+ cp -p ${srcdir}/libgnurx.a ${libdir}

@ -0,0 +1,29 @@
# This libgnurx is part of mingw-cross-env.
# See doc/index.html for further information.
# libgnurx
PKG := libgnurx
$(PKG)_IGNORE :=
$(PKG)_VERSION := 2.5.1
$(PKG)_CHECKSUM := f1e4af2541645dac82362b618aaa849658cd4988
$(PKG)_SUBDIR := mingw-libgnurx-$($(PKG)_VERSION)
$(PKG)_FILE := mingw-libgnurx-$($(PKG)_VERSION)-src.tar.gz
$(PKG)_WEBSITE := http://sourceforge.net/projects/mingw/files/UserContributed/regex/
$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/mingw/UserContributed/regex/mingw-regex-$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'http://sourceforge.net/projects/mingw/files/UserContributed/regex/' | \
grep 'mingw-regex-' | \
$(SED) -n 's,.*mingw-regex-\([0-9\.]*\).*,\1,p' | \
sort | \
uniq | \
tail -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--prefix='$(PREFIX)/$(TARGET)'
$(MAKE) -C '$(1)' -f Makefile.mingw-cross-env -j '$(JOBS)' TARGET=$(TARGET) bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= install-static
endef

@ -6,7 +6,7 @@ Contains ad hoc patches for cross building.
From f2970c9c697dd6a6104495ea91ed2488ead297b7 Mon Sep 17 00:00:00 2001
From: mingw-cross-env
Date: Fri, 24 Sep 2010 23:34:26 +0200
Subject: [PATCH 1/2] s,DllMain,static _disabled_DllMain,
Subject: [PATCH 1/1] s,DllMain,static _disabled_DllMain,
diff --git a/gsf/gsf-utils.c b/gsf/gsf-utils.c
@ -28,28 +28,3 @@ index d7a7247..cc52d99 100644
--
1.7.1
From ab87b1b623f774244935bf9f1d82365a3203d8db Mon Sep 17 00:00:00 2001
From: mingw-cross-env
Date: Wed, 29 Sep 2010 20:15:48 +0200
Subject: [PATCH 2/2] no gettext
diff --git a/configure.in b/configure.in
index af40c28..7ce5f7b 100644
--- a/configure.in
+++ b/configure.in
@@ -53,10 +53,6 @@ AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
dnl Gettext/i18n stuff
-IT_PROG_INTLTOOL([0.35.0])
-
-AM_GLIB_GNU_GETTEXT
-
GETTEXT_PACKAGE=AC_PACKAGE_NAME
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])
--
1.7.1

@ -4,8 +4,8 @@
# libgsf
PKG := libgsf
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.14.20
$(PKG)_CHECKSUM := d172b454c1b98f9c111df11e000b1ced050bdac9
$(PKG)_VERSION := 1.14.21
$(PKG)_CHECKSUM := 17981f238f1f8dddb7af01c161bd6a1c4d5e85d2
$(PKG)_SUBDIR := libgsf-$($(PKG)_VERSION)
$(PKG)_FILE := libgsf-$($(PKG)_VERSION).tar.bz2
$(PKG)_WEBSITE := http://ftp.gnome.org/pub/gnome/sources/libgsf/
@ -23,8 +23,6 @@ endef
define $(PKG)_BUILD
$(SED) -i 's,^\(Requires:.*\),\1 gio-2.0,' '$(1)'/libgsf-1.pc.in
echo 'Libs.private: -lz -lbz2' >> '$(1)'/libgsf-1.pc.in
cd '$(1)' && aclocal -I m4
cd '$(1)' && autoconf
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--disable-shared \

File diff suppressed because it is too large Load Diff

@ -4,8 +4,8 @@
# libiconv
PKG := libiconv
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.13.1
$(PKG)_CHECKSUM := 5b0524131cf0d7abd50734077f13aaa5508f6bbe
$(PKG)_VERSION := 1.14
$(PKG)_CHECKSUM := be7d67e50d72ff067b2c0291311bc283add36965
$(PKG)_SUBDIR := libiconv-$($(PKG)_VERSION)
$(PKG)_FILE := libiconv-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://www.gnu.org/software/libiconv/

@ -0,0 +1,172 @@
This file is part of mingw-cross-env.
See doc/index.html for further information.
Contains ad hoc patches for cross building.
From 7e5a98fd8854295cfde1987cb7d077c5876111b2 Mon Sep 17 00:00:00 2001
From: mingw-cross-env
Date: Thu, 23 Jun 2011 15:45:49 +1000
Subject: [PATCH 1/3] The wrong source files are specified in the makefile.
There is one wrapper source file which includes all and
implements additional functions.
diff --git a/src/Makefile.in b/src/Makefile.in
index 091c6af..e3b7f81 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -20,7 +20,7 @@ install: lib
cp ../include/libirc_events.h @prefix@/include/libirc_events.h
cp libirc.a @prefix@/include/lib/libirc.a
-$(OBJS): utils.c dcc.c errors.c portable.c sockets.c colors.c
+$(OBJS): libircclient.c
libircclient.a: $(OBJS)
$(AR) libircclient.a $(OBJS)
--
1.7.3.4
From e7a3c62440a8c89c48914d8d45bb2e3d14b9bbd8 Mon Sep 17 00:00:00 2001
From: mingw-cross-env
Date: Thu, 23 Jun 2011 15:47:52 +1000
Subject: [PATCH 2/3] IPv6 support is broken and is forced to be disabled.
This place is sufficient - IPv6 initialisation will now cause an error.
diff --git a/src/libircclient.c b/src/libircclient.c
index 5d266c0..1ec11c1 100644
--- a/src/libircclient.c
+++ b/src/libircclient.c
@@ -194,7 +194,7 @@ int irc_connect6 (irc_session_t * session,
const char * username,
const char * realname)
{
-#if defined (ENABLE_IPV6)
+#if 0
struct sockaddr_in6 saddr;
struct addrinfo ainfo, *res = NULL;
char portStr[32];
--
1.7.3.4
From 78326f1af372da340197c15897b54fdd45652bf3 Mon Sep 17 00:00:00 2001
From: mingw-cross-env
Date: Thu, 23 Jun 2011 15:48:33 +1000
Subject: [PATCH 3/3] Use the proper WIN32 define.
diff --git a/include/libircclient.h b/include/libircclient.h
index c78f3b1..23d1a51 100644
--- a/include/libircclient.h
+++ b/include/libircclient.h
@@ -43,7 +43,7 @@
#ifndef INCLUDE_LIBIRC_H
#define INCLUDE_LIBIRC_H
-#if !defined (WIN32)
+#if !defined (_WIN32)
#include <sys/select.h> /* fd_set */
#else
#include <winsock2.h>
diff --git a/src/portable.c b/src/portable.c
index 8071c13..ab8a57b 100644
--- a/src/portable.c
+++ b/src/portable.c
@@ -13,7 +13,7 @@
*/
-#if !defined (WIN32)
+#if !defined (_WIN32)
#include "config.h"
#include <stdio.h>
#include <stdarg.h>
@@ -65,7 +65,7 @@
static inline int libirc_mutex_init (port_mutex_t * mutex)
{
-#if defined (WIN32)
+#if defined (_WIN32)
InitializeCriticalSection (mutex);
return 0;
#elif defined (PTHREAD_MUTEX_RECURSIVE)
@@ -78,13 +78,13 @@ static inline int libirc_mutex_init (port_mutex_t * mutex)
return pthread_mutex_init (mutex, 0);
-#endif /* defined (WIN32) */
+#endif /* defined (_WIN32) */
}
static inline void libirc_mutex_destroy (port_mutex_t * mutex)
{
-#if defined (WIN32)
+#if defined (_WIN32)
DeleteCriticalSection (mutex);
#else
pthread_mutex_destroy (mutex);
@@ -94,7 +94,7 @@ static inline void libirc_mutex_destroy (port_mutex_t * mutex)
static inline void libirc_mutex_lock (port_mutex_t * mutex)
{
-#if defined (WIN32)
+#if defined (_WIN32)
EnterCriticalSection (mutex);
#else
pthread_mutex_lock (mutex);
@@ -104,7 +104,7 @@ static inline void libirc_mutex_lock (port_mutex_t * mutex)
static inline void libirc_mutex_unlock (port_mutex_t * mutex)
{
-#if defined (WIN32)
+#if defined (_WIN32)
LeaveCriticalSection (mutex);
#else
pthread_mutex_unlock (mutex);
diff --git a/src/sockets.c b/src/sockets.c
index c2b33f1..e73f62c 100644
--- a/src/sockets.c
+++ b/src/sockets.c
@@ -15,7 +15,7 @@
/*
* The sockets interface was moved out to simplify going OpenSSL integration.
*/
-#if !defined (WIN32)
+#if !defined (_WIN32)
#include <sys/socket.h>
#include <netdb.h>
#include <arpa/inet.h>
@@ -47,7 +47,7 @@
static int socket_error()
{
-#if !defined (WIN32)
+#if !defined (_WIN32)
return errno;
#else
return WSAGetLastError();
@@ -64,7 +64,7 @@ static int socket_create (int domain, int type, socket_t * sock)
static int socket_make_nonblocking (socket_t * sock)
{
-#if !defined (WIN32)
+#if !defined (_WIN32)
return fcntl (*sock, F_SETFL, fcntl (*sock, F_GETFL,0 ) | O_NONBLOCK) != 0;
#else
unsigned long mode = 0;
@@ -75,7 +75,7 @@ static int socket_make_nonblocking (socket_t * sock)
static int socket_close (socket_t * sock)
{
-#if !defined (WIN32)
+#if !defined (_WIN32)
close (*sock);
#else
closesocket (*sock);
--
1.7.3.4

@ -0,0 +1,16 @@
/* This file is part of mingw-cross-env. */
/* See doc/index.html for further information. */
#include <libircclient/libircclient.h>
int main(int argc, char *argv[])
{
(void)argc;
(void)argv;
irc_callbacks_t callbacks;
memset(&callbacks, 0, sizeof(callbacks));
irc_create_session(&callbacks);
return 0;
}

@ -0,0 +1,43 @@
# This file is part of mingw-cross-env.
# See doc/index.html for further information.
# libircclient
# Note that IPv6 support is partly broken and therefore disabled.
PKG := libircclient
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.3
$(PKG)_CHECKSUM := 19b01d0227e717b58630037131798ee34fb0b414
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://sourceforge.net/projects/$(PKG)/
$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'http://sourceforge.net/projects/libircclient/files/libircclient/' | \
$(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
--prefix='$(PREFIX)/$(TARGET)' \
--host='$(TARGET)' \
--disable-debug \
--enable-threads \
--disable-ipv6
$(MAKE) -C '$(1)'/src -j '$(JOBS)'
$(INSTALL) -d '$(PREFIX)/$(TARGET)/lib'
$(INSTALL) -m644 '$(1)/src/libircclient.a' '$(PREFIX)/$(TARGET)/lib/'
$(INSTALL) -d '$(PREFIX)/$(TARGET)/include/libircclient'
$(INSTALL) -m644 '$(1)/include/libircclient.h' '$(PREFIX)/$(TARGET)/include/libircclient'
$(INSTALL) -m644 '$(1)/include/libirc_errors.h' '$(PREFIX)/$(TARGET)/include/libircclient'
$(INSTALL) -m644 '$(1)/include/libirc_events.h' '$(PREFIX)/$(TARGET)/include/libircclient'
$(INSTALL) -m644 '$(1)/include/libirc_rfcnumeric.h' '$(PREFIX)/$(TARGET)/include/libircclient'
$(INSTALL) -m644 '$(1)/include/libirc_options.h' '$(PREFIX)/$(TARGET)/include/libircclient'
'$(TARGET)-g++' \
-W -Wall -Werror -ansi -pedantic \
'$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-libircclient.exe' \
-lircclient -lws2_32
endef

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -29,6 +29,7 @@ define $(PKG)_BUILD
./configure \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--libdir='$(PREFIX)/$(TARGET)/lib' \
--disable-esd
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=

@ -4,8 +4,8 @@
# Libntlm
PKG := libntlm
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.2
$(PKG)_CHECKSUM := 27538a3375690a37574fa991fbd327d150d8b505
$(PKG)_VERSION := 1.3
$(PKG)_CHECKSUM := 5dd798d5fb9a75656225052aa88ceb9befbbd4a0
$(PKG)_SUBDIR := libntlm-$($(PKG)_VERSION)
$(PKG)_FILE := libntlm-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://www.nongnu.org/libntlm/

@ -4,8 +4,8 @@
# libpng
PKG := libpng
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.5.2
$(PKG)_CHECKSUM := 50243a46c4745b39e7fcda7a39f498f38e084ad6
$(PKG)_VERSION := 1.5.5
$(PKG)_CHECKSUM := 3583126fdd70a94f4c33c1b717f3ff4201d619af
$(PKG)_SUBDIR := libpng-$($(PKG)_VERSION)
$(PKG)_FILE := libpng-$($(PKG)_VERSION).tar.xz
$(PKG)_WEBSITE := http://www.libpng.org/
@ -20,7 +20,7 @@ define $(PKG)_UPDATE
grep -v alpha | \
grep -v beta | \
grep -v rc | \
grep -v '^1\.4\.' | \
grep -v '^1\.[1-4]\.' | \
head -1
endef

@ -4,8 +4,8 @@
# librsvg
PKG := librsvg
$(PKG)_IGNORE :=
$(PKG)_VERSION := 2.34.0
$(PKG)_CHECKSUM := 59e01568a6b201fc45828a76b942f790859cddeb
$(PKG)_VERSION := 2.34.1
$(PKG)_CHECKSUM := a48a8228d5c1aabebbacccdfc33f1830c9027419
$(PKG)_SUBDIR := librsvg-$($(PKG)_VERSION)
$(PKG)_FILE := librsvg-$($(PKG)_VERSION).tar.bz2
$(PKG)_WEBSITE := http://librsvg.sourceforge.net/

@ -4,8 +4,8 @@
# libsamplerate
PKG := libsamplerate
$(PKG)_IGNORE :=
$(PKG)_VERSION := 0.1.7
$(PKG)_CHECKSUM := f3f803ec5feae5a3fdb0fa3937277669e854386e
$(PKG)_VERSION := 0.1.8
$(PKG)_CHECKSUM := e5fe82c4786be2fa33ca6bd4897db4868347fe70
$(PKG)_SUBDIR := libsamplerate-$($(PKG)_VERSION)
$(PKG)_FILE := libsamplerate-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://www.mega-nerd.com/SRC/

@ -4,8 +4,8 @@
# libsigc++
PKG := libsigc++
$(PKG)_IGNORE :=
$(PKG)_VERSION := 2.2.9
$(PKG)_CHECKSUM := ce3bc95c66feda3ed124197d325902f09ea5cdf9
$(PKG)_VERSION := 2.2.10
$(PKG)_CHECKSUM := 240d3e0a02e764a6362f6ce1b32de71401e50844
$(PKG)_SUBDIR := libsigc++-$($(PKG)_VERSION)
$(PKG)_FILE := libsigc++-$($(PKG)_VERSION).tar.bz2
$(PKG)_WEBSITE := http://libsigc.sourceforge.net/

@ -4,8 +4,8 @@
# libsndfile
PKG := libsndfile
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.0.24
$(PKG)_CHECKSUM := ade2dad272b52f61bb58aca3a4004b28549ee0f8
$(PKG)_VERSION := 1.0.25
$(PKG)_CHECKSUM := e95d9fca57f7ddace9f197071cbcfb92fa16748e
$(PKG)_SUBDIR := libsndfile-$($(PKG)_VERSION)
$(PKG)_FILE := libsndfile-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://www.mega-nerd.com/libsndfile/

@ -0,0 +1,19 @@
This file is part of mingw-cross-env.
See doc/index.html for further information.
Contains ad hoc patches for cross building.
diff -Naur libssh2-1.3.0.orig/include/libssh2.h libssh2-1.3.0/include/libssh2.h
--- libssh2-1.3.0.orig/include/libssh2.h 2011-09-06 15:56:34.000000000 -0500
+++ libssh2-1.3.0/include/libssh2.h 2011-10-17 10:10:13.000000000 -0500
@@ -88,8 +88,8 @@
extern "C" {
#endif
#ifdef _WIN32
-# include <BaseTsd.h>
-# include <WinSock2.h>
+# include <basetsd.h>
+# include <winsock2.h>
#endif
#include <stddef.h>

@ -0,0 +1,14 @@
/* This file is part of mingw-cross-env. */
/* See doc/index.html for further information. */
#include <stdio.h>
#include <libssh2.h>
int main(int argc, char *argv[])
{
(void)argc;
(void)argv;
printf("libssh2 version: %s", libssh2_version(0) );
return 0;
}

@ -0,0 +1,36 @@
# This file is part of mingw-cross-env.
# See doc/index.html for further information.
# libssh2
PKG := libssh2
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.3.0
$(PKG)_CHECKSUM := d342e06abe38a29b1bbb9c58d50dd093eab0bee9
$(PKG)_SUBDIR := libssh2-$($(PKG)_VERSION)
$(PKG)_FILE := libssh2-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://www.libssh2.org
$(PKG)_URL := http://www.libssh2.org/download/$($(PKG)_FILE)
$(PKG)_DEPS := gcc libgcrypt zlib
define $(PKG)_UPDATE
wget -q -O- 'http://www.libssh2.org/download/?C=M;O=D' | \
grep 'libssh2-' | \
$(SED) -n 's,.*libssh2-\([0-9][^>]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--without-openssl \
--with-libgcrypt \
PKG_CONFIG='$(TARGET)-pkg-config'
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= html_DATA=
'$(TARGET)-gcc' \
-W -Wall -Werror -ansi -pedantic \
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-libssh2.exe' \
-lssh2
endef

@ -4,8 +4,8 @@
# GNU Libtool
PKG := libtool
$(PKG)_IGNORE :=
$(PKG)_VERSION := 2.4
$(PKG)_CHECKSUM := 149e9d7a993b643d13149a94d07bbca1085e601c
$(PKG)_VERSION := 2.4.2
$(PKG)_CHECKSUM := 22b71a8b5ce3ad86e1094e7285981cae10e6ff88
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://www.gnu.org/software/$(PKG)/

@ -4,8 +4,8 @@
# LibUsb
PKG := libusb
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.2.4.0
$(PKG)_CHECKSUM := 9a0959a9a4fc537553786dd38207663e974ac6f1
$(PKG)_VERSION := 1.2.5.0
$(PKG)_CHECKSUM := a1b1a23f4f1d7dd42e2a861e69d32cdbcea7b879
$(PKG)_SUBDIR := $(PKG)-win32-src-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-win32-src-$($(PKG)_VERSION).zip
$(PKG)_WEBSITE := http://libusb-win32.sourceforge.net/
@ -33,7 +33,7 @@ define $(PKG)_BUILD
--output-lib libusb.a
$(INSTALL) -d '$(PREFIX)/$(TARGET)/include'
$(INSTALL) -m644 '$(1)/src/usb.h' '$(PREFIX)/$(TARGET)/include/'
$(INSTALL) -m644 '$(1)/src/lusb0_usb.h' '$(PREFIX)/$(TARGET)/include/'
$(INSTALL) -d '$(PREFIX)/$(TARGET)/lib'
$(INSTALL) -m644 '$(1)/libusb.a' '$(PREFIX)/$(TARGET)/lib/'
$(INSTALL) -m644 '$(1)/libusbd.a' '$(PREFIX)/$(TARGET)/lib/'

@ -4,8 +4,8 @@
# vpx
PKG := libvpx
$(PKG)_IGNORE :=
$(PKG)_VERSION := 0.9.6
$(PKG)_CHECKSUM := a3522bd2b73d52381ba767ded1cbf4760e9cc6f8
$(PKG)_VERSION := 0.9.7-p1
$(PKG)_CHECKSUM := dacfefaf3363f781de43858f09cdd0b0d469e6fc
$(PKG)_SUBDIR := $(PKG)-v$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-v$($(PKG)_VERSION).tar.bz2
$(PKG)_WEBSITE := http://code.google.com/p/webm/

@ -0,0 +1,29 @@
# This file is part of mingw-cross-env.
# See doc/index.html for further information.
# lzo
PKG := lzo
$(PKG)_IGNORE :=
$(PKG)_VERSION := 2.06
$(PKG)_CHECKSUM := a11768b8a168ec607750842bbef406f11547b904
$(PKG)_SUBDIR := lzo-$($(PKG)_VERSION)
$(PKG)_FILE := lzo-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://www.oberhumer.com/opensource/lzo/
$(PKG)_URL := http://www.oberhumer.com/opensource/lzo/download/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'http://www.oberhumer.com/opensource/lzo/download/' | \
grep 'lzo-' | \
grep -v 'minilzo-' | \
$(SED) -n 's,.*lzo-\([0-9][^>]*\)\.tar.*,\1,p' | \
tail -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)'
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
endef

@ -1,19 +0,0 @@
This file is part of mingw-cross-env.
See doc/index.html for further information.
This patch has been taken from:
http://sourceforge.net/tracker/?func=detail&atid=302435&aid=3011968&group_id=2435
http://gcc.gnu.org/ml/gcc-patches/2010-06/msg00387.html
diff -urN a/include/float.h b/include/float.h
--- a/include/float.h 2010-03-07 04:31:41.000000000 +0100
+++ b/include/float.h 2010-06-05 12:29:08.899723741 +0200
@@ -16,8 +16,6 @@
*
*/
-#include_next<float.h>
-
#ifndef _MINGW_FLOAT_H_
#define _MINGW_FLOAT_H_

@ -4,8 +4,8 @@
# MinGW Runtime
PKG := mingwrt
$(PKG)_IGNORE :=
$(PKG)_VERSION := 3.18
$(PKG)_CHECKSUM := 0c562f3b6a89f376b9edba48ccd7388c535f8c8d
$(PKG)_VERSION := 3.20
$(PKG)_CHECKSUM := 7c63f3695968054b7236282f35562bb3a2c388d4
$(PKG)_SUBDIR := .
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION)-mingw32-dev.tar.gz
$(PKG)_WEBSITE := http://www.mingw.org/

@ -0,0 +1,34 @@
# This file is part of mingw-cross-env.
# See doc/index.html for further information.
# mpfr
PKG := mpfr
$(PKG)_IGNORE :=
$(PKG)_VERSION := 3.1.0
$(PKG)_CHECKSUM := 9ba6dfe62dad298f0570daf182db31660f7f016c
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2
$(PKG)_WEBSITE := http://www.mpfr.org/
$(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/$(PKG)/$($(PKG)_FILE)
$(PKG)_URL_2 := http://www.mpfr.org/mpfr-$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := gcc gmp
define $(PKG)_UPDATE
wget -q -O- 'http://www.mpfr.org/mpfr-current/#download' | \
grep 'mpfr-' | \
$(SED) -n 's,.*mpfr-\([0-9][^>]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--enable-static \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--enable-threads=win32 \
--with-gmp-include='$(PREFIX)/$(TARGET)/include/'
--with-gmp-lib='$(PREFIX)/$(TARGET)/lib/'
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j '$(JOBS)' install
endef

@ -4,8 +4,8 @@
# OGG
PKG := ogg
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.2.2
$(PKG)_CHECKSUM := deeb1959f84de9277e74bca17ec66fa20ced9f08
$(PKG)_VERSION := 1.3.0
$(PKG)_CHECKSUM := a900af21b6d7db1c7aa74eb0c39589ed9db991b8
$(PKG)_SUBDIR := libogg-$($(PKG)_VERSION)
$(PKG)_FILE := libogg-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://www.xiph.org/ogg/

@ -0,0 +1,46 @@
This file is part of mingw-cross-env.
See doc/index.html for further information.
Contains ad hoc patches for cross building.
From 71c4f0a34399fd74d4e39f9985a4c2c56f8b9a43 Mon Sep 17 00:00:00 2001
From: mingw-cross-env
Date: Sat, 22 Oct 2011 01:29:03 +0200
Subject: [PATCH] configure for mingw-cross-env
diff --git a/example/example.pro b/example/example.pro
index 8891a28..02c1fe0 100644
--- a/example/example.pro
+++ b/example/example.pro
@@ -1,10 +1,11 @@
TEMPLATE = app
TARGET = opencsgexample
-CONFIG += opengl warn_on release
+CONFIG += opengl warn_on release link_pkgconfig
INCLUDEPATH += ../glew/include ../include
-LIBS += -L../lib -lopencsg -lglut -L../glew/lib -lGLEW
+LIBS += -L../lib -lopencsg
+PKGCONFIG += glew glut
HEADERS = displaylistPrimitive.h
SOURCES = displaylistPrimitive.cpp main.cpp
diff --git a/src/src.pro b/src/src.pro
index db5e1fb..4c664ab 100644
--- a/src/src.pro
+++ b/src/src.pro
@@ -3,7 +3,8 @@ TARGET = opencsg
VERSION = 1.3.1
DESTDIR = ../lib
-CONFIG += opengl warn_on release
+CONFIG += opengl warn_on release staticlib link_pkgconfig
+PKGCONFIG += glew glut
INCLUDEPATH += ../include ../glew/include ../
HEADERS = ../include/opencsg.h \
--
1.7.7

@ -0,0 +1,31 @@
# This file is part of mingw-cross-env.
# See doc/index.html for further information.
# opencsg
PKG := opencsg
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.3.1
$(PKG)_CHECKSUM := d94c22d4e824c6b5e69a97a726b514ecaf9e4596
$(PKG)_SUBDIR := OpenCSG-$($(PKG)_VERSION)
$(PKG)_FILE := OpenCSG-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://www.opencsg.org/
$(PKG)_URL := http://www.opencsg.org/$($(PKG)_FILE)
$(PKG)_DEPS := gcc freeglut glew qt
define $(PKG)_UPDATE
wget -q -O- 'http://www.opencsg.org/#download' | \
grep 'OpenCSG-' | \
$(SED) -n 's,.*OpenCSG-\([0-9][^>]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)/src' && '$(TARGET)-qmake' src.pro
$(MAKE) -C '$(1)/src' -j '$(JOBS)'
$(INSTALL) -m644 '$(1)/include/opencsg.h' '$(PREFIX)/$(TARGET)/include/'
$(INSTALL) -m644 '$(1)/lib/libopencsg.a' '$(PREFIX)/$(TARGET)/lib/'
cd '$(1)/example' && '$(TARGET)-qmake' example.pro
$(MAKE) -C '$(1)/example' -j '$(JOBS)'
$(INSTALL) -m755 '$(1)/example/release/opencsgexample.exe' '$(PREFIX)/$(TARGET)/bin/test-opencsg.exe'
endef

File diff suppressed because it is too large Load Diff

@ -0,0 +1,25 @@
This file is part of mingw-cross-env.
See doc/index.html for further information.
diff -urN a/IlmImf/ImfPxr24Compressor.cpp b/IlmImf/ImfPxr24Compressor.cpp
--- a/IlmImf/ImfPxr24Compressor.cpp 2010-07-17 01:11:52.000000000 +0200
+++ b/IlmImf/ImfPxr24Compressor.cpp 2011-09-21 23:41:28.130452657 +0200
@@ -62,7 +62,6 @@
// string of bytes is compressed with zlib.
//
//-----------------------------------------------------------------------------
-#define ZLIB_WINAPI
#include <ImfPxr24Compressor.h>
#include <ImfHeader.h>
diff -urN a/IlmImf/ImfZipCompressor.cpp b/IlmImf/ImfZipCompressor.cpp
--- a/IlmImf/ImfZipCompressor.cpp 2010-07-17 01:11:52.000000000 +0200
+++ b/IlmImf/ImfZipCompressor.cpp 2011-09-21 23:42:01.154288691 +0200
@@ -39,7 +39,6 @@
// class ZipCompressor
//
//-----------------------------------------------------------------------------
-#define ZLIB_WINAPI
#include <ImfZipCompressor.h>
#include <ImfCheckedArithmetic.h>

@ -1,14 +0,0 @@
This file is part of mingw-cross-env.
See doc/index.html for further information.
--- OpenSceneGraph-2.8.2.orig/src/osgPlugins/exr/ReaderWriterEXR.cpp 2008-11-27 10:36:18.000000000 +0100
+++ OpenSceneGraph-2.8.2/src/osgPlugins/exr/ReaderWriterEXR.cpp 2010-01-26 21:36:31.000000000 +0100
@@ -4,7 +4,7 @@
#include <osg/Image>
#include <osg/GL>
-#ifdef _WIN32
+#if defined _WIN32 && !defined OSG_LIBRARY_STATIC
//Make the half format work against openEXR libs
#define OPENEXR_DLL
#endif

@ -1,18 +0,0 @@
This file is part of mingw-cross-env.
See doc/index.html for further information.
diff -urN a/src/osgPlugins/xine/ReaderWriterXine.cpp b/src/osgPlugins/xine/ReaderWriterXine.cpp
--- a/src/osgPlugins/xine/ReaderWriterXine.cpp 2010-03-13 11:38:10.000000000 +0100
+++ b/src/osgPlugins/xine/ReaderWriterXine.cpp 2010-04-28 22:54:29.203481468 +0200
@@ -326,9 +326,8 @@
const char* user_home = xine_get_homedir();
if(user_home)
{
- char* cfgfile = NULL;
- int result = asprintf(&(cfgfile), "%s/.xine/config", user_home);
- if (result>0) xine_config_load(_xine, cfgfile);
+ std::string configFile(std::string(user_home)+"/.xine/config");
+ xine_config_load(_xine, configFile.c_str());
}
xine_init(_xine);

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save