1 |
# $MidnightBSD$ |
2 |
|
3 |
PORTNAME= xchat |
4 |
PORTVERSION= 2.8.8 |
5 |
PORTREVISION= 3 |
6 |
CATEGORIES= irc gnome ipv6 |
7 |
MASTER_SITES= SF/${PORTNAME}/ \ |
8 |
http://xchat.org/files/source/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}/ |
9 |
|
10 |
MAINTAINER= ports@MidnightBSD.org |
11 |
COMMENT= X11 IRC client using the GTK+ 2 toolkit |
12 |
|
13 |
LICENSE= gpl2 |
14 |
LICENSE_FILE= ${WRKSRC}/COPYING |
15 |
|
16 |
CONFLICTS= xchat-1* xchat-systray-plugin-[0-9]* |
17 |
|
18 |
USES= cpe gettext gmake libtool pathfix pkgconfig tar:bzip2 |
19 |
USE_GNOME= gtk20 |
20 |
GNU_CONFIGURE= yes |
21 |
CPPFLAGS+= -I${LOCALBASE}/include |
22 |
LIBS+= -L${LOCALBASE}/lib |
23 |
CONFIGURE_ARGS= --enable-ipv6 |
24 |
INSTALL_TARGET= install-strip |
25 |
|
26 |
OPTIONS_DEFINE= DBUS NOTIFY PERL PYTHON SOCKS TCL |
27 |
OPTIONS_DEFAULT=DBUS GTKSPELL PERL |
28 |
OPTIONS_RADIO= SPELL |
29 |
OPTIONS_RADIO_SPELL= GTKSPELL LIBSEXY |
30 |
GTKSPELL_DESC= Spell check support via gtkspell |
31 |
LIBSEXY_DESC= Spell check support via libsexy |
32 |
|
33 |
.include <bsd.mport.options.mk> |
34 |
|
35 |
.if ${PORT_OPTIONS:MDBUS} |
36 |
LIB_DEPENDS+= libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib |
37 |
CONFIGURE_ARGS+=--enable-dbus |
38 |
USE_GNOME+= gconf2 |
39 |
GCONF_SCHEMAS+= apps_xchat_url_handler.schemas |
40 |
PLIST_SUB+= DBUS="" |
41 |
.else |
42 |
CONFIGURE_ARGS+=--disable-dbus |
43 |
PLIST_SUB+= DBUS="@comment " |
44 |
.endif |
45 |
|
46 |
.if ${PORT_OPTIONS:MGTKSPELL} |
47 |
LIB_DEPENDS+= libgtkspell.so:${PORTSDIR}/textproc/gtkspell |
48 |
CONFIGURE_ARGS+=--enable-spell=gtkspell |
49 |
.elif ${PORT_OPTIONS:MLIBSEXY} |
50 |
LIB_DEPENDS+= libsexy.so:${PORTSDIR}/x11-toolkits/libsexy |
51 |
CONFIGURE_ARGS+=--enable-spell=libsexy |
52 |
.else |
53 |
CONFIGURE_ARGS+=--enable-spell=none |
54 |
.endif |
55 |
|
56 |
.if ${PORT_OPTIONS:MNOTIFY} |
57 |
RUN_DEPENDS+= notify-send:${PORTSDIR}/devel/libnotify \ |
58 |
${LOCALBASE}/libexec/notification-daemon:${PORTSDIR}/deskutils/notification-daemon |
59 |
.endif |
60 |
|
61 |
.if ${PORT_OPTIONS:MPERL} |
62 |
USE_PERL5= yes |
63 |
CONFIGURE_ARGS+=--enable-perl |
64 |
PLIST_SUB+= PERL="" |
65 |
.else |
66 |
CONFIGURE_ARGS+=--disable-perl |
67 |
PLIST_SUB+= PERL="@comment " |
68 |
.endif |
69 |
|
70 |
.if ${PORT_OPTIONS:MPYTHON} |
71 |
USE_PYTHON= yes |
72 |
CONFIGURE_ARGS+=--enable-python |
73 |
PLIST_SUB+= PYTHON="" |
74 |
.else |
75 |
CONFIGURE_ARGS+=--disable-python |
76 |
PLIST_SUB+= PYTHON="@comment " |
77 |
.endif |
78 |
|
79 |
.if ${PORT_OPTIONS:MSOCKS} |
80 |
LIB_DEPENDS+= libsocks.so:${PORTSDIR}/net/dante |
81 |
CONFIGURE_ARGS+=--enable-socks |
82 |
.endif |
83 |
|
84 |
.if ${PORT_OPTIONS:MTCL} |
85 |
USES+= tcl |
86 |
CONFIGURE_ARGS+=--enable-tcl=${TCL_LIBDIR} |
87 |
CPPFLAGS+= -I${TCL_INCLUDEDIR} |
88 |
LIBS+= -L${TCL_LIBDIR} |
89 |
PLIST_SUB+= TCL="" |
90 |
.else |
91 |
CONFIGURE_ARGS+=--enable-tcl=no |
92 |
PLIST_SUB+= TCL="@comment " |
93 |
.endif |
94 |
|
95 |
post-patch: |
96 |
@${REINPLACE_CMD} -e 's|glib/.*\.h>|glib.h>|g' \ |
97 |
${WRKSRC}/src/common/*.[ch] |
98 |
@${REINPLACE_CMD} '/_LDADD =/s/$$/ -lgmodule-2.0/' \ |
99 |
${WRKSRC}/src/fe-gtk/Makefile.in \ |
100 |
${WRKSRC}/src/fe-text/Makefile.in |
101 |
|
102 |
# Create plugins directory even when no plugins are installed |
103 |
post-install: |
104 |
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/xchat/plugins |
105 |
|
106 |
.include <bsd.port.mk> |