2004-05-04 22:38:11 +00:00
|
|
|
# New ports collection makefile for: xchat-gnome
|
|
|
|
# Date created: 04 May 2004
|
|
|
|
# Whom: Koop Mast <kwm@rainbow-runner.nl>
|
1998-11-19 09:27:59 +00:00
|
|
|
#
|
1999-08-25 06:16:32 +00:00
|
|
|
# $FreeBSD$
|
1998-11-19 09:27:59 +00:00
|
|
|
#
|
|
|
|
|
2004-05-04 22:38:11 +00:00
|
|
|
PORTNAME= xchat
|
2007-01-09 13:09:43 +00:00
|
|
|
PORTVERSION= 0.15
|
2002-08-18 04:21:24 +00:00
|
|
|
CATEGORIES= irc gnome ipv6
|
2006-05-25 20:11:48 +00:00
|
|
|
MASTER_SITES= http://releases.navi.cx/xchat-gnome/
|
2004-05-04 22:38:11 +00:00
|
|
|
PKGNAMESUFFIX= -gnome
|
|
|
|
DISTNAME= ${PORTNAME}${PKGNAMESUFFIX}-${PORTVERSION}
|
1998-11-19 09:27:59 +00:00
|
|
|
|
2006-05-28 12:04:00 +00:00
|
|
|
MAINTAINER= ports@thepentagon.org
|
2004-05-04 22:38:11 +00:00
|
|
|
COMMENT= An IRC client for GNOME 2 (development version)
|
2001-09-04 19:38:29 +00:00
|
|
|
|
2006-05-25 20:11:48 +00:00
|
|
|
LIB_DEPENDS= sexy:${PORTSDIR}/x11-toolkits/libsexy \
|
|
|
|
notify:${PORTSDIR}/devel/libnotify
|
|
|
|
|
2006-10-14 08:54:54 +00:00
|
|
|
USE_XLIB= yes
|
2006-03-26 23:39:46 +00:00
|
|
|
USE_GETTEXT= yes
|
2005-09-10 15:15:47 +00:00
|
|
|
USE_BZIP2= yes
|
2002-08-18 04:21:24 +00:00
|
|
|
USE_GMAKE= yes
|
2006-10-14 08:54:54 +00:00
|
|
|
USE_GNOME= gnomehack gnomeprefix libgnomeui gnomedocutils desktopfileutils
|
2006-02-23 10:40:44 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2002-11-14 17:15:07 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
|
|
|
|
LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
|
2006-05-25 20:11:48 +00:00
|
|
|
CONFIGURE_ARGS= --disable-tcl
|
2005-09-10 15:15:47 +00:00
|
|
|
GCONF_SCHEMAS= apps_xchat.schemas notification.schemas urlscraper.schemas
|
2006-05-25 20:11:48 +00:00
|
|
|
INSTALLS_ICONS= yes
|
|
|
|
INSTALLS_OMF= yes
|
|
|
|
|
2007-01-09 13:09:43 +00:00
|
|
|
MAN1= xchat-gnome.1
|
|
|
|
|
2006-05-25 20:11:48 +00:00
|
|
|
.if !defined(WITHOUT_DBUS)
|
2006-10-14 08:54:54 +00:00
|
|
|
LIB_DEPENDS+= dbus-1.3:${PORTSDIR}/devel/dbus
|
2006-05-25 20:11:48 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-dbus
|
|
|
|
USE_GNOME+= gconf2
|
2007-01-09 13:09:43 +00:00
|
|
|
GCONF_SCHEMAS+= url_handler.schemas
|
2006-05-25 20:11:48 +00:00
|
|
|
PLIST_SUB+= DBUS=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-dbus
|
|
|
|
PLIST_SUB+= DBUS="@comment "
|
|
|
|
.endif
|
2003-10-11 04:44:32 +00:00
|
|
|
|
2000-04-17 00:18:05 +00:00
|
|
|
.if defined(WITH_SOCKS)
|
2002-08-18 04:21:24 +00:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libsocks5.a:${PORTSDIR}/net/socks5
|
2000-11-16 06:30:14 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-socks
|
2000-04-14 18:18:37 +00:00
|
|
|
.endif
|
|
|
|
|
2006-05-25 20:11:48 +00:00
|
|
|
.if !defined(WITHOUT_IPV6)
|
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
|
|
|
.endif
|
|
|
|
|
2003-01-19 19:43:44 +00:00
|
|
|
# openssl in now default in configure
|
2000-11-26 05:08:19 +00:00
|
|
|
|
2002-06-30 22:28:11 +00:00
|
|
|
.if defined(WITH_PYTHON)
|
2003-06-29 23:05:55 +00:00
|
|
|
USE_PYTHON= yes
|
2002-06-30 22:28:11 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-python
|
2003-06-29 23:05:55 +00:00
|
|
|
PLIST_SUB+= PYTHON=""
|
2002-06-30 22:28:11 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-python
|
2003-06-29 23:05:55 +00:00
|
|
|
PLIST_SUB+= PYTHON="@comment "
|
2002-08-18 04:21:24 +00:00
|
|
|
.endif
|
|
|
|
|
2003-02-18 20:30:17 +00:00
|
|
|
.if defined(WITH_TCL)
|
2003-11-09 19:28:33 +00:00
|
|
|
LIB_DEPENDS+= tcl83.1:${PORTSDIR}/lang/tcl83
|
2003-06-29 23:05:55 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-tcl=${LOCALBASE}/lib/tcl8.3
|
2006-05-25 20:11:48 +00:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS} \
|
2003-02-18 20:30:17 +00:00
|
|
|
-I${LOCALBASE}/include/tcl8.3" \
|
|
|
|
LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS} \
|
|
|
|
-L${LOCALBASE}/lib/tcl8.3"
|
2003-02-19 08:33:06 +00:00
|
|
|
PLIST_SUB+= TCL=""
|
2003-02-18 20:30:17 +00:00
|
|
|
.else
|
2003-06-29 23:05:55 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-tcl=no
|
2003-02-19 08:33:06 +00:00
|
|
|
PLIST_SUB+= TCL="@comment "
|
2003-02-18 20:30:17 +00:00
|
|
|
.endif
|
|
|
|
|
2003-11-24 01:42:27 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-03-26 23:39:46 +00:00
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
BROKEN= does not build on 4.X
|
|
|
|
.endif
|
|
|
|
|
2005-09-10 15:15:47 +00:00
|
|
|
.if ${PERL_LEVEL} < 500600 || defined(WITHOUT_PERL)
|
2003-11-24 01:42:27 +00:00
|
|
|
CONFIGURE_ARGS+=--disable-perl
|
|
|
|
PLIST_SUB+= PERL="@comment "
|
|
|
|
.else
|
|
|
|
USE_PERL5= yes
|
|
|
|
CONFIGURE_ARGS+=--enable-perl
|
|
|
|
PLIST_SUB+= PERL=""
|
|
|
|
.endif
|
|
|
|
|
2002-08-18 04:21:24 +00:00
|
|
|
pre-everything::
|
2003-02-18 20:30:17 +00:00
|
|
|
.if !defined(WITH_PYTHON) || !defined(WITH_SOCKS) || !defined(WITH_TCL)
|
2002-08-18 04:21:24 +00:00
|
|
|
@${ECHO_MSG} "You may specify the following on the command line:"
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
.endif
|
|
|
|
.if !defined(WITH_PYTHON)
|
|
|
|
@${ECHO_MSG} "WITH_PYTHON=yes for Python support"
|
|
|
|
.endif
|
|
|
|
.if !defined(WITH_SOCKS)
|
|
|
|
@${ECHO_MSG} "WITH_SOCKS=yes for SOCKS5 proxy support"
|
2002-06-30 22:28:11 +00:00
|
|
|
.endif
|
2003-02-18 20:30:17 +00:00
|
|
|
.if !defined(WITH_TCL)
|
|
|
|
@${ECHO_MSG} "WITH_TCL=yes for tcl support"
|
|
|
|
.endif
|
2005-09-10 15:15:47 +00:00
|
|
|
.if !defined(WITHOUT_PERL)
|
2003-11-24 01:42:27 +00:00
|
|
|
@${ECHO_MSG} "WITHOUT_PERL=yes to disable Perl support"
|
|
|
|
.endif
|
2002-06-30 22:28:11 +00:00
|
|
|
|
2003-06-30 16:36:01 +00:00
|
|
|
post-patch:
|
2003-09-25 05:22:54 +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"|' \
|
2007-01-09 13:09:43 +00:00
|
|
|
-e 's|tcl-8.4/lib|lib/tcl8.3|g' \
|
2003-06-30 16:36:01 +00:00
|
|
|
${WRKSRC}/configure
|
|
|
|
|
2003-11-24 01:42:27 +00:00
|
|
|
.include <bsd.port.post.mk>
|