freebsd-ports/japanese/gawk/Makefile
2014-07-16 02:29:34 +00:00

39 lines
932 B
Makefile

# 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
USES= makeinfo
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-bitops --enable-non-decimal-data
MAKE_JOBS_UNSAFE= yes
INFO= gawk
DOCSDIR= ${PREFIX}/share/doc/${PKGBASE}
OPTIONS_DEFINE= DOCS
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:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} OREADME.MB README.MB ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>