diff options
author | obache <obache@pkgsrc.org> | 2008-01-04 05:11:32 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2008-01-04 05:11:32 +0000 |
commit | 27c5c0155f83b1907fd8af33529ce67ac45c824a (patch) | |
tree | 4e4945b8b977339219c406383a855e3438e9efc3 | |
parent | 46c912518401a83e8738aaf44e193e4af362e1f7 (diff) | |
download | pkgsrc-27c5c0155f83b1907fd8af33529ce67ac45c824a.tar.gz |
Add DESTDIR support.
-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} "" |