google-code-export / microblog-purple

Automatically exported from code.google.com/p/microblog-purple
GNU General Public License v3.0
2 stars 0 forks source link

mbpurple does not compile for finch #233

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
As read in Comment 2 of Issue #232 by maken...@gmail.com
Thanks, and in order to install I had to make the following changes:-

--- global.mak  (revision 382)
+++ global.mak  (working copy)
@@ -73,15 +73,20 @@

 IS_PIDGIN = $(shell pkg-config --atleast-version=2.0 pidgin && echo 1 || echo 0)
 IS_CARRIER = $(shell pkg-config --atleast-version=2.0 carrier && echo 1 || echo 0)
+IS_FINCH = $(shell pkg-config --atleast-version=2.0 finch && echo 1 || echo 0)

 ifeq ($(strip $(IS_PIDGIN)), 1)
-       PIDGIN_NAME := pidgin
-else
+       PIDGIN_NAME := pidgin
+else
 ifeq ($(strip $(IS_CARRIER)), 1)
         PIDGIN_NAME := carrier
+else
+ifeq ($(strip $(IS_FINCH)), 1)
+        PIDGIN_NAME := finch
 endif
 endif

+
 PREFIX := $(shell pkg-config --variable=prefix $(PIDGIN_NAME) 2> /dev/null || echo /usr)
 LIBDIR := $(shell pkg-config --variable=libdir $(PIDGIN_NAME) 2> /dev/null || echo $(PREFIX)/lib)

@@ -90,7 +95,7 @@
 PURPLE_DATAROOT_DIR = $(shell pkg-config --variable=datarootdir purple)
 PURPLE_CFLAGS = $(CFLAGS) -DPURPLE_PLUGINS -DENABLE_NLS -DMBPURPLE_VERSION=\"$(VERSION)$(SUBVERSION)\"
 PURPLE_CFLAGS += $(shell pkg-config --cflags purple)
-PURPLE_CFLAGS += $(shell pkg-config --cflags pidgin)
+PURPLE_CFLAGS += $(shell pkg-config --cflags $(PIDGIN_NAME))
 #PURPLE_CFLAGS += -Wall -pthread -I. -g -O2 -pipe -fPIC -DPIC
 PURPLE_CFLAGS += -Wall -pthread -I. -g -pipe -fPIC -DPIC
 PLUGIN_SUFFIX := .so

... Oops, missing an endif, but you get the gist.

Original issue reported on code.google.com by andresen.nils@gmail.com on 22 Feb 2011 at 5:28

GoogleCodeExporter commented 9 years ago

Original comment by andresen.nils@gmail.com on 22 Feb 2011 at 5:32

GoogleCodeExporter commented 9 years ago
Patch attached.

Original comment by chaz6....@gmail.com on 22 Feb 2011 at 9:13

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by andresen.nils@gmail.com on 26 Feb 2011 at 10:24