aboutsummaryrefslogtreecommitdiffstats
path: root/devel/noweb/Makefile
blob: 917c51b09a4ce2cf6fd6526a6eb831b5187154b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# New ports collection makefile for:    noweb
# Date created:     29 July 1995
# Whom:         Thomas Gellekum <tg@freebsd.org>
#
# $FreeBSD$
#

PORTNAME=   noweb
PORTVERSION=    2.11b
CATEGORIES= devel
MASTER_SITES=   http://www.eecs.harvard.edu/~nr/noweb/dist/
EXTRACT_SUFX=   .tgz

MAINTAINER= ports@FreeBSD.org
COMMENT=    A simple, extensible literate-programming tool

BUILD_DEPENDS=  icont:${PORTSDIR}/lang/icon
RUN_DEPENDS=    iconx:${PORTSDIR}/lang/icon

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
INSTALL_TARGET= install-code install-man install-elisp
MAN1=       cpif.1 htmltoc.1 nodefs.1 noindex.1 noroff.1 noroots.1 \
        notangle.1 noweb.1 nuweb2noweb.1 sl2h.1
MAN7=       nowebfilters.7 nowebstyle.7
MLINKS=     notangle.1 noweave.1    notangle.1 nountangle.1

NOWEBTEXDIR=    ${PREFIX}/share/texmf-local/tex/plain/noweb
NOWEBLATEXDIR=  ${PREFIX}/share/texmf-local/tex/latex/noweb

post-patch:
    @${TOUCH} ${WRKSRC}/c/modules.[ch]

post-build:
    @(cd ${WRKSRC} && ${SH} ${WRKSRC}/awkname awk)

post-install:
    @${MKDIR} ${NOWEBTEXDIR}
    ${INSTALL_DATA} ${WRKSRC}/tex/nwmac.tex ${NOWEBTEXDIR}
    @${MKDIR} ${NOWEBLATEXDIR}
    ${INSTALL_DATA} ${WRKSRC}/tex/noweb.sty ${NOWEBLATEXDIR}
    @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL

.include <bsd.port.mk>