ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/irc/xchat/Makefile
Revision: 2513
Committed: Wed Aug 29 05:19:24 2007 UTC (16 years, 8 months ago) by ctriv
File size: 3608 byte(s)
Log Message:
Maintainer drifted back to a freebsd address.  Fixed.

File Contents

# Content
1 # New ports collection makefile for: xchat2
2 # Date created: 17 Aug 2002
3 # Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
4 #
5 # $MidnightBSD: mports/irc/xchat/Makefile,v 1.3 2007/08/29 02:26:21 ctriv Exp $
6 # $FreeBSD: ports/irc/xchat/Makefile,v 1.133 2007/07/28 18:35:48 marcus 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.8.4
12 CATEGORIES= irc gnome ipv6
13 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
14 http://xchat.org/files/source/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}/
15 MASTER_SITE_SUBDIR= ${PORTNAME}
16
17 MAINTAINER= ports@MidnightBSD.org
18 COMMENT= An X11 IRC client using the GTK+ 2 toolkit
19 LICENSE= gpl2
20
21 CONFLICTS= xchat-1* xchat-systray-plugin-[0-9]*
22
23 USE_BZIP2= yes
24 USE_GMAKE= yes
25 USE_GETTEXT= yes
26 USE_GNOME= gnomehack gtk20
27 GNU_CONFIGURE= yes
28 CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
29 LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
30 CONFIGURE_ARGS= --enable-ipv6
31
32 OPTIONS= DBUS "Enable DBUS support" on \
33 GTKSPELL "Enable spell check support using gtkspell" on \
34 LIBSEXY "Enable spell check support using libsexy" off \
35 NOTIFY "Depend on libnotify for notifications" off \
36 PERL "Enable Perl support" on \
37 PYTHON "Enable Python support" off \
38 TCL "Enable TCL support" off \
39 SOCKS "Build with socks5 support" off
40
41 .include <bsd.port.pre.mk>
42
43 .if !defined(WITHOUT_DBUS)
44 LIB_DEPENDS+= dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib
45 CONFIGURE_ARGS+=--enable-dbus
46 USE_GNOME+= gconf2
47 GCONF_SCHEMAS+= apps_xchat_url_handler.schemas
48 PLIST_SUB+= DBUS=""
49 .else
50 CONFIGURE_ARGS+=--disable-dbus
51 PLIST_SUB+= DBUS="@comment "
52 .endif
53
54 .if defined(WITH_GTKSPELL)
55 .if defined(WITH_LIBSEXY)
56 BROKEN= You can select only one of GTKSPELL and LIBSEXY for spell check support
57 .endif
58 LIB_DEPENDS+= gtkspell.0:${PORTSDIR}/textproc/gtkspell
59 CONFIGURE_ARGS+=--enable-spell=gtkspell
60 .endif
61
62 .if defined(WITH_LIBSEXY)
63 .if defined(WITH_GTKSPELL)
64 BROKEN= You can select only one of GTKSPELL and LIBSEXY for spell check support
65 .endif
66 LIB_DEPENDS+= sexy.2:${PORTSDIR}/x11-toolkits/libsexy
67 CONFIGURE_ARGS+=--enable-spell=libsexy
68 .endif
69
70 .if !defined(WITH_GTKSPELL) && !defined(WITH_LIBSEXY)
71 CONFIGURE_ARGS+=--enable-spell=none
72 .endif
73
74 .if defined(WITH_NOTIFY)
75 RUN_DEPENDS+= notify-send:${PORTSDIR}/devel/libnotify \
76 ${LOCALBASE}/libexec/notification-daemon:${PORTSDIR}/deskutils/notification-daemon
77 .endif
78
79 .if defined(WITHOUT_PERL)
80 CONFIGURE_ARGS+=--disable-perl
81 PLIST_SUB+= PERL="@comment "
82 .else
83 USE_PERL5= yes
84 CONFIGURE_ARGS+=--enable-perl
85 PLIST_SUB+= PERL=""
86 .endif
87
88 .if defined(WITH_PYTHON)
89 USE_PYTHON= yes
90 .include "${PORTSDIR}/Mk/bsd.python.mk"
91 CONFIGURE_ARGS+=--enable-python
92 PLIST_SUB+= PYTHON=""
93 .else
94 CONFIGURE_ARGS+=--disable-python
95 PLIST_SUB+= PYTHON="@comment "
96 .endif
97
98 .if defined(WITH_TCL)
99 LIB_DEPENDS+= tcl84.1:${PORTSDIR}/lang/tcl84
100 CONFIGURE_ARGS+=--enable-tcl=${LOCALBASE}/lib/tcl8.4
101 CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS} \
102 -I${LOCALBASE}/include/tcl8.4" \
103 LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS} \
104 -L${LOCALBASE}/lib/tcl8.4"
105 PLIST_SUB+= TCL=""
106 .else
107 CONFIGURE_ARGS+=--enable-tcl=no
108 PLIST_SUB+= TCL="@comment "
109 .endif
110
111 .if defined(WITH_SOCKS)
112 BUILD_DEPENDS+= ${LOCALBASE}/lib/libsocks5.a:${PORTSDIR}/net/socks5
113 CONFIGURE_ARGS+=--enable-socks
114 .endif
115
116 post-patch:
117 @${REINPLACE_CMD} -E -e 's|PY_LIBS=.*|PY_LIBS="-L\$$PY_EXEC_PREFIX/lib/python\$$PY_VER/config -lpython\$$PY_VER ${PTHREAD_LIBS} -lutil"|' \
118 ${WRKSRC}/configure
119
120 # Create plugins directory even when no plugins are installed
121 post-install:
122 @${MKDIR} ${PREFIX}/lib/xchat/plugins
123
124 .include <bsd.port.post.mk>

Properties

Name Value
cvs2svn:cvs-rev 1.4