[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / editors / nvi-m17n

File: [cvs.NetBSD.org] / pkgsrc / editors / nvi-m17n / Makefile (download)

Revision 1.51, Thu May 29 23:36:31 2014 UTC (4 years, 10 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2
Changes since 1.50: +2 -2 lines

Bump for perl-5.20.0.
Do it for all packages that
* mention perl, or
* have a directory name starting with p5-*, or
* depend on a package starting with p5-
like last time, for 5.18, where this didn't lead to complaints.
Let me know if you have any this time.

# $NetBSD: Makefile,v 1.51 2014/05/29 23:36:31 wiz Exp $

DISTNAME=	nvi-1.79
PKGNAME=	nvi-m17n-1.79.20040608
PKGREVISION=	3
CATEGORIES=	editors
MASTER_SITES=	http://www.bostic.com/files/

PATCH_SITES=	ftp://ftp.itojun.org/pub/nvi/
PATCHFILES=	nvi-m17n-1.79-20040608.diff.gz

MAINTAINER=	pkgsrc-users@NetBSD.org
COMMENT=	Clone of vi/ex, with multilingual patch

CONFLICTS=	vigor-[0-9]* nvi-[0-9]*

CONFIGURE_DIRS=	build
GNU_CONFIGURE=	YES

PATCH_DIST_ARGS+=	-d ${WRKSRC} --forward --quiet -E -f
PATCH_FUZZ_FACTOR=	-F1

CONFIGURE_ENV+=	OPTFLAG='-D_PATH_SYSEXRC=\"${PREFIX}/etc/vi.exrc\"'
CONFIGURE_ARGS+=--enable-multibyte --program-prefix=n

CONFIGURE_ENV+=	vi_cv_path_shell=${TOOLS_SH:Q}
CONFIGURE_ENV+=	vi_cv_path_perl=${TOOLS_PATH.perl:Q}
USE_TOOLS+=	sh perl:run

CPPFLAGS+=	-DGTAGS
INSTALL_MAKE_FLAGS+=	prefix=${DESTDIR}${PREFIX}
INSTALL_MAKE_FLAGS+=	mandir=${DESTDIR}${PREFIX}/${PKGMANDIR}

.include "options.mk"

AUTODETECT.big5=cn
AUTODETECT.euc-cn=cn
AUTODETECT.euc-jp=jp
AUTODETECT.euc-kr=kr
AUTODETECT.euc-tw=tw
AUTODETECT.hz=cn
AUTODETECT.iso-2022-cn=cn
AUTODETECT.iso-2022-jp=jp
AUTODETECT.iso-2022-kr=kr
AUTODETECT.sjis=jp

ENCODINGS+=	iso-2022-cn iso-2022-jp iso-2022-kr
ENCODINGS+=	euc-jp euc-cn euc-kr sjis big5 euc-tw hz

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly"
# XXX ignore NetBSD 2.0F and later's grantpt(3) and SysV pty for just now
CONFIGURE_ENV+=		vi_cv_sys5_pty=no
.endif

post-patch:
# DragonFly has no CIRCLEQ_* so it wants the provided <sys/queue.h>
.if ${OPSYS} == "NetBSD" || \
    ${OPSYS} == "FreeBSD" || \
    ${OPSYS} == "OpenBSD"
	${RM} -f ${WRKSRC}/include/sys/queue.h
.endif

post-build:
.for encoding in ${ENCODINGS}
	@${SED} -e 's|$${CANNA_OPT}|${CANNA_OPT.${encoding}}|'		\
		-e 's|$${AUTODETECT}|${AUTODETECT.${encoding}}|'	\
		-e 's|$${ENCODING}|${encoding}|g'			\
		-e 's|$${PREFIX}|${PREFIX}|'				\
		${FILESDIR}/nvi-m17n > ${WRKDIR}/nvi-${encoding}
.endfor

post-install:
.for encoding in ${ENCODINGS}
	${INSTALL_SCRIPT} ${WRKDIR}/nvi-${encoding} ${DESTDIR}${PREFIX}/bin
.endfor
	${INSTALL_DATA} ${WRKSRC}/README.english \
		${DESTDIR}${PREFIX}/share/vi/
	${INSTALL_DATA} ${WRKSRC}/README.japanese \
		${DESTDIR}${PREFIX}/share/vi/

.include "../../mk/bsd.pkg.mk"