2014-04-01 19:54:02 +02:00
|
|
|
# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
|
2013-06-02 15:23:41 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= hexchat
|
2014-09-12 12:41:59 +02:00
|
|
|
PORTVERSION= 2.10.1
|
2013-06-02 15:23:41 +02:00
|
|
|
CATEGORIES= irc gnome ipv6
|
|
|
|
MASTER_SITES= http://dl.hexchat.org/${PORTNAME}/
|
|
|
|
|
2014-09-12 12:41:59 +02:00
|
|
|
MAINTAINER= nemysis@FreeBSD.org
|
2013-06-02 15:23:41 +02:00
|
|
|
COMMENT= IRC chat program with GTK and Text Frontend
|
|
|
|
|
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2013-10-04 23:59:14 +02:00
|
|
|
LIB_DEPENDS= libproxy.so:${PORTSDIR}/net/libproxy
|
2013-06-02 15:23:41 +02:00
|
|
|
|
2014-06-03 21:54:22 +02:00
|
|
|
USES= gmake desktop-file-utils libtool pkgconfig tar:xz
|
2013-06-02 15:23:41 +02:00
|
|
|
USE_GNOME= gtk20 libxml2
|
|
|
|
GNU_CONFIGURE= yes
|
2013-09-16 22:55:03 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-openssl --enable-gtkfe --disable-sysinfo \
|
|
|
|
--with-pkgconfigdir=${LOCALBASE}/libdata/pkgconfig
|
2013-06-02 15:23:41 +02:00
|
|
|
INSTALLS_ICONS= yes
|
2014-10-03 18:09:59 +02:00
|
|
|
INSTALL_TARGET= install-strip
|
2013-06-02 15:23:41 +02:00
|
|
|
|
2014-10-03 18:09:59 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2014-08-29 12:56:19 +02:00
|
|
|
LIBS+= -L${LOCALBASE}/lib -lX11
|
2013-06-02 15:23:41 +02:00
|
|
|
|
2013-09-24 23:21:48 +02:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2013-06-02 15:23:41 +02:00
|
|
|
PORTDOCS= *
|
|
|
|
|
2014-04-12 17:21:22 +02:00
|
|
|
OPTIONS_DEFINE= CA_BUNDLE CANBERRA DBUS DOAT DOCS FISHLIM NLS NOTIFY \
|
2014-09-12 12:41:59 +02:00
|
|
|
PERL PYTHON SOCKS TEXTFE
|
2013-06-02 15:23:41 +02:00
|
|
|
|
2014-09-12 12:41:59 +02:00
|
|
|
OPTIONS_DEFAULT= CA_BUNDLE CANBERRA DBUS NOTIFY PERL PYTHON
|
2013-06-02 15:23:41 +02:00
|
|
|
|
2013-09-16 22:55:03 +02:00
|
|
|
OPTIONS_SUB= yes
|
|
|
|
|
2014-04-12 17:21:22 +02:00
|
|
|
CA_BUNDLE_DESC= Include CA bundle for SSL verification
|
2013-10-04 23:59:14 +02:00
|
|
|
CANBERRA_DESC= Audio support via Libcanberra
|
2013-09-16 22:55:03 +02:00
|
|
|
DOAT_DESC= Do At plugin
|
|
|
|
FISHLIM_DESC= FiSHLiM plugin
|
2013-10-04 23:59:14 +02:00
|
|
|
TEXTFE_DESC= Text frontend
|
2014-09-12 12:41:59 +02:00
|
|
|
SOCKS_DESC= SOCKS proxy support, FORBIDDEN in FreeBSD 10+
|
2013-09-16 22:55:03 +02:00
|
|
|
|
2014-04-12 17:21:22 +02:00
|
|
|
CA_BUNDLE_RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss
|
2013-10-04 23:59:14 +02:00
|
|
|
CANBERRA_LIB_DEPENDS= libcanberra.so:${PORTSDIR}/audio/libcanberra
|
|
|
|
CANBERRA_CONFIGURE_ENABLE= libcanberra
|
|
|
|
DBUS_LIB_DEPENDS= libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib
|
|
|
|
DBUS_CONFIGURE_ENABLE= dbus
|
|
|
|
DOAT_CONFIGURE_ENABLE= doat
|
|
|
|
FISHLIM_CONFIGURE_ENABLE= fishlim
|
2013-09-16 22:55:03 +02:00
|
|
|
NLS_CONFIGURE_ENABLE= nls
|
|
|
|
NLS_USES= gettext
|
2013-10-04 23:59:14 +02:00
|
|
|
NOTIFY_RUN_DEPENDS= notify-send:${PORTSDIR}/devel/libnotify
|
|
|
|
NOTIFY_CONFIGURE_ENABLE= libnotify
|
|
|
|
PERL_CONFIGURE_ENABLE= perl
|
|
|
|
PYTHON_CONFIGURE_ENABLE= python
|
2013-09-16 22:55:03 +02:00
|
|
|
SOCKS_LIB_DEPENDS= libsocks.so:${PORTSDIR}/net/dante
|
|
|
|
SOCKS_CONFIGURE_ENABLE= socks
|
|
|
|
TEXTFE_CONFIGURE_ENABLE= textfe
|
2014-06-03 21:54:22 +02:00
|
|
|
|
2013-06-02 15:23:41 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2014-04-12 17:21:22 +02:00
|
|
|
.if ${PORT_OPTIONS:MCA_BUNDLE}
|
|
|
|
CA_BUNDLE= "${LOCALBASE}/share/certs/ca-root-nss.crt"
|
|
|
|
.else
|
|
|
|
CA_BUNDLE= NULL
|
|
|
|
.endif
|
|
|
|
|
2013-06-02 15:23:41 +02:00
|
|
|
.if ${PORT_OPTIONS:MPYTHON}
|
2014-09-12 12:41:59 +02:00
|
|
|
USES+= python
|
2013-06-02 15:23:41 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MPERL}
|
2013-09-16 17:42:40 +02:00
|
|
|
USES+= perl5
|
2013-06-02 15:23:41 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MDBUS}
|
|
|
|
USE_GNOME+= gconf2
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2013-09-16 22:55:03 +02:00
|
|
|
@${REINPLACE_CMD} -e '/^appdata_DATA/s|hexchat.appdata.xml||' \
|
2014-09-12 12:41:59 +02:00
|
|
|
${WRKSRC}/data/misc/Makefile.in
|
2014-04-12 17:21:22 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|%%CA_BUNDLE%%|${CA_BUNDLE}|' \
|
|
|
|
${WRKSRC}/src/common/server.c
|
2013-06-02 15:23:41 +02:00
|
|
|
|
|
|
|
post-install:
|
2014-04-01 19:54:02 +02:00
|
|
|
${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
|
|
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/
|
2013-06-02 15:23:41 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2013-10-04 23:59:14 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2014-09-12 12:41:59 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.md ${STAGEDIR}${DOCSDIR}
|
2013-06-02 15:23:41 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|