Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rely on the lib.exe version included with the Windows Server 2003 R2 …

…Platform SDK (5.2.3790.2075.51)

available from http://www.microsoft.com/download/en/details.aspx?id=12675 to build the MSVC compatible
import libraries, as a copy of Visual Studio 6 is ridiculously expensive (if you can still manage to
find one).
  • Loading branch information...
commit 572ccac440136d1f9654e1d1ce38fa4fa1055ef3 1 parent ef41fcd
@dieterv authored
View
2  devel/dist/win32/LATEST
@@ -15,7 +15,7 @@ zlib 1.2.5-2
atk 1.32.0-1
gdk-pixbuf 2.22.1-1
glib 2.28.1-1
-gtk+-2.24.0-1
+gtk+ 2.24.5-2
intltool 0.40.4-1
libcroco 0.6.2-1
libglade 2.6.4-1
View
84 devel/src/dieterv/packaging/gtk+_2.24.5-2_win32.sh
@@ -0,0 +1,84 @@
+# This is a shell script that calls functions and scripts from
+# tml@iki.fi's personal work envíronment. It is not expected to be
+# usable unmodified by others, and is included only for reference.
+
+MOD=gtk+
+VER=2.24.5
+REV=2
+ARCH=win32
+
+THIS=${MOD}_${VER}-${REV}_${ARCH}
+
+RUNZIP=${MOD}_${VER}-${REV}_${ARCH}.zip
+DEVZIP=${MOD}-dev_${VER}-${REV}_${ARCH}.zip
+
+HEX=`echo $THIS | md5sum | cut -d' ' -f1`
+TARGET=/devel/target/$HEX
+
+usedev
+usewinsdk52
+
+(
+
+set -x
+
+DEPS=`latest --arch=${ARCH} zlib gettext-runtime gettext-tools glib pkg-config atk cairo freetype fontconfig pango gdk-pixbuf libpng`
+GETTEXT_RUNTIME=`latest --arch=${ARCH} gettext-runtime`
+
+PKG_CONFIG_PATH=
+for D in $DEPS; do
+ PATH=/devel/dist/${ARCH}/$D/bin:$PATH
+ [ -d /devel/dist/${ARCH}/$D/lib/pkgconfig ] && PKG_CONFIG_PATH=/devel/dist/${ARCH}/$D/lib/pkgconfig:$PKG_CONFIG_PATH
+done
+
+LIBPNG=`latest --arch=${ARCH} libpng`
+ZLIB=`latest --arch=${ARCH} zlib`
+
+# Don't do any relinking and don't use any wrappers in libtool. It
+# just causes trouble, IMHO.
+
+sed -e 's/need_relink=yes/need_relink=no # no way --tml/' \
+ -e 's/wrappers_required=yes/wrappers_required=no # no thanks --tml/' \
+ <ltmain.sh >ltmain.temp && mv ltmain.temp ltmain.sh
+
+lt_cv_deplibs_check_method='pass_all' \
+CC='gcc -mthreads' \
+CPPFLAGS="-I/devel/dist/${ARCH}/${LIBPNG}/include \
+-I/devel/dist/${ARCH}/${ZLIB}/include \
+-I/devel/dist/${ARCH}/${GETTEXT_RUNTIME}/include" \
+LDFLAGS="-L/devel/dist/${ARCH}/${LIBPNG}/lib \
+-L/devel/dist/${ARCH}/${ZLIB}/lib \
+-L/devel/dist/${ARCH}/${GETTEXT_RUNTIME}/lib \
+-Wl,--enable-auto-image-base" \
+LIBS=-lintl \
+CFLAGS=-O2 \
+./configure \
+--with-gdktarget=win32 \
+--with-included-immodules \
+--enable-debug=yes \
+--enable-explicit-deps=no \
+--disable-gtk-doc \
+--disable-static \
+--prefix=$TARGET &&
+
+rm gtk/gtk.def &&
+
+mkdir -p /devel/target/$HEX/lib &&
+
+PATH="/devel/target/$HEX/bin:$PATH" make -j3 install &&
+
+grep -v -E 'Automatically generated|Created by' <$TARGET/etc/gtk-2.0/gtk.immodules >$TARGET/etc/gtk-2.0/gtk.immodules.temp &&
+ mv $TARGET/etc/gtk-2.0/gtk.immodules.temp $TARGET/etc/gtk-2.0/gtk.immodules &&
+
+./gtk-zip.sh &&
+
+# Package also the gtk-update-icon-cache.exe.manifest
+(cd $TARGET && zip /tmp/${MOD}-dev-${VER}.zip bin/gtk-update-icon-cache.exe.manifest) &&
+
+mv /tmp/${MOD}-${VER}.zip /tmp/$RUNZIP &&
+mv /tmp/${MOD}-dev-${VER}.zip /tmp/$DEVZIP
+
+) 2>&1 | tee /devel/src/dieterv/packaging/$THIS.log
+
+(cd /devel && zip /tmp/$DEVZIP src/dieterv/packaging/$THIS.{sh,log}) &&
+manifestify /tmp/$RUNZIP /tmp/$DEVZIP
View
4 etc/profile.d/tml_profile.sh
@@ -128,6 +128,10 @@ function usemsvs9x64() {
export LIB='c:\opt\MSVS9\VC\lib\amd64;c:\Program Files\Microsoft SDKs\Windows\v7.0\Lib\x64'
}
+function usewinsdk52() {
+ prepend_dir_to_path PATH /opt/winsdk52/Bin/win64/x86/AMD64
+}
+
function usepython() {
PATH="/opt/python26:$PATH"
}
View
0  opt/winsdk52/.keep
No changes.
Please sign in to comment.
Something went wrong with that request. Please try again.