ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/irc/xchat/Makefile
Revision: 10634
Committed: Sat Jan 15 02:53:12 2011 UTC (13 years, 3 months ago) by laffer1
File size: 3414 byte(s)
Log Message:
update to 2.8.8.  Fix build  failure on magus.

File Contents

# Content
1 # $MidnightBSD: mports/irc/xchat/Makefile,v 1.13 2010/01/02 17:51:43 laffer1 Exp $
2
3 PORTNAME= xchat
4 PORTVERSION= 2.8.8
5 CATEGORIES= irc gnome ipv6
6 MASTER_SITES= SF/${PORTNAME} \
7 http://xchat.org/files/source/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}/
8
9 MAINTAINER= ports@MidnightBSD.org
10 COMMENT= An X11 IRC client using the GTK+ 2 toolkit
11 LICENSE= gpl2
12
13 CONFLICTS= xchat-1* xchat-systray-plugin-[0-9]*
14
15 LIB_DEPENDS+= gtkglext-x11-1.0.0:${PORTSDIR}/x11-toolkits/gtkglext
16
17 USE_BZIP2= yes
18 USE_GMAKE= yes
19 USE_GETTEXT= yes
20 USE_GNOME= gnomehack gtk20
21 GNU_CONFIGURE= yes
22 CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
23 LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
24 CONFIGURE_ARGS= --enable-ipv6
25 WANT_PERL= yes
26
27 OPTIONS= DBUS "Enable DBUS support" on \
28 GTKSPELL "Enable spell check support using gtkspell" on \
29 LIBSEXY "Enable spell check support using libsexy" off \
30 NOTIFY "Depend on libnotify for notifications" off \
31 PERL "Enable Perl support" on \
32 PYTHON "Enable Python support" off \
33 TCL "Enable TCL support" off \
34 SOCKS "Build with socks5 support" off
35
36 .include <bsd.mport.options.mk>
37
38 .if !defined(WITHOUT_DBUS)
39 LIB_DEPENDS+= dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib
40 CONFIGURE_ARGS+=--enable-dbus
41 USE_GNOME+= gconf2
42 GCONF_SCHEMAS+= apps_xchat_url_handler.schemas
43 PLIST_SUB+= DBUS=""
44 .else
45 CONFIGURE_ARGS+=--disable-dbus
46 PLIST_SUB+= DBUS="@comment "
47 .endif
48
49 .if defined(WITH_GTKSPELL)
50 .if defined(WITH_LIBSEXY)
51 BROKEN= You can select only one of GTKSPELL and LIBSEXY for spell check support
52 .endif
53 LIB_DEPENDS+= gtkspell.0:${PORTSDIR}/textproc/gtkspell
54 CONFIGURE_ARGS+=--enable-spell=gtkspell
55 .endif
56
57 .if defined(WITH_LIBSEXY)
58 .if defined(WITH_GTKSPELL)
59 BROKEN= You can select only one of GTKSPELL and LIBSEXY for spell check support
60 .endif
61 LIB_DEPENDS+= sexy.2:${PORTSDIR}/x11-toolkits/libsexy
62 CONFIGURE_ARGS+=--enable-spell=libsexy
63 .endif
64
65 .if !defined(WITH_GTKSPELL) && !defined(WITH_LIBSEXY)
66 CONFIGURE_ARGS+=--enable-spell=none
67 .endif
68
69 .if defined(WITH_NOTIFY)
70 RUN_DEPENDS+= notify-send:${PORTSDIR}/devel/libnotify \
71 ${LOCALBASE}/libexec/notification-daemon:${PORTSDIR}/deskutils/notification-daemon
72 .endif
73
74 .if defined(WITHOUT_PERL)
75 CONFIGURE_ARGS+=--disable-perl
76 PLIST_SUB+= PERL="@comment "
77 .else
78 USE_PERL5= yes
79 CONFIGURE_ARGS+=--enable-perl
80 PLIST_SUB+= PERL=""
81 .endif
82
83 .if defined(WITH_PYTHON)
84 EXTENSIONS+= python
85 USE_PYTHON= yes
86 CONFIGURE_ARGS+=--enable-python
87 PLIST_SUB+= PYTHON=""
88 .else
89 CONFIGURE_ARGS+=--disable-python
90 PLIST_SUB+= PYTHON="@comment "
91 .endif
92
93 .if defined(WITH_TCL)
94 EXTENSIONS+= tcl
95 LIB_DEPENDS+= tcl84.1:${PORTSDIR}/lang/tcl84
96 CONFIGURE_ARGS+=--enable-tcl=${LOCALBASE}/lib/tcl8.4
97 CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS} \
98 -I${LOCALBASE}/include/tcl8.4" \
99 LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS} \
100 -L${LOCALBASE}/lib/tcl8.4"
101 PLIST_SUB+= TCL=""
102 .else
103 CONFIGURE_ARGS+=--enable-tcl=no
104 PLIST_SUB+= TCL="@comment "
105 .endif
106
107 .if defined(WITH_SOCKS)
108 ONLY_FOR_ARCHS= i386
109 BUILD_DEPENDS+= ${LOCALBASE}/lib/libsocks5.a:${PORTSDIR}/net/socks5
110 CONFIGURE_ARGS+=--enable-socks
111 .endif
112
113
114 .include <bsd.port.pre.mk>
115
116 post-patch:
117 @${REINPLACE_CMD} -E -e 's|PY_LIBS=.*|PY_LIBS="-L\$$PY_EXEC_PREFIX/lib/python\$$PY_VER/config -lpython\$$PY_VER ${PTHREAD_LIBS} -lutil"|' \
118 ${WRKSRC}/configure
119
120 # Create plugins directory even when no plugins are installed
121 post-install:
122 @${MKDIR} ${PREFIX}/lib/xchat/plugins
123
124 .include <bsd.port.post.mk>

Properties

Name Value
cvs2svn:cvs-rev 1.14