aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/gawk/Makefile
blob: 8eb4b82392e6ae75bed01d54ff8147fdd00a07fc (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
# Created by: Nobuhiro Yasutomi <nobu@psrc.isac.co.jp>
# $FreeBSD$

PORTNAME=   gawk
PORTVERSION=    3.0.6
CATEGORIES= japanese lang
MASTER_SITES=   ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= ${PORTNAME}

PATCH_SITES=    http://www.hinadori.atnifty.com/~wills/program/
PATCHFILES= ${PORTNAME}mb115.diff.gz
PATCH_DIST_STRIP=   -p1

MAINTAINER= ota@j.email.ne.jp
COMMENT=    GNU awk + multi-byte extension

LICENSE=    GPLv2

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --enable-bitops --enable-non-decimal-data
MAKE_JOBS_UNSAFE=   yes

INFO=       gawk

DOCSDIR=    ${PREFIX}/share/doc/${PKGBASE}

post-configure:
    @${REINPLACE_CMD} -E \
    '/(DEFPATH|sed )/!s,(bin|data|lib|info|man|libexec)dir\),DESTDIR\)$$\(&,g' \
        ${WRKSRC}/Makefile ${WRKSRC}/doc/Makefile ${WRKSRC}/awklib/Makefile

post-install:
    ${INSTALL_MAN} ${WRKSRC}/doc/gawk.1 ${STAGEDIR}${MANPREFIX}/man/man1
    ${INSTALL_MAN} ${WRKSRC}/doc/igawk.1 ${STAGEDIR}${MANPREFIX}/man/man1
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    (cd ${WRKSRC} && ${INSTALL_DATA} OREADME.MB README.MB ${STAGEDIR}${DOCSDIR})

.include <bsd.port.mk>