grim/guifications2

This was compatibility code for Pidgin 1.x.y; because it was written as a check
for "not 2.0.0" this code would be compiled in for 3.0.0. It looks like the
supporting code elsewhere was removed, causing this to leave an unresolved
symbol in guifications.so, thus causing Pidgin to refuse to load. Now we load
in Pidgin 3.0.0. Whether it works or not, I have no clue.
#
# Makefile.mingw
#
# Description: Makefile for guifications plugin.
#
#
# PATHS
#
GF_TOP := ..
-include $(GF_TOP)/local.mak
PIDGIN_TREE_TOP ?= ../../../..
include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
GF_VERSION := $(shell cat ${GF_TOP}/VERSION)
##
## VARIABLE DEFINITIONS
##
GF = guifications
# Compiler Options
#CFLAGS =
DEFINES = -DGF_VERSION=\"$(GF_VERSION)\" -DGETTEXT_PACKAGE=\"$(GF)\" -DHAVE_CONFIG_H
#LDFLAGS =
#-mwindows
##
## INCLUDE PATHS
##
INCLUDE_PATHS += -I. \
-I$(PIDGIN_TREE_TOP) \
-I$(PURPLE_TOP) \
-I$(PURPLE_TOP)/win32 \
-I$(PIDGIN_TOP) \
-I$(PIDGIN_TOP)/win32 \
-I$(GTK_TOP)/include \
-I$(GTK_TOP)/include/gtk-2.0 \
-I$(GTK_TOP)/include/glib-2.0 \
-I$(GTK_TOP)/include/pango-1.0 \
-I$(GTK_TOP)/include/atk-1.0 \
-I$(GTK_TOP)/include/freetype2 \
-I$(GTK_TOP)/lib/glib-2.0/include \
-I$(GTK_TOP)/lib/gtk-2.0/include \
-I$(PIDGIN_TREE_TOP)
LIB_PATHS = \
-L$(PURPLE_TOP) \
-L$(PIDGIN_TOP) \
-L$(GTK_TOP)/lib
##
## SOURCES, OBJECTS
##
GF_SRC = \
gf_action.c \
gf_blist.c \
gf_display.c \
gf_event.c \
gf_event_info.c \
gf_file.c \
gf_gtk_utils.c \
gf_item.c \
gf_item_icon.c \
gf_item_image.c \
gf_item_offset.c \
gf_item_text.c \
gf_menu.c \
gf_notification.c \
gf_preferences.c \
gf_stock.c \
gf_theme.c \
gf_theme_editor.c \
gf_theme_info.c \
gf_theme_ops.c \
gf_utils.c \
guifications.c
GF_OBJ = $(GF_SRC:%.c=%.o)
##
## LIBRARIES
##
PLUGIN_LIBS = \
-lgtk-win32-2.0 \
-lglib-2.0 \
-lpango-1.0 \
-lpangoft2-1.0 \
-lgdk-win32-2.0 \
-lgdk_pixbuf-2.0 \
-lgobject-2.0 \
-lws2_32 \
-lintl \
-lpurple \
-lpidgin
include $(PIDGIN_COMMON_RULES)
##
## TARGET DEFINITIONS
##
.PHONY: all clean install
all: $(GF).dll
install: all $(PIDGIN_INSTALL_PLUGINS_DIR)
cp $(GF).dll $(PIDGIN_INSTALL_PLUGINS_DIR)
$(GF_OBJ): $(GF_TOP)/gf_config.h $(PURPLE_VERSION_H)
$(GF_TOP)/gf_config.h: $(GF_TOP)/gf_config.h.mingw
$(MAKE) -C $(GF_TOP) -f Makefile.mingw gf_config.h
##
## BUILD DLL
##
$(GF).dll: $(PIDGIN_DLL).a $(GF_OBJ)
$(CC) -shared $(GF_OBJ) $(LIB_PATHS) $(PLUGIN_LIBS) $(DLL_LD_FLAGS) -o $(GF).dll
##
## CLEAN RULES
##
clean:
rm -f *.o
rm -f $(GF).dll
include $(PIDGIN_COMMON_TARGETS)