diff options
author | jlam <jlam@pkgsrc.org> | 2001-06-20 05:27:32 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-06-20 05:27:32 +0000 |
commit | 6dcb41e0dc96583058aed1725985d7d0cb73beb8 (patch) | |
tree | b6687f8671a2d3911714bf7f0ea980fa8df5227e /misc/vfu/Makefile | |
parent | 9619854dc493ee8d2858a2cfc998d6a00b941710 (diff) | |
download | pkgsrc-6dcb41e0dc96583058aed1725985d7d0cb73beb8.tar.gz |
Convert to use buildlink.mk files for ncurses dependency and mark as
USE_BUILDLINK_ONLY. Add patches to remove explicit passing of
-I/usr/include/ncurses to the compiler, and move the example configuration
file to ${PREFIX}/share/examples/vfu. Add DEINSTALL/INSTALL scripts to
handle copying the sample config file to the config directory at install
time and removing it at deinstall time.
Diffstat (limited to 'misc/vfu/Makefile')
-rw-r--r-- | misc/vfu/Makefile | 62 |
1 files changed, 35 insertions, 27 deletions
diff --git a/misc/vfu/Makefile b/misc/vfu/Makefile index 0d8b9983f70..a32f1d7dfde 100644 --- a/misc/vfu/Makefile +++ b/misc/vfu/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.20 2001/05/09 15:08:00 agc Exp $ +# $NetBSD: Makefile,v 1.21 2001/06/20 05:27:32 jlam Exp $ # DISTNAME= vfu-3.01 @@ -11,36 +11,44 @@ MAINTAINER= hubertf@netbsd.org HOMEPAGE= http://www.biscom.net/~cade/away/vfu/ COMMENT= Small, handy, easy-to-use file manager -USE_CURSES= # defined -REPLACE_NCURSES= ${WRKSRC}/vfu/makefile ${WRKSRC}/vslib/unicon.h \ - ${WRKSRC}/vslib/makefile -USE_PERL5= # defined +USE_BUILDLINK_ONLY= # defined +USE_PERL5= # defined + +DOCDIR= ${PREFIX}/share/doc/vfu +EGDIR= ${PREFIX}/share/examples/vfu + +DEINSTALL_FILE= ${WRKDIR}/DEINSTALL +INSTALL_FILE= ${WRKDIR}/INSTALL + +FILES_SUBST= CAT=${CAT:Q} +FILES_SUBST+= CHMOD=${CHMOD:Q} +FILES_SUBST+= CP=${CP:Q} +FILES_SUBST+= RM=${RM:Q} +FILES_SUBST_SED= ${FILES_SUBST:S/=/@!/:S/$/!g/:S/^/ -e s!@/} do-build: - cd ${WRKSRC} ; \ - ${SETENV} ${MAKE_ENV} ${SH} build.netbsd + cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${SH} build.netbsd + +pre-install: + ${SED} ${FILES_SUBST_SED} ${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE} + ${SED} ${FILES_SUBST_SED} ${PKGDIR}/INSTALL > ${INSTALL_FILE} do-install: - cd ${WRKSRC} ; \ - ${INSTALL_PROGRAM} vfu/vfu ftparc/ftparc ${PREFIX}/bin - for i in rx_auto rx_deb rx_ftp rx_tar rx_zip ; do \ - ${ECHO} $$i ; \ - ${SED} 's,/usr/bin/perl,${PERL5},' \ - <${WRKSRC}/rx/$$i >${WRKSRC}/rx/$$i.new ; \ - ${INSTALL_SCRIPT} ${WRKSRC}/rx/$$i.new ${PREFIX}/bin/$$i ; \ + cd ${WRKSRC}; ${INSTALL_PROGRAM} vfu/vfu ftparc/ftparc ${PREFIX}/bin + cd ${WRKSRC}; for i in rx_auto rx_deb rx_ftp rx_tar rx_zip; do \ + ${ECHO} $$i; \ + ${SED} -e "s|/usr/bin/perl|${PERL5}|g" \ + rx/$$i > rx/$$i.new; \ + ${INSTALL_SCRIPT} rx/$$i.new ${PREFIX}/bin/$$i; \ done - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/vfu - ${INSTALL_DATA} \ - ${WRKSRC}/COPYING \ - ${WRKSRC}/INSTALL \ - ${WRKSRC}/vfu/README \ - ${WRKSRC}/VFU.txt \ - ${PREFIX}/share/doc/vfu - ${INSTALL_DATA} \ - ${WRKSRC}/vfu.conf \ - ${PREFIX}/share/doc/vfu/vfurc.example - [ -f ${PREFIX}/etc/vfurc ] || \ - ${INSTALL_DATA} \ - ${PREFIX}/share/doc/vfu/vfurc.example ${PREFIX}/etc/vfurc + ${INSTALL_DATA_DIR} ${DOCDIR} + cd ${WRKSRC}; \ + ${INSTALL_DATA} COPYING INSTALL vfu/README VFU.txt ${DOCDIR} + cd ${WRKSRC}; \ + ${INSTALL_DATA} ${WRKSRC}/vfu.conf ${EGDIR}/vfurc + +post-install: + PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL +.include "../../devel/ncurses/buildlink.mk" .include "../../mk/bsd.pkg.mk" |