summaryrefslogtreecommitdiff
path: root/misc/vfu/Makefile
diff options
context:
space:
mode:
authorjlam <jlam>2001-06-20 05:27:32 +0000
committerjlam <jlam>2001-06-20 05:27:32 +0000
commitfd00a32d81138def323d7249feaeb655a317116d (patch)
treeb6687f8671a2d3911714bf7f0ea980fa8df5227e /misc/vfu/Makefile
parentf4778e9713e9f31b03e6552189ead19638e6fab2 (diff)
downloadpkgsrc-fd00a32d81138def323d7249feaeb655a317116d.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/Makefile62
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"