1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/www/w3/Makefile
Andrey Slusar d8183770dd - Make fetchable, change MASTER_SITES.
PR:		ports/104472
Submitted by:	Thomas Abthorpe <thomas at goodking.ca>
Approved by:	portmgr (erwin)
2006-10-16 18:31:23 +00:00

74 lines
2.0 KiB
Makefile

# New ports collection makefile for: w3 on Emacs
# Date created: 31 December 1996
# Whom: MITA Yoshio <mita@ee.t.u-tokyo.ac.jp>
#
# $FreeBSD$
#
PORTNAME= w3
PORTVERSION= 2.2.26
CATEGORIES+= www elisp
MASTER_SITES= http://fresh.t-systems-sfr.com/unix/src/www/
MAINTAINER= ports@FreeBSD.org
COMMENT?= WWW browser based on emacs/mule
BUILD_DEPENDS?= emacs-19.34:${PORTSDIR}/editors/emacs19
RUN_DEPENDS?= emacs-19.34:${PORTSDIR}/editors/emacs19
WRKSRC= ${WRKDIR}/w3
MAKE_ENV+= EMACSCMD=${EMACSCMD} ELISPDIR=${ELISPDIR} \
MKDIR="${MKDIR}" CP=${CP} \
INFODIR=${INFODIR} \
INSTALL_DATA="${INSTALL_DATA}"
PKGINSTALL= ${WRKDIR}/INSTALL
PKGDEINSTALL= ${WRKDIR}/DEINSTALL
VERSION= 2.2.26
EMACSCMD?= emacs-19.34
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
INFO= w3
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%,${INFO:S/$/.info/},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 > ${WRKDIR}/${f}
.endfor
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${PORTSDOCDIR}
@${MKDIR} ${SAMPLEDIR}
.for f in dot.mosaic-hotlist-default
@${INSTALL_DATA} ${FILESDIR}/${f} ${SAMPLEDIR}
.endfor
.for f in dot.emacs
@${INSTALL_DATA} ${WRKDIR}/${f} ${SAMPLEDIR}
.endfor
@${INSTALL_SCRIPT} ${WRKDIR}/user-install ${SAMPLEDIR}
.for f in W3.ad clean-cache Makefile w3.txi
@${INSTALL_DATA} ${WRKSRC}/${f} ${PORTSDOCDIR}
.endfor
.endif
@${SETENV} MKDIR="${MKDIR}" TOUCH=${TOUCH} \
INFODIR=${INFODIR} INFOFILE=${INFOFILE} \
ELISPDIR=${ELISPDIR} ADDIR=${ADDIR} \
DIRSECTION="${DIRSECTION}" \
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>