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