ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/irc/xchat/Makefile
Revision: 926
Committed: Mon Feb 19 23:05:09 2007 UTC (17 years, 2 months ago) by laffer1
File size: 3414 byte(s)
Log Message:
this is not the latest version of xchat, but it does work.

File Contents

# User Rev Content
1 laffer1 926 # New ports collection makefile for: xchat2
2     # Date created: 17 Aug 2002
3     # Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
4     #
5     # $MidnightBSD$
6     # $FreeBSD: ports/irc/xchat/Makefile,v 1.122 2006/11/28 14:44:41 pav Exp $
7     # $MCom: ports-stable/irc/xchat/Makefile,v 1.1 2006/10/26 08:33:06 marcus Exp $
8     #
9    
10     PORTNAME= xchat
11     PORTVERSION= 2.6.8
12     PORTREVISION= 1
13     CATEGORIES= irc gnome ipv6
14     MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
15     http://xchat.org/files/source/2.6/
16     MASTER_SITE_SUBDIR= ${PORTNAME:S|2||}
17     DISTNAME= xchat-${PORTVERSION}
18    
19     MAINTAINER= ports@MidnightBSD.org
20     COMMENT= An X11 IRC client using the GTK+ 2 toolkit
21    
22     USE_BZIP2= yes
23     USE_GMAKE= yes
24     USE_GNOME= gnomehack gtk20
25     USE_GETTEXT= yes
26     GNU_CONFIGURE= yes
27     CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
28     LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
29     CONFIGURE_ARGS= --enable-nls \
30     --enable-ipv6
31    
32     CONFLICTS= xchat-1*
33    
34     .if defined(WITH_SOCKS)
35     BUILD_DEPENDS+= ${LOCALBASE}/lib/libsocks5.a:${PORTSDIR}/net/socks5
36     CONFIGURE_ARGS+= --enable-socks
37     .endif
38    
39     # openssl in now default in configure
40    
41     .if defined(WITH_PYTHON)
42     USE_PYTHON= yes
43     CONFIGURE_ARGS+= --enable-python
44     PLIST_SUB+= PYTHON=""
45     .else
46     CONFIGURE_ARGS+= --disable-python
47     PLIST_SUB+= PYTHON="@comment "
48     .endif
49    
50     .if defined(WITH_TCL)
51     LIB_DEPENDS+= tcl83.1:${PORTSDIR}/lang/tcl83
52     CONFIGURE_ARGS+=--enable-tcl=${LOCALBASE}/lib/tcl8.3
53     CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS} \
54     -I${LOCALBASE}/include/tcl8.3" \
55     LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS} \
56     -L${LOCALBASE}/lib/tcl8.3"
57     PLIST_SUB+= TCL=""
58     .else
59     CONFIGURE_ARGS+=--enable-tcl=no
60     PLIST_SUB+= TCL="@comment "
61     .endif
62    
63     .if !defined(WITHOUT_DBUS)
64     LIB_DEPENDS+= dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib
65     CONFIGURE_ARGS+=--enable-dbus
66     USE_GNOME+= gconf2
67     GCONF_SCHEMAS+= apps_xchat_url_handler.schemas
68     PLIST_SUB+= DBUS=""
69     .else
70     CONFIGURE_ARGS+=--disable-dbus
71     PLIST_SUB+= DBUS="@comment "
72     .endif
73    
74     .if !defined(WITHOUT_GTKSPELL)
75     LIB_DEPENDS+= gtkspell.0:${PORTSDIR}/textproc/gtkspell
76     CONFIGURE_ARGS+=--enable-spell=gtkspell
77     .else
78     CONFIGURE_ARGS+=--disable-spell
79     .endif
80    
81     .include <bsd.port.pre.mk>
82    
83     .if ${PERL_LEVEL} < 500600 || defined(WITHOUT_PERL)
84     CONFIGURE_ARGS+=--disable-perl
85     PLIST_SUB+= PERL="@comment "
86     .else
87     USE_PERL5= yes
88     CONFIGURE_ARGS+=--enable-perl
89     PLIST_SUB+= PERL=""
90     .endif
91    
92     pre-everything::
93     .if !defined(WITH_PYTHON) || !defined(WITH_SOCKS) || !defined(WITH_TCL) || !defined(WITHOUT_PERL) || !defined(WITHOUT_DBUS) || !defined(WITHOUT_GTKSPELL)
94     @${ECHO_MSG} "You may specify the following on the command line:"
95     @${ECHO_MSG} ""
96     .endif
97     .if !defined(WITH_PYTHON)
98     @${ECHO_MSG} "WITH_PYTHON=yes for Python support"
99     .endif
100     .if !defined(WITH_SOCKS)
101     @${ECHO_MSG} "WITH_SOCKS=yes for SOCKS5 proxy support"
102     .endif
103     .if !defined(WITH_TCL)
104     @${ECHO_MSG} "WITH_TCL=yes for tcl support"
105     .endif
106     .if !defined(WITHOUT_PERL)
107     @${ECHO_MSG} "WITHOUT_PERL=yes to disable Perl support"
108     .endif
109     .if !defined(WITHOUT_DBUS)
110     @${ECHO_MSG} "WITHOUT_DBUS=yes to disable dbus support"
111     .endif
112     .if !defined(WITHOUT_GTKSPELL)
113     @${ECHO_MSG} "WITHOUT_GTKSPELL=yes to disable spell check support"
114     .endif
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.1