ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/irc/xchat/Makefile
Revision: 8314
Committed: Mon Aug 24 19:22:44 2009 UTC (14 years, 8 months ago) by laffer1
File size: 3421 byte(s)
Log Message:
fix distinfo, mark socks support i386 only

File Contents

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

Properties

Name Value
cvs2svn:cvs-rev 1.11