pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/chat/tkabber Support PKG_DESTDIR_SUPPORT=user-destdir
details: https://anonhg.NetBSD.org/pkgsrc/rev/87f86635fc96
branches: trunk
changeset: 568447:87f86635fc96
user: abs <abs%pkgsrc.org@localhost>
date: Sun Dec 13 16:03:52 2009 +0000
description:
Support PKG_DESTDIR_SUPPORT=user-destdir
>From Aleksey Cheusov, slighted adjusted by me
diffstat:
chat/tkabber/Makefile | 71 ++++++++++++++++++++++++++------------------------
1 files changed, 37 insertions(+), 34 deletions(-)
diffs (93 lines):
diff -r 17da388c4d33 -r 87f86635fc96 chat/tkabber/Makefile
--- a/chat/tkabber/Makefile Sun Dec 13 13:30:17 2009 +0000
+++ b/chat/tkabber/Makefile Sun Dec 13 16:03:52 2009 +0000
@@ -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@localhost
-HOMEPAGE= http://tkabber.jabber.ru/en/
-COMMENT= Free and Open Source TCL/TK jabber client
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+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
+SUBDIRS= emoticons \
+ ifacetk \
+ jabberlib-tclxml \
+ mclistbox \
+ msgs \
+ pixmaps \
+ plugins \
+ sounds \
+ trans
-EXTRA_FILES= AUTHORS README COPYING INSTALL ChangeLog
+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"
Home |
Main Index |
Thread Index |
Old Index