summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chat/tkabber/Makefile71
1 files changed, 37 insertions, 34 deletions
diff --git a/chat/tkabber/Makefile b/chat/tkabber/Makefile
index e0a3395136e..96ff64621a8 100644
--- a/chat/tkabber/Makefile
+++ b/chat/tkabber/Makefile
@@ -1,52 +1,55 @@
-# $NetBSD: Makefile,v 1.3 2009/09/12 20:51:06 plunky Exp $
+# $NetBSD: Makefile,v 1.4 2009/12/13 16:03:52 abs Exp $
#
# TODO: gnupg support, ssl support, others
-DISTNAME= tkabber-0.10.0
-CATEGORIES= chat
-MASTER_SITES= http://files.jabber.ru/tkabber/
+DISTNAME= tkabber-0.10.0
+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
+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
+DEPENDS+= tcllib-[0-9]*:../../devel/tcllib
-NO_BUILD= yes
-USE_TOOLS+= pax wish:run
+USE_TOOLS+= pax wish:run
-EGDIR= ${PREFIX}/share/examples/tkabber
-DATADIR= ${PREFIX}/share/tkabber
-DOCDIR= ${PREFIX}/share/doc/tkabber
+EGDIR= ${PREFIX}/share/examples/tkabber
+DATADIR= ${PREFIX}/share/tkabber
+DOCDIR= ${PREFIX}/share/doc/tkabber
-INSTALLATION_DIRS+= ${EGDIR} ${DATADIR} ${DOCDIR}
+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
+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 ${DATADIR} #${WRKSRC}/*.xrdb ${DATADIR}
- cd ${WRKSRC} && ${INSTALL_DATA} ${EXTRA_FILES} ${DOCDIR}
- cd ${WRKSRC}/examples && pax -rw -pm . ${EGDIR}
+ ${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} ${DATADIR}
+ cd ${WRKSRC} && pax -rw -pm ${i} ${DESTDIR}${DATADIR}
.endfor
- # TODO This must be a CLASS
- ${SED} -e "s,@WISH@,${WISH}," \
- -e "s,@DATADIR@,${DATADIR}," ${FILESDIR}/tkabber.sh \
- > ${WRKSRC}/tkabber
- ${INSTALL_SCRIPT} ${WRKSRC}/tkabber ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/tkabber ${DESTDIR}${PREFIX}/bin
.include "../../x11/tk-BWidget/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"