summaryrefslogtreecommitdiff
path: root/finance
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-03 19:21:37 +0000
committerjlam <jlam@pkgsrc.org>2008-03-03 19:21:37 +0000
commit06d9c7dce41f5c7499b62388c5645696eb42c1a4 (patch)
treec5e0c30c0b353fd2092305665ed106c2ef4ca346 /finance
parentd21f8cb7ef167c68991b38b87d2a2d12b1189509 (diff)
downloadpkgsrc-06d9c7dce41f5c7499b62388c5645696eb42c1a4.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'finance')
-rw-r--r--finance/gkrellm-stock/Makefile9
-rw-r--r--finance/tclticker/Makefile11
2 files changed, 12 insertions, 8 deletions
diff --git a/finance/gkrellm-stock/Makefile b/finance/gkrellm-stock/Makefile
index 0a037220af8..d9ada3b0971 100644
--- a/finance/gkrellm-stock/Makefile
+++ b/finance/gkrellm-stock/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.24 2008/01/18 05:06:33 tnn Exp $
+# $NetBSD: Makefile,v 1.25 2008/03/03 19:31:20 jlam Exp $
#
DISTNAME= gkrellstock-0.5.1
@@ -13,6 +13,8 @@ COMMENT= GKrellM2 stock ticker plugin
DEPENDS+= p5-Finance-Quote>=1.08:../../finance/p5-Finance-Quote
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_TOOLS+= perl:run pkg-config
WRKSRC= ${WRKDIR}/gkrellStock-0.5.1
BUILD_TARGET= gkrellstock.so
@@ -20,8 +22,9 @@ REPLACE_PERL= ${WRKSRC}/GetQuote2
INSTALLATION_DIRS= bin lib/gkrellm2/plugins
do-install:
- ${INSTALL_DATA} ${WRKSRC}/gkrellstock.so ${PREFIX}/lib/gkrellm2/plugins
- ${INSTALL_SCRIPT} ${WRKSRC}/GetQuote2 ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/GetQuote2 ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/gkrellstock.so \
+ ${DESTDIR}${PREFIX}/lib/gkrellm2/plugins
.include "../../sysutils/gkrellm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/finance/tclticker/Makefile b/finance/tclticker/Makefile
index 0865b285444..454b34d3b06 100644
--- a/finance/tclticker/Makefile
+++ b/finance/tclticker/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2006/03/10 23:53:49 rillig Exp $
+# $NetBSD: Makefile,v 1.14 2008/03/03 19:31:21 jlam Exp $
#
DISTNAME= tclticker-1.1
@@ -12,6 +12,7 @@ COMMENT= Stock-quote ticker tape application
DEPENDS+= tk>=8.3.2:../../x11/tk
PKG_INSTALLATION_TYPES= overwrite pkgviews
+PKG_DESTDIR_SUPPORT= user-destdir
NO_CONFIGURE= yes
NO_BUILD= yes
@@ -25,9 +26,9 @@ SUBST_SED.paths= -e 's|@PREFIX@|${PREFIX}|g'
INSTALLATION_DIRS= bin
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC:Q}/tclticker ${PREFIX:Q}/bin
- ${INSTALL_SCRIPT} ${WRKSRC:Q}/mailquote ${PREFIX:Q}/bin
- ${INSTALL_DATA_DIR} ${PREFIX:Q}/share/tclticker
- cd ${WRKSRC:Q}/lib && ${PAX} -rw . ${PREFIX:Q}/share/tclticker
+ ${INSTALL_SCRIPT} ${WRKSRC:Q}/tclticker ${DESTDIR}${PREFIX:Q}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC:Q}/mailquote ${DESTDIR}${PREFIX:Q}/bin
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX:Q}/share/tclticker
+ cd ${WRKSRC:Q}/lib && ${PAX} -rw . ${DESTDIR}${PREFIX:Q}/share/tclticker
.include "../../mk/bsd.pkg.mk"