1 |
laffer1 |
926 |
# New ports collection makefile for: xchat2 |
2 |
|
|
# Date created: 17 Aug 2002 |
3 |
|
|
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org> |
4 |
|
|
# |
5 |
ctriv |
1725 |
# $MidnightBSD: mports/irc/xchat/Makefile,v 1.1 2007/02/19 23:05:09 laffer1 Exp $ |
6 |
laffer1 |
926 |
# $FreeBSD: ports/irc/xchat/Makefile,v 1.122 2006/11/28 14:44:41 pav Exp $ |
7 |
|
|
# $MCom: ports-stable/irc/xchat/Makefile,v 1.1 2006/10/26 08:33:06 marcus Exp $ |
8 |
|
|
# |
9 |
|
|
|
10 |
|
|
PORTNAME= xchat |
11 |
|
|
PORTVERSION= 2.6.8 |
12 |
|
|
PORTREVISION= 1 |
13 |
|
|
CATEGORIES= irc gnome ipv6 |
14 |
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ |
15 |
|
|
http://xchat.org/files/source/2.6/ |
16 |
|
|
MASTER_SITE_SUBDIR= ${PORTNAME:S|2||} |
17 |
|
|
DISTNAME= xchat-${PORTVERSION} |
18 |
|
|
|
19 |
|
|
MAINTAINER= ports@MidnightBSD.org |
20 |
|
|
COMMENT= An X11 IRC client using the GTK+ 2 toolkit |
21 |
|
|
|
22 |
ctriv |
1725 |
OPTIONS= PYTHON "Enable Python support" Off \ |
23 |
|
|
SOCKS "Enable SOCKS5 proxy support" Off \ |
24 |
|
|
TCL "Enable TCL suppoer" Off \ |
25 |
|
|
PERL "Enable perl support" On \ |
26 |
|
|
DBUS "Enable dbus support" On \ |
27 |
|
|
GTKSPELL "Enable spell-checking" On \ |
28 |
|
|
|
29 |
laffer1 |
926 |
USE_BZIP2= yes |
30 |
|
|
USE_GMAKE= yes |
31 |
|
|
USE_GNOME= gnomehack gtk20 |
32 |
|
|
USE_GETTEXT= yes |
33 |
|
|
GNU_CONFIGURE= yes |
34 |
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \ |
35 |
|
|
LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" |
36 |
|
|
CONFIGURE_ARGS= --enable-nls \ |
37 |
|
|
--enable-ipv6 |
38 |
|
|
|
39 |
|
|
CONFLICTS= xchat-1* |
40 |
|
|
|
41 |
|
|
.if defined(WITH_SOCKS) |
42 |
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libsocks5.a:${PORTSDIR}/net/socks5 |
43 |
|
|
CONFIGURE_ARGS+= --enable-socks |
44 |
|
|
.endif |
45 |
|
|
|
46 |
|
|
# openssl in now default in configure |
47 |
|
|
|
48 |
|
|
.if defined(WITH_PYTHON) |
49 |
|
|
USE_PYTHON= yes |
50 |
|
|
CONFIGURE_ARGS+= --enable-python |
51 |
|
|
PLIST_SUB+= PYTHON="" |
52 |
|
|
.else |
53 |
|
|
CONFIGURE_ARGS+= --disable-python |
54 |
|
|
PLIST_SUB+= PYTHON="@comment " |
55 |
|
|
.endif |
56 |
|
|
|
57 |
|
|
.if defined(WITH_TCL) |
58 |
|
|
LIB_DEPENDS+= tcl83.1:${PORTSDIR}/lang/tcl83 |
59 |
|
|
CONFIGURE_ARGS+=--enable-tcl=${LOCALBASE}/lib/tcl8.3 |
60 |
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS} \ |
61 |
|
|
-I${LOCALBASE}/include/tcl8.3" \ |
62 |
|
|
LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS} \ |
63 |
|
|
-L${LOCALBASE}/lib/tcl8.3" |
64 |
|
|
PLIST_SUB+= TCL="" |
65 |
|
|
.else |
66 |
|
|
CONFIGURE_ARGS+=--enable-tcl=no |
67 |
|
|
PLIST_SUB+= TCL="@comment " |
68 |
|
|
.endif |
69 |
|
|
|
70 |
|
|
.if !defined(WITHOUT_DBUS) |
71 |
|
|
LIB_DEPENDS+= dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib |
72 |
|
|
CONFIGURE_ARGS+=--enable-dbus |
73 |
|
|
USE_GNOME+= gconf2 |
74 |
|
|
GCONF_SCHEMAS+= apps_xchat_url_handler.schemas |
75 |
|
|
PLIST_SUB+= DBUS="" |
76 |
|
|
.else |
77 |
|
|
CONFIGURE_ARGS+=--disable-dbus |
78 |
|
|
PLIST_SUB+= DBUS="@comment " |
79 |
|
|
.endif |
80 |
|
|
|
81 |
|
|
.if !defined(WITHOUT_GTKSPELL) |
82 |
|
|
LIB_DEPENDS+= gtkspell.0:${PORTSDIR}/textproc/gtkspell |
83 |
|
|
CONFIGURE_ARGS+=--enable-spell=gtkspell |
84 |
|
|
.else |
85 |
|
|
CONFIGURE_ARGS+=--disable-spell |
86 |
|
|
.endif |
87 |
|
|
|
88 |
|
|
.include <bsd.port.pre.mk> |
89 |
|
|
|
90 |
ctriv |
1725 |
.if defined(WITHOUT_PERL) |
91 |
laffer1 |
926 |
CONFIGURE_ARGS+=--disable-perl |
92 |
|
|
PLIST_SUB+= PERL="@comment " |
93 |
|
|
.else |
94 |
|
|
USE_PERL5= yes |
95 |
|
|
CONFIGURE_ARGS+=--enable-perl |
96 |
|
|
PLIST_SUB+= PERL="" |
97 |
|
|
.endif |
98 |
|
|
|
99 |
|
|
post-patch: |
100 |
|
|
@${REINPLACE_CMD} -E -e 's|PY_LIBS=.*|PY_LIBS="-L\$$PY_EXEC_PREFIX/lib/python\$$PY_VER/config -lpython\$$PY_VER ${PTHREAD_LIBS} -lutil"|' \ |
101 |
|
|
${WRKSRC}/configure |
102 |
|
|
|
103 |
|
|
.include <bsd.port.post.mk> |