blob: 10e2eb8721da8a863ce69b308265e55d96f42738 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# $NetBSD: Makefile,v 1.109 2018/12/14 21:35:43 rillig Exp $
.include "Makefile.common"
PKGNAME= ${DISTNAME}
PKGREVISION= 36
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= X11 (X Window System) IRC client, using the GTK2 toolkit
CONFLICTS= xchat-gnome-[0-9]*
USE_TOOLS+= msgfmt
USE_PKGLOCALEDIR= YES
GCONF_SCHEMAS= apps_xchat_url_handler.schemas
CONFIGURE_ARGS+= --enable-tcl=no
CONFIGURE_ARGS+= --disable-perl
CONFIGURE_ARGS+= --disable-python
LDFLAGS.IRIX+= -lX11
.include "../../mk/bsd.prefs.mk"
.include "options.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
BUILDLINK_API_DEPENDS.gtk2+= gtk2+>=2.20.0
.include "../../x11/gtk2/buildlink3.mk"
.if ${OPSYS} == "Darwin"
. if empty(PKG_BUILD_OPTIONS.gtk2:Mquartz)
CONFIGURE_ARGS+= --enable-xft
LDFLAGS.Darwin+= -L${PREFIX}/lib -lX11
. else
CONFIGURE_ARGS+= --disable-xlib
. endif
.else
CONFIGURE_ARGS+= --enable-xft
.endif
INSTALLATION_DIRS+= share/doc/xchat lib/xchat/plugins include/xchat
post-install:
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/xchat/
${INSTALL_DATA} ${WRKSRC}/faq.html ${DESTDIR}${PREFIX}/share/doc/xchat/
${INSTALL_DATA} ${WRKSRC}/plugins/plugin20.html \
${DESTDIR}${PREFIX}/share/doc/xchat/
${INSTALL_DATA} ${WRKSRC}/plugins/xchat-plugin.h \
${DESTDIR}${PREFIX}/include/xchat/
.if !empty(PKG_OPTIONS:Mgnome)
${INSTALL_DATA_DIR} ${DESTDIR}${GCONF_SCHEMAS_DIR}
cd ${WRKSRC}/src/common/dbus \
&& ${INSTALL_DATA} ${GCONF_SCHEMAS} ${DESTDIR}${GCONF_SCHEMAS_DIR}/
.endif
.include "../../mk/bsd.pkg.mk"
|