2006-05-28 12:35:56 +00:00
|
|
|
# New ports collection makefile for: xchat2
|
|
|
|
# Date created: 17 Aug 2002
|
|
|
|
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
|
1998-11-19 09:27:59 +00:00
|
|
|
#
|
1999-08-25 06:16:32 +00:00
|
|
|
# $FreeBSD$
|
2009-01-10 05:22:13 +00:00
|
|
|
# $MCom: ports/irc/xchat/Makefile,v 1.7 2008/08/06 07:59:00 kwm Exp $
|
2007-01-05 21:25:14 +00:00
|
|
|
#
|
1998-11-19 09:27:59 +00:00
|
|
|
|
2006-05-28 12:35:56 +00:00
|
|
|
PORTNAME= xchat
|
2010-07-13 18:03:37 +00:00
|
|
|
PORTVERSION= 2.8.8
|
2006-05-28 12:35:56 +00:00
|
|
|
CATEGORIES= irc gnome ipv6
|
2010-07-13 18:03:37 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/ \
|
2007-01-05 21:25:14 +00:00
|
|
|
http://xchat.org/files/source/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}/
|
2009-08-22 00:24:37 +00:00
|
|
|
|
2006-05-28 12:35:56 +00:00
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
|
|
|
COMMENT= An X11 IRC client using the GTK+ 2 toolkit
|
2001-09-04 19:38:29 +00:00
|
|
|
|
2010-07-13 18:03:37 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2007-07-28 18:35:48 +00:00
|
|
|
CONFLICTS= xchat-1* xchat-systray-plugin-[0-9]*
|
|
|
|
|
2006-05-28 12:35:56 +00:00
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_GETTEXT= yes
|
2007-07-28 18:35:48 +00:00
|
|
|
USE_GNOME= gnomehack gtk20
|
2006-05-28 12:35:56 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2011-09-23 22:26:39 +00:00
|
|
|
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
2007-07-28 18:35:48 +00:00
|
|
|
CONFIGURE_ARGS= --enable-ipv6
|
2007-10-07 05:45:04 +00:00
|
|
|
WANT_PERL= yes
|
1998-11-19 09:27:59 +00:00
|
|
|
|
2007-07-28 18:35:48 +00:00
|
|
|
OPTIONS= DBUS "Enable DBUS support" on \
|
|
|
|
GTKSPELL "Enable spell check support using gtkspell" on \
|
|
|
|
LIBSEXY "Enable spell check support using libsexy" off \
|
|
|
|
NOTIFY "Depend on libnotify for notifications" off \
|
|
|
|
PERL "Enable Perl support" on \
|
|
|
|
PYTHON "Enable Python support" off \
|
2012-02-26 18:44:12 +00:00
|
|
|
TCL "Enable TCL support" off
|
1999-07-21 05:24:44 +00:00
|
|
|
|
2010-07-13 18:03:37 +00:00
|
|
|
.if defined(WITH_PYTHON)
|
|
|
|
USE_PYTHON= yes
|
|
|
|
.endif
|
|
|
|
|
2007-07-28 18:35:48 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
2000-04-14 18:18:37 +00:00
|
|
|
|
2006-05-28 12:35:56 +00:00
|
|
|
.if !defined(WITHOUT_DBUS)
|
2006-10-14 08:54:54 +00:00
|
|
|
LIB_DEPENDS+= dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib
|
2006-05-28 12:35:56 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-dbus
|
|
|
|
USE_GNOME+= gconf2
|
2006-10-14 08:54:54 +00:00
|
|
|
GCONF_SCHEMAS+= apps_xchat_url_handler.schemas
|
2006-05-28 12:35:56 +00:00
|
|
|
PLIST_SUB+= DBUS=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-dbus
|
|
|
|
PLIST_SUB+= DBUS="@comment "
|
2001-11-28 07:50:03 +00:00
|
|
|
.endif
|
|
|
|
|
2007-07-28 18:35:48 +00:00
|
|
|
.if defined(WITH_GTKSPELL)
|
|
|
|
.if defined(WITH_LIBSEXY)
|
|
|
|
BROKEN= You can select only one of GTKSPELL and LIBSEXY for spell check support
|
|
|
|
.endif
|
2006-06-13 22:31:23 +00:00
|
|
|
LIB_DEPENDS+= gtkspell.0:${PORTSDIR}/textproc/gtkspell
|
2006-11-28 14:44:41 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-spell=gtkspell
|
2006-06-13 22:31:23 +00:00
|
|
|
.endif
|
|
|
|
|
2007-07-28 18:35:48 +00:00
|
|
|
.if defined(WITH_LIBSEXY)
|
|
|
|
.if defined(WITH_GTKSPELL)
|
|
|
|
BROKEN= You can select only one of GTKSPELL and LIBSEXY for spell check support
|
|
|
|
.endif
|
|
|
|
LIB_DEPENDS+= sexy.2:${PORTSDIR}/x11-toolkits/libsexy
|
|
|
|
CONFIGURE_ARGS+=--enable-spell=libsexy
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITH_GTKSPELL) && !defined(WITH_LIBSEXY)
|
|
|
|
CONFIGURE_ARGS+=--enable-spell=none
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_NOTIFY)
|
|
|
|
RUN_DEPENDS+= notify-send:${PORTSDIR}/devel/libnotify \
|
|
|
|
${LOCALBASE}/libexec/notification-daemon:${PORTSDIR}/deskutils/notification-daemon
|
|
|
|
.endif
|
2006-05-28 12:35:56 +00:00
|
|
|
|
2007-07-28 18:35:48 +00:00
|
|
|
.if defined(WITHOUT_PERL)
|
2006-05-28 12:35:56 +00:00
|
|
|
CONFIGURE_ARGS+=--disable-perl
|
|
|
|
PLIST_SUB+= PERL="@comment "
|
1999-07-21 05:24:44 +00:00
|
|
|
.else
|
2006-05-28 12:35:56 +00:00
|
|
|
USE_PERL5= yes
|
|
|
|
CONFIGURE_ARGS+=--enable-perl
|
|
|
|
PLIST_SUB+= PERL=""
|
|
|
|
.endif
|
|
|
|
|
2007-07-28 18:35:48 +00:00
|
|
|
.if defined(WITH_PYTHON)
|
|
|
|
.include "${PORTSDIR}/Mk/bsd.python.mk"
|
|
|
|
CONFIGURE_ARGS+=--enable-python
|
|
|
|
PLIST_SUB+= PYTHON=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-python
|
|
|
|
PLIST_SUB+= PYTHON="@comment "
|
2006-05-28 12:35:56 +00:00
|
|
|
.endif
|
2007-07-28 18:35:48 +00:00
|
|
|
|
|
|
|
.if defined(WITH_TCL)
|
2009-03-03 04:11:13 +00:00
|
|
|
USE_TCL= 84+
|
|
|
|
.include "${PORTSDIR}/Mk/bsd.tcl.mk"
|
|
|
|
CONFIGURE_ARGS+=--enable-tcl=${TCL_LIBDIR}
|
2011-09-23 22:26:39 +00:00
|
|
|
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS} \
|
2009-03-03 04:11:13 +00:00
|
|
|
-L${TCL_LIBDIR}"
|
2011-09-23 22:26:39 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} \
|
|
|
|
-I${TCL_INCLUDEDIR}
|
2007-07-28 18:35:48 +00:00
|
|
|
PLIST_SUB+= TCL=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--enable-tcl=no
|
|
|
|
PLIST_SUB+= TCL="@comment "
|
1999-07-21 05:24:44 +00:00
|
|
|
.endif
|
2007-07-28 18:35:48 +00:00
|
|
|
|
2000-11-06 19:39:43 +00:00
|
|
|
post-patch:
|
2006-05-28 12:35:56 +00:00
|
|
|
@${REINPLACE_CMD} -E -e 's|PY_LIBS=.*|PY_LIBS="-L\$$PY_EXEC_PREFIX/lib/python\$$PY_VER/config -lpython\$$PY_VER ${PTHREAD_LIBS} -lutil"|' \
|
2001-09-04 19:38:29 +00:00
|
|
|
${WRKSRC}/configure
|
2000-01-20 02:23:12 +00:00
|
|
|
|
2006-05-28 12:35:56 +00:00
|
|
|
# Create plugins directory even when no plugins are installed
|
1999-05-09 16:57:32 +00:00
|
|
|
post-install:
|
2006-05-28 12:35:56 +00:00
|
|
|
@${MKDIR} ${PREFIX}/lib/xchat/plugins
|
1998-11-19 09:27:59 +00:00
|
|
|
|
2000-10-05 07:22:56 +00:00
|
|
|
.include <bsd.port.post.mk>
|