diff options
author | obache <obache> | 2008-01-04 05:11:32 +0000 |
---|---|---|
committer | obache <obache> | 2008-01-04 05:11:32 +0000 |
commit | d9bfe034e6f97dd99a56314bdc16fb85b1ec7777 (patch) | |
tree | 4e4945b8b977339219c406383a855e3438e9efc3 /misc/zorro | |
parent | 7249ae25638c68b5d67b981a52009754ce06fc86 (diff) | |
download | pkgsrc-d9bfe034e6f97dd99a56314bdc16fb85b1ec7777.tar.gz |
Add DESTDIR support.
Diffstat (limited to 'misc/zorro')
-rw-r--r-- | misc/zorro/Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/misc/zorro/Makefile b/misc/zorro/Makefile index b3912f9e3a7..8b1e9efea79 100644 --- a/misc/zorro/Makefile +++ b/misc/zorro/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.24 2008/01/04 05:07:43 obache Exp $ +# $NetBSD: Makefile,v 1.25 2008/01/04 05:11:32 obache Exp $ DISTNAME= zorro-1.1p8 PKGNAME= zorro-1.1.8 @@ -15,16 +15,17 @@ DEPENDS+= tk>=8.3.2:../../x11/tk NO_BUILD= yes -INSTALLATION_DIRS= bin +PKG_DESTDIR_SUPPORT= user-destdir + +INSTALLATION_DIRS= bin share/zorro post-patch: ( cd ${WRKSRC} ; ${SED} 's|@PREFIX@|'${PREFIX}'|g' \ <zorro >zorro.BAK ; ${MV} zorro.BAK zorro ) do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/zorro ${PREFIX}/bin/zorro - ${INSTALL_DATA_DIR} ${PREFIX}/share/zorro - ${INSTALL_DATA} ${WRKSRC}/DOTzorrorc ${PREFIX}/share/zorro + ${INSTALL_SCRIPT} ${WRKSRC}/zorro ${DESTDIR}${PREFIX}/bin/zorro + ${INSTALL_DATA} ${WRKSRC}/DOTzorrorc ${DESTDIR}${PREFIX}/share/zorro @${ECHO} "" @${ECHO} "Take a look at ${PREFIX}/share/zorro/DOTzorrorc" @${ECHO} "" |