aboutsummaryrefslogtreecommitdiffstats
path: root/print/texinfo/Makefile
blob: 71a671582f6128c3a03bf6a73ab703bc19ea9a59 (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
44
45
46
47
48
49
50
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
# $FreeBSD$

PORTNAME=   texinfo
PORTVERSION=    6.5
PORTEPOCH=  1
CATEGORIES= print
MASTER_SITES=   GNU \
        LOCAL/sunpoet/${DIST_SUBDIR}:DEFAULT,local
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX} htmlxref.cnf:local texi2dvi:local texinfo.tex:local
DIST_SUBDIR=    ${PORTNAME}/${PORTVERSION}
EXTRACT_ONLY=   ${DISTNAME}${EXTRACT_SUFX}

MAINTAINER= sunpoet@FreeBSD.org
COMMENT=    Typeset documentation system with multiple format output

LICENSE=    GPLv3+
LICENSE_FILE=   ${WRKSRC}/COPYING

BUILD_DEPENDS=  help2man:misc/help2man

OPTIONS_DEFINE= NLS
OPTIONS_SUB=    yes

GNU_CONFIGURE=  yes
INSTALL_TARGET= install-strip install-tex
MAKE_ARGS=  PERL=${PERL} TEXMF=${LOCALBASE}/${TEXMFDIR}
PKGDEINSTALL=   ${PKGINSTALL}
USE_TEX=    yes
USES=       charsetfix cpe gmake iconv libtool ncurses perl5 tar:xz

INFO=       info-stnd texinfo

CPE_VENDOR= gnu
CPE_VERSION=    ${PORTVERSION:R}

NLS_CONFIGURE_ENABLE=   nls
NLS_USES=       gettext

post-patch:
    @${CP} ${DISTDIR}/${DIST_SUBDIR}/texinfo.tex ${WRKSRC}/doc/
    @${INSTALL_SCRIPT} ${DISTDIR}/${DIST_SUBDIR}/texi2dvi ${WRKSRC}/util/
    @${REINPLACE_CMD} -e '/rm -f $$(DESTDIR)/ s|$$| $$(DESTDIR)$$(xsdir)/XSParagraph.*|' \
        ${WRKSRC}/tp/Texinfo/Convert/XSParagraph/Makefile.in
    @${REINPLACE_CMD} -e 's|free (.*)|Safe&|' ${WRKSRC}/tp/Texinfo/MiscXS/misc.c

post-install:
    ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/htmlxref.cnf ${STAGEDIR}${DATADIR}

.include <bsd.port.mk>