aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/texi2html/Makefile
blob: c6514c946f5ac26f4c1807cc5db27b142ae63e35 (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
51
52
53
54
55
56
57
58
59
60
61
62
# New ports collection makefile for:    texi2html
# Date created:             5 Nov 1997
# Whom:                 Ian Vaudrey <i.vaudrey@bigfoot.com>
#
# $FreeBSD$
#

PORTNAME=   texi2html
PORTVERSION=    5.0
PORTEPOCH=  1
CATEGORIES= textproc
MASTER_SITES=   ${MASTER_SITE_SAVANNAH}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= johans@FreeBSD.org
COMMENT=    Texinfo to HTML converter

GNU_CONFIGURE=  yes
CONFIGURE_ENV=  PERL=${PERL}
CONFIGURE_ARGS= --disable-multiplatform
USE_BZIP2=  yes
USE_PERL5=  yes
USE_GMAKE=  yes

PROGRAM_PREFIX?=
PLIST_SUB=  PROGRAM_PREFIX=${PROGRAM_PREFIX} \
        TEXINFODIR=share/texinfo

.if !empty(PROGRAM_PREFIX)
CONFIGURE_ARGS= --program-prefix="${PROGRAM_PREFIX}"
.endif

MAN1=       ${PROGRAM_PREFIX}texi2html.1
INFO=       texi2html

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MNLS}
USE_GETTEXT=    yes
CONFIGURE_ARGS+=--enable-nls --enable-translations
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls --disable-translations
PLIST_SUB+= NLS="@comment "
.endif

pre-everything::
    @${ECHO} ""
    @${ECHO} "You can define the PROGRAM_PREFIX variable to change the name that"
    @${ECHO} "the texi2html program is installed as."
    @${ECHO} ""

post-patch:
    @${REINPLACE_CMD} -e 's/^translations.pl/_&/' ${WRKSRC}/Makefile.in
    @${REINPLACE_CMD} -e '/^install-data/s|i18n|&/en.thl|' ${WRKSRC}/Makefile.in
.if defined(NOPORTDOCS)
    @${REINPLACE_CMD} -e 's| install-texinfohtmlDATA||g' ${WRKSRC}/doc/Makefile.in
.endif
    @${REINPLACE_CMD} -e '1s|/usr/bin/perl|${PERL}|' ${WRKSRC}/*.pl
    @${CHMOD} +x ${WRKSRC}/install-sh

.include <bsd.port.mk>