Merge lp:~xnox/xchat-indicator/hexchat into lp:xchat-indicator

Proposed by Dimitri John Ledkov
Status: Merged
Merged at revision: 46
Proposed branch: lp:~xnox/xchat-indicator/hexchat
Merge into: lp:xchat-indicator
Diff against target: 73 lines (+55/-0)
2 files modified
Makefile.am (+32/-0)
configure.ac (+23/-0)
To merge this branch: bzr merge lp:~xnox/xchat-indicator/hexchat
Reviewer Review Type Date Requested Status
Ken VanDine Pending
Review via email: mp+243246@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Ken VanDine (ken-vandine) wrote :

Thanks, looks great.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Makefile.am'
2--- Makefile.am 2011-02-10 06:10:11 +0000
3+++ Makefile.am 2014-11-30 22:16:10 +0000
4@@ -29,3 +29,35 @@
5 install-xchat:
6 mkdir -p $(libdir)/xchat/plugins
7 cp .libs/indicator.so $(libdir)/xchat/plugins
8+
9+if HAVE_HEXCHAT
10+BUILT_SOURCES = hexindicator.c
11+CLEANFILES = hexindicator.c
12+
13+hexindicator.c: indicator.c
14+ sed 's/xchat_/hexchat_/g;s/XCHAT_/HEXCHAT_/g;' $^ > $@
15+ sed -i 's/"xchat-plugin.h"/<hexchat-plugin.h>/' $@
16+
17+hexchatlib_LTLIBRARIES = hexindicator.la
18+
19+hexindicator_la_SOURCES = hexindicator.c
20+
21+hexindicator_la_CPPFLAGS = \
22+ -I$(srcdir) \
23+ $(AM_CPPFLAGS)
24+
25+hexindicator_la_CFLAGS = \
26+ $(DEPENDENCIES_CFLAGS) \
27+ $(HEXCHAT_CFLAGS) \
28+ $(UNITY_CFLAGS) \
29+ $(AM_CFLAGS)
30+
31+hexindicator_la_LDFLAGS = \
32+ -avoid-version \
33+ -module \
34+ $(AM_LDFLAGS)
35+
36+hexindicator_la_LIBADD = \
37+ $(DEPENDENCIES_LIBS) \
38+ $(UNITY_LIBS)
39+endif
40
41=== modified file 'configure.ac'
42--- configure.ac 2013-01-29 14:52:28 +0000
43+++ configure.ac 2014-11-30 22:16:10 +0000
44@@ -67,6 +67,29 @@
45 AC_SUBST([UNITY_CFLAGS])
46 AC_SUBST([UNITY_LIBS])
47
48+AC_ARG_ENABLE(hexchat,
49+ AS_HELP_STRING([--enable-hexchat=@<:@no/yes/auto@:>@],
50+ [build hexchat plugin]), ,
51+ enable_hexchat=auto)
52+
53+if test "x$enable_hexchat" != "xno"; then
54+ PKG_CHECK_MODULES(HEXCHAT, [ hexchat-plugin ], have_hexchat="yes", heve_hexchat="no")
55+ if test "x$have_hexchat" = "xyes"; then
56+ AC_DEFINE(HAVE_HEXCHAT, 1, [Define if you have hexchat])
57+ fi
58+ hexchatlibdir=$(pkg-config --variable=hexchatlibdir hexchat-plugin)
59+else
60+ have_hexchat=no
61+fi
62+
63+if test "x$enable_hexchat" = "xyes" -a "x$have_hexchat" != "xyes"; then
64+ AC_MSG_ERROR([Couldnot find hexchat.])
65+fi
66+
67+AM_CONDITIONAL(HAVE_HEXCHAT, test "x$have_hexchat" = "xyes")
68+AC_SUBST([HEXCHAT_CFLAGS])
69+AC_SUBST([hexchatlibdir])
70+
71 # warning flags
72 AM_CPPFLAGS="$AM_CPPFLAGS $DISABLE_DEPRECATED"
73 AM_CFLAGS="$AM_CFLAGS $WARN_CFLAGS -fgnu89-inline"

Subscribers

People subscribed via source and target branches