ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/irc/xchat/Makefile
Revision: 15462
Committed: Tue Sep 17 03:15:41 2013 UTC (10 years, 7 months ago) by laffer1
File size: 2814 byte(s)
Log Message:
fixup some properties.

File Contents

# Content
1 # $MidnightBSD$
2
3 PORTNAME= xchat
4 PORTVERSION= 2.8.8
5 PORTREVISION= 1
6 CATEGORIES= irc gnome ipv6
7 MASTER_SITES= SF/${PORTNAME}/ \
8 http://xchat.org/files/source/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}/
9
10 MAINTAINER= ports@MidnightBSD.org
11 COMMENT= X11 IRC client using the GTK+ 2 toolkit
12
13 LICENSE= gpl2
14
15 CONFLICTS= xchat-1* xchat-systray-plugin-[0-9]*
16
17 USE_BZIP2= yes
18 USE_GMAKE= yes
19 USES= gettext
20 USE_GNOME= gnomehack gtk20
21 GNU_CONFIGURE= yes
22 CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
23 CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
24 CONFIGURE_ARGS= --enable-ipv6
25 WANT_PERL= yes
26
27 OPTIONS_DEFINE= DBUS NOTIFY PERL PYTHON SOCKS TCL
28 OPTIONS_DEFAULT=DBUS GTKSPELL PERL
29 OPTIONS_RADIO= SPELL
30 OPTIONS_RADIO_SPELL= GTKSPELL LIBSEXY
31 GTKSPELL_DESC= Spell check support via gtkspell
32 LIBSEXY_DESC= Spell check support via libsexy
33
34 .if defined(WITH_PYTHON)
35 .endif
36
37 .include <bsd.mport.options.mk>
38
39 .if ${PORT_OPTIONS:MDBUS}
40 LIB_DEPENDS+= dbus-glib-1:${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 ${PORT_OPTIONS:MGTKSPELL}
51 LIB_DEPENDS+= gtkspell:${PORTSDIR}/textproc/gtkspell
52 CONFIGURE_ARGS+=--enable-spell=gtkspell
53 .elif ${PORT_OPTIONS:MLIBSEXY}
54 LIB_DEPENDS+= sexy:${PORTSDIR}/x11-toolkits/libsexy
55 CONFIGURE_ARGS+=--enable-spell=libsexy
56 .else
57 CONFIGURE_ARGS+=--enable-spell=none
58 .endif
59
60 .if ${PORT_OPTIONS:MNOTIFY}
61 RUN_DEPENDS+= notify-send:${PORTSDIR}/devel/libnotify \
62 ${LOCALBASE}/libexec/notification-daemon:${PORTSDIR}/deskutils/notification-daemon
63 .endif
64
65 .if ${PORT_OPTIONS:MPERL}
66 USE_PERL5= yes
67 CONFIGURE_ARGS+=--enable-perl
68 PLIST_SUB+= PERL=""
69 .else
70 CONFIGURE_ARGS+=--disable-perl
71 PLIST_SUB+= PERL="@comment "
72 .endif
73
74 .if ${PORT_OPTIONS:MPYTHON}
75 USE_PYTHON= yes
76 CONFIGURE_ARGS+=--enable-python
77 PLIST_SUB+= PYTHON=""
78 .else
79 CONFIGURE_ARGS+=--disable-python
80 PLIST_SUB+= PYTHON="@comment "
81 .endif
82
83 .if ${PORT_OPTIONS:MSOCKS}
84 LIB_DEPENDS+= socks:${PORTSDIR}/net/dante
85 CONFIGURE_ARGS+=--enable-socks
86 .endif
87
88 .if ${PORT_OPTIONS:MTCL}
89 USE_TCL= 84+
90 CONFIGURE_ARGS+=--enable-tcl=${TCL_LIBDIR}
91 CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS} \
92 -L${TCL_LIBDIR}"
93 CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} \
94 -I${TCL_INCLUDEDIR}
95 PLIST_SUB+= TCL=""
96 .else
97 CONFIGURE_ARGS+=--enable-tcl=no
98 PLIST_SUB+= TCL="@comment "
99 .endif
100
101 post-patch:
102 @${REINPLACE_CMD} -E -e 's|PY_LIBS=.*|PY_LIBS="-L\$$PY_EXEC_PREFIX/lib/python\$$PY_VER/config -lpython\$$PY_VER ${PTHREAD_LIBS} -lutil"|' \
103 ${WRKSRC}/configure
104 @${REINPLACE_CMD} -e 's|glib/.*\.h>|glib.h>|g' \
105 ${WRKSRC}/src/common/*.[ch]
106
107 # Create plugins directory even when no plugins are installed
108 post-install:
109 @${MKDIR} ${PREFIX}/lib/xchat/plugins
110
111 .include <bsd.port.mk>

Properties

Name Value
svn:keywords MidnightBSD=%H