diff options
author | joerg <joerg@pkgsrc.org> | 2009-02-16 18:39:00 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2009-02-16 18:39:00 +0000 |
commit | f557ddc91e41118202c48d570448656d9dbe0c32 (patch) | |
tree | 1f87238c671d525f86898189a0f92463ce02ac60 /misc/pdmenu | |
parent | fee7c16e0e0ef8ee886c817f34b5e1ed3ef9714a (diff) | |
download | pkgsrc-f557ddc91e41118202c48d570448656d9dbe0c32.tar.gz |
DESTDIR support
Diffstat (limited to 'misc/pdmenu')
-rw-r--r-- | misc/pdmenu/Makefile | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/misc/pdmenu/Makefile b/misc/pdmenu/Makefile index e035ef2b07c..6da953cb48a 100644 --- a/misc/pdmenu/Makefile +++ b/misc/pdmenu/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.25 2007/02/22 19:01:23 wiz Exp $ +# $NetBSD: Makefile,v 1.26 2009/02/16 18:39:00 joerg Exp $ # DISTNAME= pdmenu_1.2.65 @@ -11,6 +11,8 @@ MAINTAINER= zuntum@NetBSD.org HOMEPAGE= http://www.kitenet.net/~joey/code/pdmenu.html COMMENT= Simple console menu program +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR}/pdmenu GNU_CONFIGURE= YES USE_TOOLS+= gmake perl:run @@ -21,24 +23,25 @@ REPLACE_PERL= examples/showdir.pl CONFIGURE_ENV+= SLANG_LIB_LOC=${BUILDLINK_PREFIX.libslang:Q}/lib CONFIGURE_ENV+= SLANG_H_LOC=${BUILDLINK_PREFIX.libslang:Q}/include/slang.h +INSTALLATION_DIRS= lib/pdmenu share/doc/pdmenu \ + share/examples/pdmenu/newbie + +INSTALL_MAKE_FLAGS+= INSTALL_PREFIX=${DESTDIR} + pre-install: ${SED} "s,.B /etc/pdmenurc,.B ${PREFIX}/etc/pdmenurc,g" \ ${WRKSRC}/doc/pdmenurc.man > ${WRKSRC}/doc/pdmenurc.man.done ${MV} ${WRKSRC}/doc/pdmenurc.man.done ${WRKSRC}/doc/pdmenurc.man - ${INSTALL_DATA_DIR} ${PREFIX}/lib/pdmenu post-install: - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/pdmenu - ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/pdmenu - ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/pdmenu/newbie cd ${WRKSRC}/doc && ${INSTALL_DATA} ANNOUNCE BUGS TODO \ - ${PREFIX}/share/doc/pdmenu + ${DESTDIR}${PREFIX}/share/doc/pdmenu cd ${WRKSRC}/examples && ${INSTALL_DATA} README ba.lpd pdmenurc \ pdmenurc.complex pdmenurc.monitor showdir.pl \ - ${PREFIX}/share/examples/pdmenu + ${DESTDIR}${PREFIX}/share/examples/pdmenu cd ${WRKSRC}/examples/newbie && ${INSTALL_DATA} modem-check \ pdmenurc.newbie rpm-info-on-command \ - ${PREFIX}/share/examples/pdmenu/newbie + ${DESTDIR}${PREFIX}/share/examples/pdmenu/newbie .include "../../devel/libslang/buildlink3.mk" .include "../../mk/bsd.pkg.mk" |