1996-12-18 05:26:32 +00:00
|
|
|
# New ports collection makefile for: w3 on Emacs
|
1997-01-04 00:36:59 +00:00
|
|
|
# Date created: 31 December 1996
|
1996-12-18 05:26:32 +00:00
|
|
|
# Whom: MITA Yoshio <mita@ee.t.u-tokyo.ac.jp>
|
|
|
|
#
|
1999-08-31 02:43:35 +00:00
|
|
|
# $FreeBSD$
|
1996-12-18 05:26:32 +00:00
|
|
|
#
|
|
|
|
|
2000-04-10 00:07:29 +00:00
|
|
|
PORTNAME= w3
|
2001-02-05 15:33:58 +00:00
|
|
|
PORTVERSION= 2.2.26
|
2000-04-14 17:24:56 +00:00
|
|
|
CATEGORIES+= www elisp
|
1997-06-10 09:58:54 +00:00
|
|
|
MASTER_SITES= ftp://ftp.iij.ad.jp/pub/network/WWW/w3/ \
|
|
|
|
ftp://ftp.cs.indiana.edu/pub/elisp/w3/
|
1996-12-18 05:26:32 +00:00
|
|
|
|
|
|
|
MAINTAINER= kiri@kiri.toba-cmt.ac.jp
|
|
|
|
|
1998-10-10 04:51:50 +00:00
|
|
|
BUILD_DEPENDS?= emacs-19.34:${PORTSDIR}/editors/emacs
|
|
|
|
RUN_DEPENDS?= emacs-19.34:${PORTSDIR}/editors/emacs
|
1996-12-18 05:26:32 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/w3
|
1997-06-10 09:58:54 +00:00
|
|
|
MAKE_ENV+= EMACSCMD=${EMACSCMD} ELISPDIR=${ELISPDIR} \
|
|
|
|
MKDIR="${MKDIR}" CP=${CP} \
|
|
|
|
INFODIR=${INFODIR} \
|
|
|
|
INSTALL_DATA="${INSTALL_DATA}"
|
1996-12-18 05:26:32 +00:00
|
|
|
|
1998-12-13 08:47:43 +00:00
|
|
|
PKGINSTALL= ${WRKDIR}/INSTALL
|
|
|
|
PKGDEINSTALL= ${WRKDIR}/DEINSTALL
|
1997-06-10 09:58:54 +00:00
|
|
|
VERSION= 2.2.26
|
1998-10-10 04:51:50 +00:00
|
|
|
EMACSCMD?= emacs-19.34
|
1997-06-10 09:58:54 +00:00
|
|
|
PORTSDOCDIR= ${PREFIX}/share/doc/w3
|
1997-01-04 00:36:59 +00:00
|
|
|
SAMPLEDIR= ${PREFIX}/share/examples/w3
|
1997-06-10 09:58:54 +00: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" \
|
2000-04-14 17:24:56 +00:00
|
|
|
-e "s,%PREFIX%,${PREFIX},g" \
|
|
|
|
-e "s,%INFODIR%,${INFODIR},g" \
|
|
|
|
-e "s,%ELISPDIR%,${ELISPDIR},g" \
|
1997-06-10 09:58:54 +00:00
|
|
|
-e "s,%INFOFILE%,${INFOFILE},g" \
|
2000-04-14 17:24:56 +00:00
|
|
|
-e "s,%ADDIR%,${ADDIR},g" \
|
1997-06-10 09:58:54 +00:00
|
|
|
-e "s,%TOUCH%,${TOUCH},g" \
|
|
|
|
-e "s,%MKDIR%,${MKDIR},g" \
|
|
|
|
-e "s,%SAMPLEDIR%,${SAMPLEDIR},g" \
|
|
|
|
-e "s,%DIRSECTION%,${DIRSECTION},g" \
|
1998-12-13 08:47:43 +00:00
|
|
|
< ${FILESDIR}/${f}.tmpl > ${WRKDIR}/${f}
|
1997-06-10 09:58:54 +00:00
|
|
|
.endfor
|
1996-12-18 05:26:32 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
1997-06-10 09:58:54 +00:00
|
|
|
@${MKDIR} ${PORTSDOCDIR}
|
1997-01-04 00:36:59 +00:00
|
|
|
@${MKDIR} ${SAMPLEDIR}
|
2000-04-10 00:07:29 +00:00
|
|
|
.for f in dot.mosaic-hotlist-default
|
1997-01-04 00:36:59 +00:00
|
|
|
@${INSTALL_DATA} ${FILESDIR}/${f} ${SAMPLEDIR}
|
1996-12-18 05:26:32 +00:00
|
|
|
.endfor
|
1998-12-13 08:47:43 +00:00
|
|
|
.for f in dot.emacs
|
|
|
|
@${INSTALL_DATA} ${WRKDIR}/${f} ${SAMPLEDIR}
|
|
|
|
.endfor
|
|
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/user-install ${SAMPLEDIR}
|
1996-12-18 05:26:32 +00:00
|
|
|
.for f in W3.ad clean-cache Makefile w3.txi
|
1997-06-10 09:58:54 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${f} ${PORTSDOCDIR}
|
1996-12-18 05:26:32 +00:00
|
|
|
.endfor
|
|
|
|
.endif
|
1997-06-10 09:58:54 +00:00
|
|
|
@${SETENV} MKDIR="${MKDIR}" TOUCH=${TOUCH} \
|
|
|
|
INFODIR=${INFODIR} INFOFILE=${INFOFILE} \
|
|
|
|
ELISPDIR=${ELISPDIR} ADDIR=${ADDIR} \
|
|
|
|
DIRSECTION="${DIRSECTION}" \
|
2000-04-10 00:07:29 +00:00
|
|
|
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
1996-12-18 05:26:32 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|