Lines 8-13
Link Here
|
8 |
|
8 |
|
9 |
PORTNAME= xchat |
9 |
PORTNAME= xchat |
10 |
PORTVERSION= 2.8.4 |
10 |
PORTVERSION= 2.8.4 |
|
|
11 |
PORTREVISION= 1 |
11 |
CATEGORIES= irc gnome ipv6 |
12 |
CATEGORIES= irc gnome ipv6 |
12 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ |
13 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ |
13 |
http://xchat.org/files/source/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}/ |
14 |
http://xchat.org/files/source/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}/ |
Lines 16-61
Link Here
|
16 |
MAINTAINER= gnome@FreeBSD.org |
17 |
MAINTAINER= gnome@FreeBSD.org |
17 |
COMMENT= An X11 IRC client using the GTK+ 2 toolkit |
18 |
COMMENT= An X11 IRC client using the GTK+ 2 toolkit |
18 |
|
19 |
|
|
|
20 |
CONFLICTS= xchat-1* xchat-systray-plugin-[0-9]* |
21 |
|
19 |
USE_BZIP2= yes |
22 |
USE_BZIP2= yes |
20 |
USE_GMAKE= yes |
23 |
USE_GMAKE= yes |
21 |
USE_GNOME= gnomehack gtk20 |
24 |
USE_GNOME= gnomehack gtk20 |
22 |
USE_GETTEXT= yes |
|
|
23 |
GNU_CONFIGURE= yes |
25 |
GNU_CONFIGURE= yes |
24 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \ |
26 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \ |
25 |
LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" |
27 |
LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" |
26 |
CONFIGURE_ARGS= --enable-nls \ |
28 |
CONFIGURE_ARGS= --enable-ipv6 |
27 |
--enable-ipv6 |
|
|
28 |
|
29 |
|
29 |
CONFLICTS= xchat-1* xchat-systray-plugin-[0-9]* |
30 |
OPTIONS= DBUS "Enable DBUS support" on \ |
30 |
|
31 |
GTKSPELL "Enable spell check support using gtkspell" off \ |
31 |
.if defined(WITH_SOCKS) |
32 |
LIBSEXY "Enable spell check support using libsexy" off \ |
32 |
BUILD_DEPENDS+= ${LOCALBASE}/lib/libsocks5.a:${PORTSDIR}/net/socks5 |
33 |
NOTIFY "Depend on libnotify for notifications" off \ |
33 |
CONFIGURE_ARGS+= --enable-socks |
34 |
NLS "Enable National Language Support" on \ |
34 |
.endif |
35 |
PERL "Enable Perl support" on \ |
35 |
|
36 |
PYTHON "Enable Python support" off \ |
36 |
# openssl in now default in configure |
37 |
TCL "Enable TCL support" off \ |
37 |
|
38 |
SOCKS "Build with socks5 support" off |
38 |
.if defined(WITH_PYTHON) |
|
|
39 |
USE_PYTHON= yes |
40 |
CONFIGURE_ARGS+= --enable-python |
41 |
PLIST_SUB+= PYTHON="" |
42 |
.else |
43 |
CONFIGURE_ARGS+= --disable-python |
44 |
PLIST_SUB+= PYTHON="@comment " |
45 |
.endif |
46 |
|
39 |
|
47 |
.if defined(WITH_TCL) |
40 |
.include <bsd.port.pre.mk> |
48 |
LIB_DEPENDS+= tcl83.1:${PORTSDIR}/lang/tcl83 |
|
|
49 |
CONFIGURE_ARGS+=--enable-tcl=${LOCALBASE}/lib/tcl8.3 |
50 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS} \ |
51 |
-I${LOCALBASE}/include/tcl8.3" \ |
52 |
LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS} \ |
53 |
-L${LOCALBASE}/lib/tcl8.3" |
54 |
PLIST_SUB+= TCL="" |
55 |
.else |
56 |
CONFIGURE_ARGS+=--enable-tcl=no |
57 |
PLIST_SUB+= TCL="@comment " |
58 |
.endif |
59 |
|
41 |
|
60 |
.if !defined(WITHOUT_DBUS) |
42 |
.if !defined(WITHOUT_DBUS) |
61 |
LIB_DEPENDS+= dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib |
43 |
LIB_DEPENDS+= dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib |
Lines 68-83
Link Here
|
68 |
PLIST_SUB+= DBUS="@comment " |
50 |
PLIST_SUB+= DBUS="@comment " |
69 |
.endif |
51 |
.endif |
70 |
|
52 |
|
71 |
.if !defined(WITHOUT_GTKSPELL) |
53 |
.if defined(WITH_GTKSPELL) |
|
|
54 |
.if defined(WITH_LIBSEXY) |
55 |
BROKEN= You can select only one of GTKSPELL and LIBSEXY for spell check support |
56 |
.endif |
72 |
LIB_DEPENDS+= gtkspell.0:${PORTSDIR}/textproc/gtkspell |
57 |
LIB_DEPENDS+= gtkspell.0:${PORTSDIR}/textproc/gtkspell |
73 |
CONFIGURE_ARGS+=--enable-spell=gtkspell |
58 |
CONFIGURE_ARGS+=--enable-spell=gtkspell |
74 |
.else |
|
|
75 |
CONFIGURE_ARGS+=--disable-spell |
76 |
.endif |
59 |
.endif |
77 |
|
60 |
|
78 |
.include <bsd.port.pre.mk> |
61 |
.if defined(WITH_LIBSEXY) |
|
|
62 |
.if defined(WITH_GTKSPELL) |
63 |
BROKEN= You can select only one of GTKSPELL and LIBSEXY for spell check support |
64 |
.endif |
65 |
LIB_DEPENDS+= sexy.2:${PORTSDIR}/x11-toolkits/libsexy |
66 |
CONFIGURE_ARGS+=--enable-spell=libsexy |
67 |
.endif |
68 |
|
69 |
.if !defined(WITH_GTKSPELL) && !defined(WITH_LIBSEXY) |
70 |
CONFIGURE_ARGS+=--enable-spell=none |
71 |
.endif |
79 |
|
72 |
|
80 |
.if ${PERL_LEVEL} < 500600 || defined(WITHOUT_PERL) |
73 |
.if defined(WITH_NOTIFY) |
|
|
74 |
RUN_DEPENDS+= notify-send:${PORTSDIR}/devel/libnotify \ |
75 |
${LOCALBASE}/libexec/notification-daemon:${PORTSDIR}/deskutils/notification-daemon |
76 |
.endif |
77 |
|
78 |
.if !defined(WITHOUT_NLS) |
79 |
USE_GETTEXT= yes |
80 |
CONFIGURE_ARGS+=--enable-nls |
81 |
PLIST_SUB+= NLS="" |
82 |
.else |
83 |
CONFIGURE_ARGS+=--disable-nls |
84 |
PLIST_SUB+= NLS="@comment " |
85 |
.endif |
86 |
|
87 |
.if defined(WITHOUT_PERL) |
81 |
CONFIGURE_ARGS+=--disable-perl |
88 |
CONFIGURE_ARGS+=--disable-perl |
82 |
PLIST_SUB+= PERL="@comment " |
89 |
PLIST_SUB+= PERL="@comment " |
83 |
.else |
90 |
.else |
Lines 86-113
Link Here
|
86 |
PLIST_SUB+= PERL="" |
93 |
PLIST_SUB+= PERL="" |
87 |
.endif |
94 |
.endif |
88 |
|
95 |
|
89 |
pre-everything:: |
96 |
.if defined(WITH_PYTHON) |
90 |
.if !defined(WITH_PYTHON) || !defined(WITH_SOCKS) || !defined(WITH_TCL) || !defined(WITHOUT_PERL) || !defined(WITHOUT_DBUS) || !defined(WITHOUT_GTKSPELL) |
97 |
USE_PYTHON= yes |
91 |
@${ECHO_MSG} "You may specify the following on the command line:" |
98 |
.include "${PORTSDIR}/Mk/bsd.python.mk" |
92 |
@${ECHO_MSG} "" |
99 |
CONFIGURE_ARGS+=--enable-python |
93 |
.endif |
100 |
PLIST_SUB+= PYTHON="" |
94 |
.if !defined(WITH_PYTHON) |
101 |
.else |
95 |
@${ECHO_MSG} "WITH_PYTHON=yes for Python support" |
102 |
CONFIGURE_ARGS+=--disable-python |
96 |
.endif |
103 |
PLIST_SUB+= PYTHON="@comment " |
97 |
.if !defined(WITH_SOCKS) |
|
|
98 |
@${ECHO_MSG} "WITH_SOCKS=yes for SOCKS5 proxy support" |
99 |
.endif |
100 |
.if !defined(WITH_TCL) |
101 |
@${ECHO_MSG} "WITH_TCL=yes for tcl support" |
102 |
.endif |
103 |
.if !defined(WITHOUT_PERL) |
104 |
@${ECHO_MSG} "WITHOUT_PERL=yes to disable Perl support" |
105 |
.endif |
104 |
.endif |
106 |
.if !defined(WITHOUT_DBUS) |
105 |
|
107 |
@${ECHO_MSG} "WITHOUT_DBUS=yes to disable dbus support" |
106 |
.if defined(WITH_TCL) |
|
|
107 |
LIB_DEPENDS+= tcl84.1:${PORTSDIR}/lang/tcl84 |
108 |
CONFIGURE_ARGS+=--enable-tcl=${LOCALBASE}/lib/tcl8.4 |
109 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS} \ |
110 |
-I${LOCALBASE}/include/tcl8.4" \ |
111 |
LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS} \ |
112 |
-L${LOCALBASE}/lib/tcl8.4" |
113 |
PLIST_SUB+= TCL="" |
114 |
.else |
115 |
CONFIGURE_ARGS+=--enable-tcl=no |
116 |
PLIST_SUB+= TCL="@comment " |
108 |
.endif |
117 |
.endif |
109 |
.if !defined(WITHOUT_GTKSPELL) |
118 |
|
110 |
@${ECHO_MSG} "WITHOUT_GTKSPELL=yes to disable spell check support" |
119 |
.if defined(WITH_SOCKS) |
|
|
120 |
BUILD_DEPENDS+= ${LOCALBASE}/lib/libsocks5.a:${PORTSDIR}/net/socks5 |
121 |
CONFIGURE_ARGS+=--enable-socks |
111 |
.endif |
122 |
.endif |
112 |
|
123 |
|
113 |
post-patch: |
124 |
post-patch: |