[pkg-otr-team] [irssi-plugin-otr] 110/167: Clean up the mingw build instructions
Holger Levsen
holger at moszumanska.debian.org
Mon Mar 3 21:55:37 UTC 2014
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to tag 4.0.0
in repository irssi-plugin-otr.
commit eb7328c835a9378cfea1d94fe3e069ab0a3dd7ae
Author: Ian Goldberg <iang at cs.uwaterloo.ca>
Date: Thu Jun 21 10:54:32 2012 -0400
Clean up the mingw build instructions
---
INSTALL | 2 +-
Makefile.mingw.notes => INSTALL.mingw | 18 ++++++++++++++----
Makefile.mingw | 22 ++++++++++++----------
3 files changed, 27 insertions(+), 15 deletions(-)
diff --git a/INSTALL b/INSTALL
index ff3fb10..eb507a7 100644
--- a/INSTALL
+++ b/INSTALL
@@ -51,7 +51,7 @@ Use the provided Makefile.mingw:
make -f Makefile.mingw
-See Makefile.mingw.notes for a few hints.
+See INSTALL.mingw for a few hints.
INSTALLATION
diff --git a/Makefile.mingw.notes b/INSTALL.mingw
similarity index 72%
rename from Makefile.mingw.notes
rename to INSTALL.mingw
index 62b28f4..b3001db 100644
--- a/Makefile.mingw.notes
+++ b/INSTALL.mingw
@@ -4,7 +4,11 @@ a Linux system with mingw32. These have been tested on Ubuntu 11.04.
I am listing packages and their build instructions in the order they should be
built. Good luck!
+mingw:
+ apt-get install mingw32
+
libgpg-error-1.0:
+ wget ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.0.tar.gz
(before configure)
HOST_CC=gcc
DLLTOOL=i586-mingw32msvc-dlltool
@@ -14,10 +18,15 @@ libgpg-error-1.0:
make
sudo make install
-gcrypt-1.2.1:
- w32root=i586-mingw32msvc ./autogen.sh --build-w32
+libgcrypt-1.2.1:
+ wget ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.2.1.tar.gz
+ wget http://www.cypherpunks.ca/otr/rndw32.diff
+ w32root=/usr/i586-mingw32msvc ./autogen.sh --build-w32
Then append #undef HAVE_GETTIMEOFDAY to libgcrypt config.h
Apply windows slow random fix (patch on otr website, listed as "Note that if you're compiling from source on win32...")
+ cd cipher
+ patch -p0 < ../../rndw32.diff
+ cd ..
make
sudo make install
@@ -27,7 +36,7 @@ libotr:
sudo make install
pidgin-otr:
- You will need: Pidgin source code distributable, Pidgin Win32 distributable, and an "all-in-one bundle" of the GTK+ stack 2.14.7 or greater (e.g., gtk+-bundle_2.24.10-20120208_win32.zip).
+ You will need: Pidgin source code distributable, Pidgin Win32 distributable, and an "all-in-one bundle" of the GTK+ stack 2.14.7 or greater (e.g., gtk+-bundle_2.24.10-20120208_win32.zip from http://www.gtk.org/download/win32.php).
In Makefile.mingw, specify the location of PIDGIN_HEADERS, PURPLE_HEADERS, GTK_WIN32_BUNDLE, and PIDGIN_WIN32_LIBS
Ensure either pkg-config will correctly resolve all the dependencies for glib-2.0 and gtk+-2.0 (there is a README in the GTK+ bundle about this), or uncomment (and perhaps revise) the hardcoded list of includes for GTK_HDRS
make -f Makefile.mingw
@@ -35,6 +44,7 @@ pidgin-otr:
nsis:
sudo apt-get install nsis
Locate the "nsisunz" plugin (a google search for "nsisunz.zip" should be sufficient)
- Extract the DLL to /usr/local/share/nsis/Plugins (yes it's a DLL extension, but it will still work for GNU/Linux nsis)
+ Extract the DLL to /usr/share/nsis/Plugins (yes it's a DLL extension, but it will still work for GNU/Linux nsis)
+ set LIBOTRSRCDIR to the libotr src directory
make -f Makefile.mingw installer <-- This should now build the nsis installer
diff --git a/Makefile.mingw b/Makefile.mingw
index d8d9004..cd2aaf6 100644
--- a/Makefile.mingw
+++ b/Makefile.mingw
@@ -19,16 +19,18 @@ GTK_WIN32_BUNDLE ?= /usr/i586-mingw32msvc/misc/gtk_bundle
# (i.e. pidgin.dll and libpurple.dll)
PIDGIN_WIN32_LIBS ?= /usr/i586-mingw32msvc/misc/pidgin_dlls
-# If you don't have pkg-config, uncomment the -I lines below
-GTK_HDRS ?= `pkg-config --cflags glib-2.0 gtk+-2.0`
-#GTK_HDRS ?= -I$(GTK_WIN32_BUNDLE)/include/gtk-2.0 \
-# -I$(GTK_WIN32_BUNDLE)/include/glib-2.0 \
-# -I$(GTK_WIN32_BUNDLE)/include/cairo \
-# -I$(GTK_WIN32_BUNDLE)/include/pango-1.0 \
-# -I$(GTK_WIN32_BUNDLE)/include/atk-1.0 \
-# -I$(GTK_WIN32_BUNDLE)/include/gdk-pixbuf-2.0 \
-# -I$(GTK_WIN32_BUNDLE)/lib/glib-2.0/include \
-# -I$(GTK_WIN32_BUNDLE)/lib/gtk-2.0/include
+# If you have a pkg-config that finds the win32 versions, you can use it
+# instead of the -I lines below
+#GTK_HDRS ?= `pkg-config --cflags glib-2.0 gtk+-2.0`
+GTK_HDRS ?= -I$(GTK_WIN32_BUNDLE)/include \
+ -I$(GTK_WIN32_BUNDLE)/include/gtk-2.0 \
+ -I$(GTK_WIN32_BUNDLE)/include/glib-2.0 \
+ -I$(GTK_WIN32_BUNDLE)/include/cairo \
+ -I$(GTK_WIN32_BUNDLE)/include/pango-1.0 \
+ -I$(GTK_WIN32_BUNDLE)/include/atk-1.0 \
+ -I$(GTK_WIN32_BUNDLE)/include/gdk-pixbuf-2.0 \
+ -I$(GTK_WIN32_BUNDLE)/lib/glib-2.0/include \
+ -I$(GTK_WIN32_BUNDLE)/lib/gtk-2.0/include
# The location of the libotr include files. Note that if, for example,
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-otr/packages/irssi-plugin-otr.git
More information about the Pkg-otr-team
mailing list