f2a54795e8
assume they also provide a superset. This fixes conflicts in sys/select.h on DragonFly.
79 lines
2 KiB
Makefile
79 lines
2 KiB
Makefile
# $NetBSD: Makefile,v 1.36 2006/01/04 21:22:06 joerg Exp $
|
|
|
|
DISTNAME= nvi-1.79
|
|
PKGNAME= nvi-m17n-1.79.20040401
|
|
PKGREVISION= 1
|
|
CATEGORIES= editors
|
|
MASTER_SITES= ftp://ftp.sleepycat.com/pub/ \
|
|
ftp://ftp.foretune.co.jp/pub/tools/nvi/
|
|
|
|
PATCH_SITES= ftp://ftp.foretune.co.jp/pub/tools/nvi-m17n/
|
|
PATCHFILES= nvi-1.79.m17n-20040401.diff.gz
|
|
|
|
MAINTAINER= itojun@itojun.org
|
|
COMMENT= Clone of vi/ex, with multilingual patch
|
|
|
|
CONFLICTS= vigor-[0-9]* nvi-[0-9]*
|
|
|
|
CONFIGURE_DIRS= ${WRKSRC}/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}
|
|
USE_TOOLS+= sh
|
|
|
|
CPPFLAGS+= -DGTAGS
|
|
|
|
.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"
|
|
# 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:
|
|
.if ${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly" || \
|
|
${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} ${PREFIX}/bin
|
|
.endfor
|
|
${INSTALL_DATA} ${WRKSRC}/README.english \
|
|
${PREFIX}/share/vi/
|
|
${INSTALL_DATA} ${WRKSRC}/README.japanese \
|
|
${PREFIX}/share/vi/
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|