summaryrefslogtreecommitdiff
path: root/chat/tkabber/Makefile
blob: 01a21b0d3e42bd3031893379c5cc8158f65c3fb4 (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.7 2012/08/21 23:49:19 marino Exp $
#

# TODO: gnupg support, ssl support, others

DISTNAME=	tkabber-0.11.1
PKGREVISION=	1
CATEGORIES=	chat
MASTER_SITES=	http://files.jabber.ru/tkabber/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://tkabber.jabber.ru/en/
COMMENT=	Free and Open Source TCL/TK jabber client

DEPENDS+=	tcllib-[0-9]*:../../devel/tcllib

USE_TOOLS+=	pax wish:run

EGDIR=		${PREFIX}/share/examples/tkabber
DATADIR=	${PREFIX}/share/tkabber
DOCDIR=		${PREFIX}/share/doc/tkabber

PKG_DESTDIR_SUPPORT=	user-destdir

AUTO_MKDIRS=		yes

# XXX this is also in the tkabber's Makefile
SUBDIRS=	emoticons \
		ifacetk	  \
		jabberlib \
		tclxml    \
		mclistbox \
		msgs	  \
		pixmaps	  \
		plugins	  \
		sounds	  \
		trans

EXTRA_FILES=	AUTHORS README COPYING INSTALL ChangeLog

do-build:
	    # TODO This must be a CLASS
	    ${SED} -e "s,@WISH@,${WISH}," \
		    -e "s,@DATADIR@,${DATADIR}," ${FILESDIR}/tkabber.sh \
		    > ${WRKSRC}/tkabber

do-install:
	   ${INSTALL_DATA} ${WRKSRC}/*.tcl ${DESTDIR}${DATADIR} #${WRKSRC}/*.xrdb ${DATADIR}
	   cd ${WRKSRC} && ${INSTALL_DATA} ${EXTRA_FILES} ${DESTDIR}${DOCDIR}
	   cd ${WRKSRC}/examples && pax -rw -pm . ${DESTDIR}${EGDIR}
.for i in ${SUBDIRS}
	   cd ${WRKSRC} && pax -rw -pm ${i} ${DESTDIR}${DATADIR}
.endfor
	   ${INSTALL_SCRIPT} ${WRKSRC}/tkabber ${DESTDIR}${PREFIX}/bin

.include "../../x11/tk-BWidget/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"