ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/irc/xchat/Makefile
Revision: 17477
Committed: Wed Sep 24 03:23:21 2014 UTC (9 years, 7 months ago) by laffer1
File size: 2682 byte(s)
Log Message:
modernize xchat

File Contents

# User Rev Content
1 laffer1 15462 # $MidnightBSD$
2 laffer1 926
3     PORTNAME= xchat
4 laffer1 10634 PORTVERSION= 2.8.8
5 laffer1 17477 PORTREVISION= 2
6 laffer1 926 CATEGORIES= irc gnome ipv6
7 laffer1 13253 MASTER_SITES= SF/${PORTNAME}/ \
8 ctriv 2503 http://xchat.org/files/source/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}/
9 laffer1 926
10 ctriv 2513 MAINTAINER= ports@MidnightBSD.org
11 laffer1 15212 COMMENT= X11 IRC client using the GTK+ 2 toolkit
12    
13 ctriv 2503 LICENSE= gpl2
14 laffer1 17477 LICENSE_FILE= ${WRKSRC}/COPYING
15 laffer1 926
16 ctriv 2503 CONFLICTS= xchat-1* xchat-systray-plugin-[0-9]*
17 ctriv 1725
18 laffer1 17477 USES= gettext gmake libtool pathfix pkgconfig tar:bzip2
19     USE_GNOME= gtk20
20 laffer1 926 GNU_CONFIGURE= yes
21 laffer1 17477 CPPFLAGS+= -I${LOCALBASE}/include
22     LIBS+= -L${LOCALBASE}/lib
23 ctriv 2503 CONFIGURE_ARGS= --enable-ipv6
24 laffer1 17477 INSTALL_TARGET= install-strip
25 laffer1 926
26 laffer1 15212 OPTIONS_DEFINE= DBUS NOTIFY PERL PYTHON SOCKS TCL
27     OPTIONS_DEFAULT=DBUS GTKSPELL PERL
28     OPTIONS_RADIO= SPELL
29     OPTIONS_RADIO_SPELL= GTKSPELL LIBSEXY
30     GTKSPELL_DESC= Spell check support via gtkspell
31     LIBSEXY_DESC= Spell check support via libsexy
32 laffer1 926
33 laffer1 6880 .include <bsd.mport.options.mk>
34 laffer1 926
35 laffer1 15212 .if ${PORT_OPTIONS:MDBUS}
36 laffer1 17477 LIB_DEPENDS+= libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib
37 laffer1 926 CONFIGURE_ARGS+=--enable-dbus
38     USE_GNOME+= gconf2
39     GCONF_SCHEMAS+= apps_xchat_url_handler.schemas
40     PLIST_SUB+= DBUS=""
41     .else
42     CONFIGURE_ARGS+=--disable-dbus
43     PLIST_SUB+= DBUS="@comment "
44     .endif
45    
46 laffer1 15212 .if ${PORT_OPTIONS:MGTKSPELL}
47 laffer1 17477 LIB_DEPENDS+= libgtkspell.so:${PORTSDIR}/textproc/gtkspell
48 laffer1 926 CONFIGURE_ARGS+=--enable-spell=gtkspell
49 laffer1 15212 .elif ${PORT_OPTIONS:MLIBSEXY}
50 laffer1 17477 LIB_DEPENDS+= libsexy.so:${PORTSDIR}/x11-toolkits/libsexy
51 ctriv 2503 CONFIGURE_ARGS+=--enable-spell=libsexy
52 laffer1 15212 .else
53 ctriv 2503 CONFIGURE_ARGS+=--enable-spell=none
54     .endif
55    
56 laffer1 15212 .if ${PORT_OPTIONS:MNOTIFY}
57 ctriv 2503 RUN_DEPENDS+= notify-send:${PORTSDIR}/devel/libnotify \
58     ${LOCALBASE}/libexec/notification-daemon:${PORTSDIR}/deskutils/notification-daemon
59     .endif
60    
61 laffer1 15212 .if ${PORT_OPTIONS:MPERL}
62 laffer1 926 USE_PERL5= yes
63     CONFIGURE_ARGS+=--enable-perl
64     PLIST_SUB+= PERL=""
65 laffer1 15212 .else
66     CONFIGURE_ARGS+=--disable-perl
67     PLIST_SUB+= PERL="@comment "
68 laffer1 926 .endif
69    
70 laffer1 15212 .if ${PORT_OPTIONS:MPYTHON}
71 ctriv 2503 USE_PYTHON= yes
72     CONFIGURE_ARGS+=--enable-python
73     PLIST_SUB+= PYTHON=""
74     .else
75     CONFIGURE_ARGS+=--disable-python
76     PLIST_SUB+= PYTHON="@comment "
77     .endif
78    
79 laffer1 15212 .if ${PORT_OPTIONS:MSOCKS}
80 laffer1 17477 LIB_DEPENDS+= libsocks.so:${PORTSDIR}/net/dante
81 laffer1 15212 CONFIGURE_ARGS+=--enable-socks
82     .endif
83    
84     .if ${PORT_OPTIONS:MTCL}
85 laffer1 17477 USES+= tcl
86 laffer1 15212 CONFIGURE_ARGS+=--enable-tcl=${TCL_LIBDIR}
87 laffer1 17477 CPPFLAGS+= -I${TCL_INCLUDEDIR}
88     LIBS+= -L${TCL_LIBDIR}
89 ctriv 2503 PLIST_SUB+= TCL=""
90     .else
91     CONFIGURE_ARGS+=--enable-tcl=no
92     PLIST_SUB+= TCL="@comment "
93     .endif
94    
95 laffer1 926 post-patch:
96 laffer1 15212 @${REINPLACE_CMD} -e 's|glib/.*\.h>|glib.h>|g' \
97     ${WRKSRC}/src/common/*.[ch]
98 laffer1 17477 @${REINPLACE_CMD} '/_LDADD =/s/$$/ -lgmodule-2.0/' \
99     ${WRKSRC}/src/fe-gtk/Makefile.in \
100     ${WRKSRC}/src/fe-text/Makefile.in
101 laffer1 926
102 ctriv 2503 # Create plugins directory even when no plugins are installed
103     post-install:
104 laffer1 17477 @${MKDIR} ${STAGEDIR}${PREFIX}/lib/xchat/plugins
105 ctriv 2503
106 laffer1 15212 .include <bsd.port.mk>

Properties

Name Value
svn:keywords MidnightBSD=%H