Fri, 29 Jul 2005 13:38:00 +0000
[gaim-migrate @ 13271]
Fixed some bugs and made some additions to the XSUBS. Added some of my test scripts which are incomplete, but mostly functional. GaimPluginPrefs and GaimGtkPluginPrefs--using evals to do the Gtk widgets with gtk2-perl--work. Plugin actions can now be added, but only one for now.
| 5205 | 1 | plugindir = $(libdir)/gaim |
| 2 | ||
|
6508
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
3 | perl_dirs = common |
| 5205 | 4 | |
| 11123 | 5 | plugin_LTLIBRARIES = perl.la |
| 5205 | 6 | |
|
10889
64482f2467cb
[gaim-migrate @ 12597]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9790
diff
changeset
|
7 | perl_la_LDFLAGS = -module -avoid-version $(GLIB_LIBS) $(PERL_LIBS) |
| 11123 | 8 | perl_la_LIBADD = $(PERL_LIBS) -L. -lgaimperl |
|
6508
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
9 | perl_la_SOURCES = \ |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
10 | perl.c \ |
|
6520
5386692555c9
[gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents:
6512
diff
changeset
|
11 | perl-common.c \ |
|
5386692555c9
[gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents:
6512
diff
changeset
|
12 | perl-common.h \ |
|
5386692555c9
[gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents:
6512
diff
changeset
|
13 | perl-handlers.c \ |
|
5386692555c9
[gaim-migrate @ 7037]
Christian Hammond <chipx86@chipx86.com>
parents:
6512
diff
changeset
|
14 | perl-handlers.h |
|
6508
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
15 | |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
16 | perl_la_DEPENDENCIES = \ |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
17 | .libs/libperl_orig.a \ |
| 11123 | 18 | .libs/DynaLoader.a \ |
| 19 | libgaimperl.so | |
| 20 | ||
| 21 | libgaimperl.so: | |
| 22 | $(CC) -shared -fPIC -olibgaimperl.so libgaimperl.c | |
|
6508
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
23 | |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
24 | .libs/libperl_orig.a: |
|
9169
f557f4ebae65
[gaim-migrate @ 9954]
Christian Hammond <chipx86@chipx86.com>
parents:
7231
diff
changeset
|
25 | @mkdir -p .libs |
|
6508
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
26 | @rm -f .libs/libperl_orig.a |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
27 | @if [ x$(LIBPERL_A) = x ]; then \ |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
28 | touch .libs/libperl_orig.a; \ |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
29 | else \ |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
30 | $(LN_S) $(LIBPERL_A) .libs/libperl_orig.a; \ |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
31 | fi |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
32 | |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
33 | .libs/DynaLoader.a: |
|
9169
f557f4ebae65
[gaim-migrate @ 9954]
Christian Hammond <chipx86@chipx86.com>
parents:
7231
diff
changeset
|
34 | @mkdir -p .libs |
|
6508
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
35 | @rm -f .libs/DynaLoader.a |
|
6682
e71e0a3285ff
[gaim-migrate @ 7207]
Christian Hammond <chipx86@chipx86.com>
parents:
6678
diff
changeset
|
36 | @if [ x$(DYNALOADER_A) = x ]; then \ |
|
6508
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
37 | touch .libs/DynaLoader.a; \ |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
38 | else \ |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
39 | $(LN_S) $(DYNALOADER_A) .libs/DynaLoader.a; \ |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
40 | fi |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
41 | |
| 11123 | 42 | |
|
6508
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
43 | common_sources = \ |
| 11123 | 44 | common/Account.xs \ |
| 45 | common/AccountOpts.xs \ | |
| 46 | common/BuddyIcon.xs \ | |
| 47 | common/BuddyList.xs \ | |
| 48 | common/Cipher.xs \ | |
| 49 | common/Cmds.xs \ | |
| 50 | common/Connection.xs \ | |
| 51 | common/Conversation.xs \ | |
| 52 | common/FT.xs \ | |
| 53 | common/Gaim.pm \ | |
| 54 | common/Gaim.xs \ | |
| 55 | common/ImgStore.xs \ | |
| 56 | common/Log.xs \ | |
| 57 | common/Makefile.PL.in \ | |
| 58 | common/Network.xs \ | |
| 59 | common/Notify.xs \ | |
| 60 | common/Plugin.xs \ | |
| 61 | common/PluginPref.xs \ | |
| 62 | common/Pounce.xs \ | |
| 63 | common/Prefs.xs \ | |
| 64 | common/Privacy.xs \ | |
| 65 | common/Proxy.xs \ | |
| 66 | common/Prpl.xs \ | |
| 67 | common/Request.xs \ | |
| 68 | common/Roomlist.xs \ | |
| 69 | common/SSLConn.xs \ | |
| 70 | common/SavedStatuses.xs \ | |
| 71 | common/Server.xs \ | |
| 72 | common/Sound.xs \ | |
| 73 | common/Status.xs \ | |
| 74 | common/Stringref.xs \ | |
| 75 | common/Util.xs \ | |
| 76 | common/XMLNode.xs \ | |
| 77 | common/fallback/const-c.inc \ | |
| 78 | common/fallback/const-xs.inc \ | |
| 79 | common/module.h \ | |
| 80 | common/typemap | |
|
6508
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
81 | |
|
6654
a6d76a1885b0
[gaim-migrate @ 7179]
Christian Hammond <chipx86@chipx86.com>
parents:
6644
diff
changeset
|
82 | |
|
6508
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
83 | EXTRA_DIST = \ |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
84 | Makefile.mingw \ |
|
7231
6af2d1e09b34
[gaim-migrate @ 7803]
Herman Bloggs <herman@bluedigits.com>
parents:
6682
diff
changeset
|
85 | common/Makefile.mingw \ |
|
6af2d1e09b34
[gaim-migrate @ 7803]
Herman Bloggs <herman@bluedigits.com>
parents:
6682
diff
changeset
|
86 | $(common_sources) |
|
6508
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
87 | |
|
6587
8ff464fb8b9c
[gaim-migrate @ 7109]
Christian Hammond <chipx86@chipx86.com>
parents:
6537
diff
changeset
|
88 | common/Makefile: common/Makefile.PL |
|
6665
0880a8b93571
[gaim-migrate @ 7190]
Christian Hammond <chipx86@chipx86.com>
parents:
6654
diff
changeset
|
89 | @if test "x${top_srcdir}" != "x${top_builddir}"; then \ |
|
0880a8b93571
[gaim-migrate @ 7190]
Christian Hammond <chipx86@chipx86.com>
parents:
6654
diff
changeset
|
90 | for f in ${common_sources}; do \ |
|
0880a8b93571
[gaim-migrate @ 7190]
Christian Hammond <chipx86@chipx86.com>
parents:
6654
diff
changeset
|
91 | ${LN_S} -f ../${srcdir}/$$f $$f; \ |
|
0880a8b93571
[gaim-migrate @ 7190]
Christian Hammond <chipx86@chipx86.com>
parents:
6654
diff
changeset
|
92 | done; \ |
|
0880a8b93571
[gaim-migrate @ 7190]
Christian Hammond <chipx86@chipx86.com>
parents:
6654
diff
changeset
|
93 | fi |
|
0880a8b93571
[gaim-migrate @ 7190]
Christian Hammond <chipx86@chipx86.com>
parents:
6654
diff
changeset
|
94 | @cd common && $(perlpath) Makefile.PL $(PERL_MM_PARAMS) |
|
6587
8ff464fb8b9c
[gaim-migrate @ 7109]
Christian Hammond <chipx86@chipx86.com>
parents:
6537
diff
changeset
|
95 | |
| 9790 | 96 | common/Makefile.PL: common/Makefile.PL.in $(top_builddir)/config.status |
|
6587
8ff464fb8b9c
[gaim-migrate @ 7109]
Christian Hammond <chipx86@chipx86.com>
parents:
6537
diff
changeset
|
97 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) |
|
8ff464fb8b9c
[gaim-migrate @ 7109]
Christian Hammond <chipx86@chipx86.com>
parents:
6537
diff
changeset
|
98 | |
|
8ff464fb8b9c
[gaim-migrate @ 7109]
Christian Hammond <chipx86@chipx86.com>
parents:
6537
diff
changeset
|
99 | all-local: common/Makefile |
|
6508
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
100 | @for dir in $(perl_dirs); do \ |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
101 | cd $$dir && \ |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
102 | if [ ! -f Makefile ]; then \ |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
103 | $(perlpath) Makefile.PL $(PERL_MM_PARAMS); \ |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
104 | fi && \ |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
105 | ($(MAKE) CC="$(CC)" CCFLAGS="$(PERL_CFLAGS) $(CFLAGS)" $(PERL_EXTRA_OPTS) || \ |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
106 | $(MAKE) CC="$(CC)" CCFLAGS="$(PERL_CFLAGS) $(CFLAGS)" $(PERL_EXTRA_OPTS)) && \ |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
107 | cd ..; \ |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
108 | done |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
109 | |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
110 | install-exec-local: |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
111 | @for dir in $(perl_dirs); do \ |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
112 | cd $$dir; \ |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
113 | $(MAKE) install; \ |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
114 | cd ..; \ |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
115 | done |
| 11123 | 116 | cp libgaimperl.so $(libdir) |
|
6508
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
117 | |
|
6669
ba07cbebb755
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
118 | # Evil Hack (TM) |
|
ba07cbebb755
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
119 | uninstall-local: |
|
ba07cbebb755
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
120 | @for dir in $(perl_dirs); do \ |
|
ba07cbebb755
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
121 | cd $$dir && \ |
|
ba07cbebb755
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
122 | `$(MAKE) uninstall | grep unlink | sed -e 's#/usr#${prefix}#' -e 's#unlink#rm -f#'` && \ |
|
ba07cbebb755
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
123 | cd ..; \ |
|
ba07cbebb755
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
124 | done |
|
ba07cbebb755
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
125 | |
|
6508
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
126 | clean-generic: |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
127 | @for dir in $(perl_dirs); do \ |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
128 | cd $$dir; \ |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
129 | $(MAKE) clean; \ |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
130 | cd ..; \ |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
131 | done |
|
11146
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11123
diff
changeset
|
132 | rm -f *.so |
|
6508
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
133 | |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
134 | distclean-generic: |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
135 | @for dir in $(perl_dirs); do \ |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
136 | cd $$dir; \ |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
137 | $(MAKE) realclean; \ |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
138 | rm -f Makefile.PL; \ |
|
6671
82181f2c16da
[gaim-migrate @ 7196]
Christian Hammond <chipx86@chipx86.com>
parents:
6669
diff
changeset
|
139 | rm -f Makefile.old; \ |
|
6530
123bf2500cc1
[gaim-migrate @ 7047]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
140 | rm -f Makefile; \ |
|
6508
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
141 | cd ..; \ |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
142 | done |
| 5205 | 143 | |
|
6669
ba07cbebb755
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
144 | @rm -f Makefile |
|
ba07cbebb755
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
145 | @rm -f common/const-c.inc common/const-xs.inc |
|
ba07cbebb755
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
146 | |
|
ba07cbebb755
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
147 | @if test "x${top_srcdir}" != "x${top_builddir}"; then \ |
|
ba07cbebb755
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
148 | for f in ${common_sources}; do \ |
|
ba07cbebb755
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
149 | ${LN_S} -f ../${srcdir}/$$f $$f; \ |
|
ba07cbebb755
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
150 | done; \ |
|
ba07cbebb755
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
151 | fi |
|
ba07cbebb755
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
152 | |
|
ba07cbebb755
[gaim-migrate @ 7194]
Christian Hammond <chipx86@chipx86.com>
parents:
6667
diff
changeset
|
153 | |
| 5205 | 154 | AM_CPPFLAGS = \ |
|
6360
c2bfe65b200c
[gaim-migrate @ 6864]
Robert McQueen <robot101@debian.org>
parents:
6198
diff
changeset
|
155 | -DVERSION=\"$(VERSION)\" \ |
|
c2bfe65b200c
[gaim-migrate @ 6864]
Robert McQueen <robot101@debian.org>
parents:
6198
diff
changeset
|
156 | -I$(top_srcdir) \ |
| 5205 | 157 | -I$(top_srcdir)/src \ |
| 158 | $(DEBUG_CFLAGS) \ | |
|
6360
c2bfe65b200c
[gaim-migrate @ 6864]
Robert McQueen <robot101@debian.org>
parents:
6198
diff
changeset
|
159 | $(GTK_CFLAGS) \ |
| 5205 | 160 | $(PLUGIN_CFLAGS) \ |
| 161 | $(PERL_CFLAGS) |