summaryrefslogtreecommitdiff
path: root/www/w3/Makefile
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1997-06-10 09:58:54 +0000
committerSatoshi Asami <asami@FreeBSD.org>1997-06-10 09:58:54 +0000
commit7ca69fdf614e75d1b35fb7f0306df9c82c0854c8 (patch)
tree59d38e7604189c1c098f475cb47065d5e6e942e9 /www/w3/Makefile
parentAdd starlanes. (diff)
Update dir file with install-info. Also, change organization so that
files can be shared between this port and japanese/w3. Note this is a "blind" commit; it is too much trouble to test an update with this many added and deleted files. I'll test it later. PR: 3788 Submitted by: <kiri@kiri.toba-cmt.ac.jp>
Notes
Notes: svn path=/head/; revision=6842
Diffstat (limited to 'www/w3/Makefile')
-rw-r--r--www/w3/Makefile54
1 files changed, 45 insertions, 9 deletions
diff --git a/www/w3/Makefile b/www/w3/Makefile
index 4f32e49d6b87..0d5c81b0e8ec 100644
--- a/www/w3/Makefile
+++ b/www/w3/Makefile
@@ -7,32 +7,68 @@
#
DISTNAME= w3-2.2.26
-CATEGORIES= www
-MASTER_SITES= ftp://ftp.cs.indiana.edu/pub/elisp/w3/ \
- ftp://ftp.iij.ad.jp/pub/network/WWW/w3/
+CATEGORIES?= www
+MASTER_SITES= ftp://ftp.iij.ad.jp/pub/network/WWW/w3/ \
+ ftp://ftp.cs.indiana.edu/pub/elisp/w3/
MAINTAINER= kiri@kiri.toba-cmt.ac.jp
-BUILD_DEPENDS= emacs:${PORTSDIR}/editors/emacs
-RUN_DEPENDS= emacs:${PORTSDIR}/editors/emacs
+BUILD_DEPENDS?= emacs:${PORTSDIR}/editors/emacs
+RUN_DEPENDS?= emacs:${PORTSDIR}/editors/emacs
WRKSRC= ${WRKDIR}/w3
+MAKE_ENV+= EMACSCMD=${EMACSCMD} ELISPDIR=${ELISPDIR} \
+ MKDIR="${MKDIR}" CP=${CP} \
+ INFODIR=${INFODIR} \
+ INSTALL_DATA="${INSTALL_DATA}"
-DOCDIR= ${PREFIX}/share/doc/w3
+VERSION= 2.2.26
+EMACSCMD?= emacs
+PORTSDOCDIR= ${PREFIX}/share/doc/w3
SAMPLEDIR= ${PREFIX}/share/examples/w3
+ELISPDIR?= ${PREFIX}/share/emacs/site-lisp
+INFODIR= ${PREFIX}/info
+ADDIR= ${X11BASE}/lib/X11/app-defaults
+DIRSECTION= The Emacs editor and associated tools
+INFOFILE= w3.info
+
+post-build:
+.for f in DEINSTALL INSTALL dot.emacs user-install
+ @${SED} -e "s,%VERSION%,${VERSION},g" \
+ -e "s,%PREFIX%,${PREFIX},g" \
+ -e "s,%INFODIR%,${INFODIR},g" \
+ -e "s,%ELISPDIR%,${ELISPDIR},g" \
+ -e "s,%INFOFILE%,${INFOFILE},g" \
+ -e "s,%ADDIR%,${ADDIR},g" \
+ -e "s,%TOUCH%,${TOUCH},g" \
+ -e "s,%MKDIR%,${MKDIR},g" \
+ -e "s,%SAMPLEDIR%,${SAMPLEDIR},g" \
+ -e "s,%DIRSECTION%,${DIRSECTION},g" \
+ < ${FILESDIR}/${f}.tmpl > ${FILESDIR}/${f}
+.endfor
+ @${CP} ${FILESDIR}/DEINSTALL ${FILESDIR}/INSTALL ${PKGDIR}
post-install:
.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCDIR}
+ @${MKDIR} ${PORTSDOCDIR}
@${MKDIR} ${SAMPLEDIR}
.for f in dot.emacs dot.mosaic-hotlist-default
@${INSTALL_DATA} ${FILESDIR}/${f} ${SAMPLEDIR}
.endfor
@${INSTALL_SCRIPT} ${FILESDIR}/user-install ${SAMPLEDIR}
.for f in W3.ad clean-cache Makefile w3.txi
- @${INSTALL_DATA} ${WRKSRC}/${f} ${DOCDIR}
+ @${INSTALL_DATA} ${WRKSRC}/${f} ${PORTSDOCDIR}
.endfor
.endif
- @${SETENV} PKG_PREFIX=${PREFIX} /bin/sh ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
+ @${SETENV} MKDIR="${MKDIR}" TOUCH=${TOUCH} \
+ INFODIR=${INFODIR} INFOFILE=${INFOFILE} \
+ ELISPDIR=${ELISPDIR} ADDIR=${ADDIR} \
+ DIRSECTION="${DIRSECTION}" \
+ /bin/sh ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
+
+pre-clean:
+ @${RM} -f ${FILESDIR}/DEINSTALL ${FILESDIR}/INSTALL \
+ ${FILESDIR}/dot.emacs ${FILESDIR}/user-install \
+ ${PKGDIR}/DEINSTALL ${PKGDIR}/INSTALL
.include <bsd.port.mk>