[gf2-migrate @ 86]
fix win32 compilation with gaim trunk
--- a/Makefile.mingw Thu Sep 07 03:16:31 2006 -0400
+++ b/Makefile.mingw Mon Sep 18 00:49:27 2006 -0400
@@ -13,13 +13,16 @@
-MAKENSIS := makensis.exe
+include $(GAIM_TOP)/libgaim/win32/global.mak GF_VERSION := $(shell cat ./VERSION)
-GAIM_VERSION := $(shell cat ../../VERSION)
+.PHONY: all install installer clean cp gf_config.h.mingw gf_config.h
--- a/guifications-installer.nsi Thu Sep 07 03:16:31 2006 -0400
+++ b/guifications-installer.nsi Mon Sep 18 00:49:27 2006 -0400
@@ -37,7 +37,7 @@
;-------------------------------
; Gaim Plugin installer helper stuff
- !addincludedir "../../src/win32/nsis"
+ !addincludedir "../../win32/nsis" !include "gaim-plugin.nsh"
;--------------------------------
--- a/pixmaps/Makefile.mingw Thu Sep 07 03:16:31 2006 -0400
+++ b/pixmaps/Makefile.mingw Mon Sep 18 00:49:27 2006 -0400
@@ -3,9 +3,15 @@
# Description: Makefile for guifications pixmaps
-GAIM_DATADIR = ../../../win32-install-dir
+include $(GAIM_TOP)/libgaim/win32/global.mak +GAIM_DATADIR = $(GAIM_INSTALL_DIR) if test '$(guificationsconfpix_DATA)'; then \
mkdir -p $(guificationsconfpixdir); \
--- a/po/Makefile.mingw Thu Sep 07 03:16:31 2006 -0400
+++ b/po/Makefile.mingw Mon Sep 18 00:49:27 2006 -0400
@@ -1,31 +1,16 @@
# Description: Makefile to generate mo files
+include $(GAIM_TOP)/libgaim/win32/global.mak
-GAIM_INSTALL_DIR = $(GAIM_TOP)/win32-install-dir
-LOCALEDIR = $(GAIM_INSTALL_DIR)/locale
-GTK_BIN = $(GAIM_TOP)/../win32-dev/gtk_2_0/bin
-GMSGFMT := $(GTK_BIN)/msgfmt
@@ -39,29 +24,24 @@
rm -f $@ && $(GMSGFMT) --statistics -o $@ $<
+.PHONY: all install clean
+ mkdir -p $(GAIM_INSTALL_PO_DIR) @catalogs='$(CATALOGS)'; \
for cat in $$catalogs; do \
lang=`echo $$cat | sed 's/\.gmo$$//'`; \
- dir=$(LOCALEDIR)/$$lang/LC_MESSAGES; \
+ dir=$(GAIM_INSTALL_PO_DIR)/$$lang/LC_MESSAGES; \ - if test -r $$cat; then \
- cp $$cat $$dir/$(PACKAGE).mo; \
- echo "installing $$cat as $$dir/$(PACKAGE).mo"; \
- cp $(srcdir)/$$cat $$dir/$(PACKAGE).mo; \
- echo "installing $(srcdir)/$$cat as" \
- "$$dir/$(PACKAGE).mo"; \
+ cp $$cat $$dir/$(PACKAGE).mo; \ + echo "installing $$cat as $$dir/$(PACKAGE).mo"; \ --- a/src/Makefile.mingw Thu Sep 07 03:16:31 2006 -0400
+++ b/src/Makefile.mingw Mon Sep 18 00:49:27 2006 -0400
@@ -9,10 +9,8 @@
-GTK_TOP := ../../../../win32-dev/gtk_2_0
-GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir
-DLL_INSTALL_DIR := $(GAIM_INSTALL_DIR)/plugins
+include $(GAIM_TOP)/libgaim/win32/global.mak GF_VERSION := $(shell cat ${GF_TOP}/VERSION)
@@ -26,23 +24,22 @@
-DEFINES = -DGF_VERSION=\"$(GF_VERSION)\"
+DEFINES = -DGF_VERSION=\"$(GF_VERSION)\" -DGETTEXT_PACKAGE=\"$(GF)\" -DHAVE_CONFIG_H
-include $(GAIM_TOP)/src/win32/global.mak
+ -I$(GAIM_LIB_TOP)/win32 \ + -I$(GAIM_GTK_TOP)/win32 \ -I$(GTK_TOP)/include/gtk-2.0 \
-I$(GTK_TOP)/include/glib-2.0 \
@@ -51,14 +48,13 @@
-I$(GTK_TOP)/include/freetype2 \
-I$(GTK_TOP)/lib/glib-2.0/include \
-I$(GTK_TOP)/lib/gtk-2.0/include \
- -I$(GAIM_TOP)/src/win32 \
@@ -104,19 +100,14 @@
+include $(GAIM_COMMON_RULES)
- $(CC) $(CFLAGS) $(INCLUDE_PATHS) $(DEFINES) -c $< -o $@
@@ -126,21 +117,14 @@
- cp $(GF).dll $(DLL_INSTALL_DIR)
-$(GAIM_TOP)/src/gaim.lib:
- $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib
+install: all $(GAIM_INSTALL_PLUGINS_DIR) + cp $(GF).dll $(GAIM_INSTALL_PLUGINS_DIR) -$(GF).dll: $(GF_OBJ) $(GAIM_TOP)/src/gaim.lib
+$(GF).dll: $(GAIM_GTKGAIM_DLL).a $(GF_OBJ) $(CC) -shared $(GF_OBJ) $(LIB_PATHS) $(PLUGIN_LIBS) $(DLL_LD_FLAGS) -o $(GF).dll
@@ -149,5 +133,5 @@
--- a/src/gf_action.c Thu Sep 07 03:16:31 2006 -0400
+++ b/src/gf_action.c Mon Sep 18 00:49:27 2006 -0400
@@ -26,7 +26,7 @@
--- a/src/gf_preferences.c Thu Sep 07 03:16:31 2006 -0400
+++ b/src/gf_preferences.c Mon Sep 18 00:49:27 2006 -0400
@@ -589,7 +589,7 @@
command = g_strdup_printf("tar > /dev/null xzf %s -C %s", escaped, destdir);
- if(!wgaim_gz_untar(path, destdir)) {
+ if(!gtkwgaim_gz_untar(path, destdir)) { --- a/themes/Makefile.mingw Thu Sep 07 03:16:31 2006 -0400
+++ b/themes/Makefile.mingw Mon Sep 18 00:49:27 2006 -0400
@@ -8,7 +8,9 @@
PENGUINS_THEME = ./Penguins
$(MAKE) -C $(DEFAULT_THEME) -f Makefile.mingw install
$(MAKE) -C $(MINI_THEME) -f Makefile.mingw install
$(MAKE) -C $(PENGUINS_THEME) -f Makefile.mingw install
--- a/themes/Penguins/Makefile.mingw Thu Sep 07 03:16:31 2006 -0400
+++ b/themes/Penguins/Makefile.mingw Mon Sep 18 00:49:27 2006 -0400
@@ -3,9 +3,15 @@
# Description: Makefile for guifications penguin theme
-GAIM_DATADIR = ../../../../win32-install-dir
+GAIM_TOP = ../../../../.. +include $(GAIM_TOP)/libgaim/win32/global.mak +GAIM_DATADIR = $(GAIM_INSTALL_DIR) if test '$(guificationspenguinstheme_DATA)'; then \
mkdir -p $(guificationspenguinsthemedir); \
--- a/themes/default/Makefile.mingw Thu Sep 07 03:16:31 2006 -0400
+++ b/themes/default/Makefile.mingw Mon Sep 18 00:49:27 2006 -0400
@@ -3,9 +3,16 @@
# Description: Makefile for guifications default theme
-GAIM_DATADIR = ../../../../win32-install-dir
+GAIM_TOP = ../../../../.. +include $(GAIM_TOP)/libgaim/win32/global.mak +GAIM_DATADIR = $(GAIM_INSTALL_DIR) if test '$(guificationsdefaulttheme_DATA)'; then \
mkdir -p $(guificationsdefaultthemedir); \
--- a/themes/funky/Makefile.mingw Thu Sep 07 03:16:31 2006 -0400
+++ b/themes/funky/Makefile.mingw Mon Sep 18 00:49:27 2006 -0400
@@ -3,11 +3,17 @@
# Description: Makefile for guifications test theme
-GAIM_DATADIR = ../../../../win32-install-dir
+GAIM_TOP = ../../../../.. +include $(GAIM_TOP)/libgaim/win32/global.mak +GAIM_DATADIR = $(GAIM_INSTALL_DIR) if test '$(guificationsfunkytheme_DATA)'; then \
mkdir -p $(guificationsfunkythemedir); \
cp $(guificationsfunkytheme_DATA) $(guificationsfunkythemedir); \
--- a/themes/item_test/Makefile.mingw Thu Sep 07 03:16:31 2006 -0400
+++ b/themes/item_test/Makefile.mingw Mon Sep 18 00:49:27 2006 -0400
@@ -3,9 +3,15 @@
# Description: Makefile for guifications test theme
-GAIM_DATADIR = ../../../../win32-install-dir
+GAIM_TOP = ../../../../.. +include $(GAIM_TOP)/libgaim/win32/global.mak +GAIM_DATADIR = $(GAIM_INSTALL_DIR) if test '$(guificationsitemtesttheme_DATA)'; then \
mkdir -p $(guificationsitemtestthemedir); \
--- a/themes/mini/Makefile.mingw Thu Sep 07 03:16:31 2006 -0400
+++ b/themes/mini/Makefile.mingw Mon Sep 18 00:49:27 2006 -0400
@@ -3,9 +3,15 @@
# Description: Makefile for guifications default theme
-GAIM_DATADIR = ../../../../win32-install-dir
+GAIM_TOP = ../../../../.. +include $(GAIM_TOP)/libgaim/win32/global.mak +GAIM_DATADIR = $(GAIM_INSTALL_DIR) if test '$(guificationsminitheme_DATA)'; then \
mkdir -p $(guificationsminithemedir); \