1996-12-18 00:26:32 -05:00
|
|
|
# New ports collection makefile for: w3 on Emacs
|
|
|
|
# Version required: 2.2.26
|
1997-01-03 19:36:59 -05:00
|
|
|
# Date created: 31 December 1996
|
1996-12-18 00:26:32 -05:00
|
|
|
# Whom: MITA Yoshio <mita@ee.t.u-tokyo.ac.jp>
|
|
|
|
#
|
1997-07-13 14:49:31 -04:00
|
|
|
# $Id: Makefile,v 1.4 1997/06/10 09:58:45 asami Exp $
|
1996-12-18 00:26:32 -05:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= w3-2.2.26
|
1997-06-10 05:58:54 -04:00
|
|
|
CATEGORIES?= www
|
|
|
|
MASTER_SITES= ftp://ftp.iij.ad.jp/pub/network/WWW/w3/ \
|
|
|
|
ftp://ftp.cs.indiana.edu/pub/elisp/w3/
|
1996-12-18 00:26:32 -05:00
|
|
|
|
|
|
|
MAINTAINER= kiri@kiri.toba-cmt.ac.jp
|
|
|
|
|
1997-06-10 05:58:54 -04:00
|
|
|
BUILD_DEPENDS?= emacs:${PORTSDIR}/editors/emacs
|
|
|
|
RUN_DEPENDS?= emacs:${PORTSDIR}/editors/emacs
|
1996-12-18 00:26:32 -05:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/w3
|
1997-06-10 05:58:54 -04:00
|
|
|
MAKE_ENV+= EMACSCMD=${EMACSCMD} ELISPDIR=${ELISPDIR} \
|
|
|
|
MKDIR="${MKDIR}" CP=${CP} \
|
|
|
|
INFODIR=${INFODIR} \
|
|
|
|
INSTALL_DATA="${INSTALL_DATA}"
|
1996-12-18 00:26:32 -05:00
|
|
|
|
1997-06-10 05:58:54 -04:00
|
|
|
VERSION= 2.2.26
|
|
|
|
EMACSCMD?= emacs
|
|
|
|
PORTSDOCDIR= ${PREFIX}/share/doc/w3
|
1997-01-03 19:36:59 -05:00
|
|
|
SAMPLEDIR= ${PREFIX}/share/examples/w3
|
1997-06-10 05:58:54 -04:00
|
|
|
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}
|
1996-12-18 00:26:32 -05:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
1997-06-10 05:58:54 -04:00
|
|
|
@${MKDIR} ${PORTSDOCDIR}
|
1997-01-03 19:36:59 -05:00
|
|
|
@${MKDIR} ${SAMPLEDIR}
|
|
|
|
.for f in dot.emacs dot.mosaic-hotlist-default
|
|
|
|
@${INSTALL_DATA} ${FILESDIR}/${f} ${SAMPLEDIR}
|
1996-12-18 00:26:32 -05:00
|
|
|
.endfor
|
1997-01-03 19:36:59 -05:00
|
|
|
@${INSTALL_SCRIPT} ${FILESDIR}/user-install ${SAMPLEDIR}
|
1996-12-18 00:26:32 -05:00
|
|
|
.for f in W3.ad clean-cache Makefile w3.txi
|
1997-06-10 05:58:54 -04:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${f} ${PORTSDOCDIR}
|
1996-12-18 00:26:32 -05:00
|
|
|
.endfor
|
|
|
|
.endif
|
1997-06-10 05:58:54 -04:00
|
|
|
@${SETENV} MKDIR="${MKDIR}" TOUCH=${TOUCH} \
|
|
|
|
INFODIR=${INFODIR} INFOFILE=${INFOFILE} \
|
|
|
|
ELISPDIR=${ELISPDIR} ADDIR=${ADDIR} \
|
|
|
|
DIRSECTION="${DIRSECTION}" \
|
1997-07-13 14:49:31 -04:00
|
|
|
${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
|
1997-06-10 05:58:54 -04:00
|
|
|
|
|
|
|
pre-clean:
|
|
|
|
@${RM} -f ${FILESDIR}/DEINSTALL ${FILESDIR}/INSTALL \
|
|
|
|
${FILESDIR}/dot.emacs ${FILESDIR}/user-install \
|
|
|
|
${PKGDIR}/DEINSTALL ${PKGDIR}/INSTALL
|
1996-12-18 00:26:32 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|