blob: 87da7f362c3191ecd4369663ad76100303bb6f56 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
# $FreeBSD$
PORTNAME= hexchat
PORTVERSION= 2.12.4
DISTVERSIONPREFIX= v
CATEGORIES= irc gnome ipv6
MAINTAINER= pkubaj@anongoth.pl
COMMENT= IRC chat program with GTK and Text Frontend
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= devel/autoconf-archive>0:devel/autoconf-archive
LIB_DEPENDS= libproxy.so:net/libproxy \
libfontconfig.so:x11-fonts/fontconfig \
libdbus-1.so:devel/dbus \
libfreetype.so:print/freetype2
USES= autoreconf gmake desktop-file-utils libtool pkgconfig ssl
USE_GNOME= cairo gtk20 intltool libxml2
USE_XORG= x11
USE_GITHUB= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-openssl --enable-gtkfe --disable-sysinfo \
--with-pkgconfigdir=${LOCALBASE}/libdata/pkgconfig \
LUA=lua-${LUA_VER}
INSTALLS_ICONS= yes
INSTALL_TARGET= install-strip
MAKE_ARGS= OBJC="${CC}"
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib -lX11
SUB_FILES= pkg-message
PORTDOCS= *
OPTIONS_DEFINE= CA_BUNDLE CANBERRA DBUS DOCS FISHLIM LUA NLS NOTIFY \
PERL PYTHON SOCKS TEXTFE
OPTIONS_DEFAULT= CA_BUNDLE CANBERRA DBUS NOTIFY PERL PYTHON
OPTIONS_SUB= yes
CA_BUNDLE_DESC= Include CA bundle for SSL verification
CANBERRA_DESC= Audio support via Libcanberra
FISHLIM_DESC= FiSHLiM plugin
TEXTFE_DESC= Text frontend
SOCKS_DESC= SOCKS proxy support, FORBIDDEN in FreeBSD 10+
CA_BUNDLE_RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss
CANBERRA_LIB_DEPENDS= libcanberra.so:audio/libcanberra
CANBERRA_CONFIGURE_ENABLE=libcanberra
DBUS_LIB_DEPENDS= libdbus-glib-1.so:devel/dbus-glib
DBUS_CONFIGURE_ENABLE= dbus
DBUS_USE= GNOME=gconf2
FISHLIM_CONFIGURE_ENABLE=fishlim
LUA_CONFIGURE_ENABLE= lua
LUA_USES= lua
LUA_USE= GCC=any
NLS_CONFIGURE_ENABLE= nls
NLS_USES= gettext
NLS_USES_OFF= gettext-tools # doesn't build otherwise
NOTIFY_RUN_DEPENDS= notify-send:devel/libnotify
NOTIFY_CONFIGURE_ENABLE=libnotify
PERL_CONFIGURE_ENABLE= perl
PERL_USES= perl5
PYTHON_CONFIGURE_ENABLE=python
PYTHON_USES= python
SOCKS_LIB_DEPENDS= libsocks.so:net/dante
SOCKS_CONFIGURE_ENABLE= socks
TEXTFE_CONFIGURE_ENABLE=textfe
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCA_BUNDLE}
CA_BUNDLE= "${LOCALBASE}/share/certs/ca-root-nss.crt"
.else
CA_BUNDLE= NULL
.endif
post-patch:
@${REINPLACE_CMD} -e 's|%%CA_BUNDLE%%|${CA_BUNDLE}|' \
${WRKSRC}/src/common/server.c
post-install:
${LN} -sf ../share/icons/hicolor/48x48/apps/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/*.md ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|