aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/dwdiff/Makefile
blob: d45f348d97269e88699a1d0570d4d44ac4ffceca (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
# New ports collection makefile for:    dwdiff
# Date created:     30 September 2006
# Whom:         Alexander Logvinov <ports@logvinov.com>
#
# $FreeBSD$

PORTNAME=   dwdiff
PORTVERSION=    1.2.1
PORTREVISION=   1
CATEGORIES= textproc
MASTER_SITES=   http://os.ghalkes.nl/dist/
EXTRACT_SUFX=   .tgz

MAINTAINER= ports@logvinov.com
COMMENT=    A delimited word diff program

HAS_CONFIGURE=  yes

MAN1=       ${PORTNAME}.1
PORTDOCS=   COPYING Changelog README

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_NLS)
USE_GETTEXT=    yes
CFLAGS+=    -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
CONFIGURE_ENV=  CFLAGS="${CFLAGS}" \
        LDFLAGS="${LDFLAGS}"
PLIST_SUB+= NLS=""
MANLANG=    "" nl
LANGS=      de nl
.else
CONFIGURE_ARGS+=--without-gettext
PLIST_SUB+= NLS="@comment "
.endif

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/man/${MAN1} ${MAN1PREFIX}/man/man1
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
.if !defined(WITHOUT_NLS)
.for lang in ${MANLANG:N""}
    @${MKDIR} ${MAN1PREFIX}/man/${lang}/man1
    ${INSTALL_MAN} ${WRKSRC}/man/${lang}/${MAN1} ${MAN1PREFIX}/man/${lang}/man1
.endfor
.for lang in ${LANGS}
    @${MKDIR} ${PREFIX}/share/locale/${lang}/LC_MESSAGES
    ${INSTALL_DATA} ${WRKSRC}/po/${lang}.mo \
        ${PREFIX}/share/locale/${lang}/LC_MESSAGES/${PORTNAME}.mo
.endfor
.endif

.include <bsd.port.post.mk>