eaf120951f
and other System V options for now. Fixes a problem in the bulk build, and addresses PR 26967.
87 lines
2.3 KiB
Makefile
87 lines
2.3 KiB
Makefile
# $NetBSD: Makefile,v 1.27 2004/09/16 10:51:17 agc Exp $
|
||
# FreeBSD Id: Makefile,v 1.11 1999/04/17 10:51:03 itojun Exp
|
||
|
||
DISTNAME= nvi-1.79
|
||
PKGNAME= nvi-m17n-1.79.19991117
|
||
PKGREVISION= 2
|
||
CATEGORIES= editors
|
||
MASTER_SITES= ftp://sleepy.vwh.net/pub/ \
|
||
ftp://ftp.foretune.co.jp/pub/tools/nvi-m17n/
|
||
|
||
PATCH_SITES= ftp://lkbreth.foretune.co.jp/pub/tools/nvi-m17n/
|
||
PATCHFILES= nvi-1.79.m17n-19991117.diff.gz
|
||
|
||
MAINTAINER= itojun@itojun.org
|
||
COMMENT= Clone of vi/ex, with multilingual patch
|
||
|
||
CONFLICTS= vigor-[0-9]* nvi-[0-9]*
|
||
|
||
WRKSRC= ${WRKDIR}/${DISTNAME}/build
|
||
USE_BUILDLINK3= YES
|
||
GNU_CONFIGURE= YES
|
||
PATCH_DIST_ARGS=-d ${WRKSRC}/.. --forward --quiet -E -p1 -f
|
||
CONFIGURE_ENV= OPTFLAG='-D_PATH_SYSEXRC=\"${PREFIX}/etc/vi.exrc\"'
|
||
CONFIGURE_ARGS+=--enable-multibyte --program-prefix=n
|
||
|
||
.include "../../mk/bsd.prefs.mk"
|
||
|
||
PATCH_FUZZ_FACTOR= -F1
|
||
|
||
.if !defined(USE_CANNA) || ${USE_CANNA} == YES
|
||
.include "../../inputmethod/canna-lib/buildlink3.mk"
|
||
CONFIGURE_ARGS+=--enable-canna=${BUILDLINK_PREFIX.canna-lib}
|
||
CANNA_OPT.euc-jp=canna cannactrl cannakey=
|
||
CANNA_OPT.sjis=${CANNA_OPT.euc-jp}
|
||
CANNA_OPT.iso-2022-jp=${CANNA_OPT.euc-jp}
|
||
.endif
|
||
|
||
PLIST_TMP= ${WRKDIR}/PLIST
|
||
PLIST_SRC+= ${PKGDIR}/PLIST ${PLIST_TMP}
|
||
|
||
AUTODETECT.euc-jp=jp
|
||
AUTODETECT.sjis=jp
|
||
AUTODETECT.iso-2022-jp=jp
|
||
|
||
AUTODETECT.euc-cn=cn
|
||
AUTODETECT.big5=cn
|
||
AUTODETECT.hz=cn
|
||
AUTODETECT.iso-2022-cn=cn
|
||
|
||
AUTODETECT.euc-tw=tw
|
||
|
||
AUTODETECT.euc-kr=kr
|
||
AUTODETECT.iso-2022-kr=kr
|
||
|
||
ENCODING+= iso-2022-cn iso-2022-jp iso-2022-kr
|
||
ENCODING+= euc-jp euc-cn euc-kr sjis big5 euc-tw hz
|
||
|
||
.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"
|
||
${RM} -f ${WRKSRC}/../include/sys/queue.h
|
||
.endif
|
||
|
||
post-build:
|
||
.for encoding in ${ENCODING}
|
||
@${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}
|
||
@${ECHO} "bin/nvi-${encoding}" >> ${PLIST_TMP}
|
||
.endfor
|
||
|
||
post-install:
|
||
.for encoding in ${ENCODING}
|
||
@${INSTALL_SCRIPT} ${WRKDIR}/nvi-${encoding} ${PREFIX}/bin
|
||
.endfor
|
||
@${CP} ${WRKSRC}/../docs.m17n/README.english \
|
||
${PREFIX}/share/vi/
|
||
@${CP} ${WRKSRC}/../docs.m17n/README.japanese \
|
||
${PREFIX}/share/vi/
|
||
|
||
.include "../../mk/bsd.pkg.mk"
|