aboutsummaryrefslogtreecommitdiffstats
path: root/print/texinfo/Makefile
blob: ba37b2112bdfff7cf83a174dd9707d80703e4d91 (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
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
# $FreeBSD$

PORTNAME=   texinfo
PORTVERSION=    5.2.20150205
CATEGORIES= print
MASTER_SITES=   ftp://ftp.stack.nl/pub/users/johans/texinfo/${PORTVERSION:E}/ \
        GNU
DISTNAME=   ${PORTNAME}-${PORTVERSION:R}
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX} htmlxref.cnf texinfo.tex texi2dvi
DIST_SUBDIR=    ${PORTNAME}/${PORTVERSION}
EXTRACT_ONLY=   ${DISTNAME}${EXTRACT_SUFX}

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

BUILD_DEPENDS+= help2man:${PORTSDIR}/misc/help2man

OPTIONS_DEFINE= NLS
OPTIONS_SUB=    yes
NLS_USES=   gettext
NLS_CONFIGURE_ENABLE=   nls

GNU_CONFIGURE=  yes
INSTALL_TARGET= install install-tex
PKGDEINSTALL=   ${PKGINSTALL}
USES+=      charsetfix cpe gmake:lite perl5 tar:xz

MAKE_ARGS=  TEXMF=${LOCALBASE}/${TEXMF} PERL=${LOCALBASE}/bin/perl
INFO=       texinfo info-stnd info
CPE_VENDOR= gnu
CPE_VERSION=    ${PORTVERSION:R}

TEXMF=      share/texmf
PLIST_SUB=  TEXMF=${TEXMF}

post-patch:
    ${CHMOD} 755 ${WRKSRC}/build-aux/install-sh
    ${CP} ${DISTDIR}/${DIST_SUBDIR}/texinfo.tex ${WRKSRC}/doc/
    ${INSTALL_SCRIPT} ${DISTDIR}/${DIST_SUBDIR}/texi2dvi ${WRKSRC}/util/

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

.include <bsd.port.mk>