2012-12-03 16:44:04 -05:00
|
|
|
|
# $OpenBSD: Makefile,v 1.34 2012/12/03 21:44:04 naddy Exp $
|
2000-02-22 23:36:39 -05:00
|
|
|
|
|
2007-09-15 20:44:00 -04:00
|
|
|
|
COMMENT= multilingual clone of vi/ex
|
2001-05-05 20:28:54 -04:00
|
|
|
|
|
2000-02-22 23:36:39 -05:00
|
|
|
|
DISTNAME= nvi-1.79
|
2010-10-23 14:26:19 -04:00
|
|
|
|
PKGNAME= nvi-m17n-1.79.19991117
|
2012-12-03 16:44:04 -05:00
|
|
|
|
REVISION= 6
|
2000-02-22 23:36:39 -05:00
|
|
|
|
CATEGORIES= editors
|
2002-10-25 20:39:14 -04:00
|
|
|
|
|
2006-02-04 05:07:58 -05:00
|
|
|
|
MASTER_SITES= ftp://ftp.foretune.co.jp/pub/tools/nvi/
|
|
|
|
|
MASTER_SITES0= ftp://ftp.foretune.co.jp/pub/tools/nvi-m17n/
|
2000-02-22 23:36:39 -05:00
|
|
|
|
|
2006-02-04 05:07:58 -05:00
|
|
|
|
PATCHFILES= nvi-1.79.m17n-19991117.diff.gz:0
|
2000-02-22 23:36:39 -05:00
|
|
|
|
|
2001-06-19 21:43:11 -04:00
|
|
|
|
# License: BSD
|
2000-03-05 13:30:21 -05:00
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2000-02-22 23:36:39 -05:00
|
|
|
|
|
2012-12-03 16:44:04 -05:00
|
|
|
|
WANTLIB= c termlib util
|
2000-04-22 09:03:59 -04:00
|
|
|
|
|
|
|
|
|
FLAVORS= canna
|
|
|
|
|
FLAVOR?=
|
2000-02-23 05:46:16 -05:00
|
|
|
|
|
|
|
|
|
PATCH_DIST_STRIP=-p1
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/build
|
2012-12-03 16:26:50 -05:00
|
|
|
|
AUTOCONF_VERSION=2.13
|
|
|
|
|
CONFIGURE_STYLE=autoconf dest
|
2003-05-12 14:02:44 -04:00
|
|
|
|
CONFIGURE_ENV= OPTFLAG='-D_PATH_SYSEXRC=\"${SYSCONFDIR}/vi.exrc\"'
|
2000-02-23 05:46:16 -05:00
|
|
|
|
CONFIGURE_ARGS+=--enable-multibyte --program-prefix=n --host=${ARCH}-unknown-netbsd
|
2010-10-18 14:00:15 -04:00
|
|
|
|
USE_GROFF = Yes
|
2000-02-22 23:36:39 -05:00
|
|
|
|
|
2011-12-02 09:36:13 -05:00
|
|
|
|
.if ${FLAVOR} == "canna"
|
2010-10-23 14:26:19 -04:00
|
|
|
|
WANTLIB+= canna
|
2010-11-15 18:22:07 -05:00
|
|
|
|
LIB_DEPENDS+= japanese/canna
|
2000-04-22 09:03:59 -04:00
|
|
|
|
CONFIGURE_ARGS+=--enable-canna=${LOCALBASE}
|
2000-02-22 23:36:39 -05:00
|
|
|
|
|
|
|
|
|
CANNA_OPT.euc-jp=canna cannactrl cannakey=
|
|
|
|
|
CANNA_OPT.sjis=${CANNA_OPT.euc-jp}
|
|
|
|
|
CANNA_OPT.iso-2022-jp=${CANNA_OPT.euc-jp}
|
2004-12-26 16:00:13 -05:00
|
|
|
|
.endif
|
|
|
|
|
|
2000-02-22 23:36:39 -05:00
|
|
|
|
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
|
|
|
|
|
|
2001-02-21 12:25:55 -05:00
|
|
|
|
|
|
|
|
|
# nvi provides an outdated version of queue.h, stupid stunt...
|
|
|
|
|
post-extract:
|
|
|
|
|
@rm -f ${WRKDIST}/include/sys/queue.h
|
2012-12-03 16:26:50 -05:00
|
|
|
|
@chmod u+w ${WRKSRC}/configure
|
2001-02-21 12:25:55 -05:00
|
|
|
|
|
2000-02-22 23:36:39 -05:00
|
|
|
|
post-build:
|
|
|
|
|
.for encoding in ${ENCODING}
|
2000-02-23 05:46:16 -05:00
|
|
|
|
@sed -e 's|$${CANNA_OPT}|${CANNA_OPT.${encoding}}|' \
|
2000-02-22 23:36:39 -05:00
|
|
|
|
-e 's|$${AUTODETECT}|${AUTODETECT.${encoding}}|' \
|
|
|
|
|
-e 's|$${ENCODING}|${encoding}|g' \
|
|
|
|
|
-e 's|$${PREFIX}|${PREFIX}|' \
|
|
|
|
|
${FILESDIR}/nvi-m17n > ${WRKDIR}/nvi-${encoding}
|
|
|
|
|
.endfor
|
|
|
|
|
|
2002-10-25 20:39:14 -04:00
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
|
2000-02-22 23:36:39 -05:00
|
|
|
|
post-install:
|
2001-09-11 18:36:34 -04:00
|
|
|
|
@mv ${PREFIX}/share/vi/catalog/ru_SU.KOI8-R \
|
|
|
|
|
${PREFIX}/share/vi/catalog/ru_RU.KOI8-R
|
2000-02-22 23:36:39 -05:00
|
|
|
|
.for encoding in ${ENCODING}
|
|
|
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/nvi-${encoding} ${PREFIX}/bin
|
|
|
|
|
.endfor
|
2000-03-19 12:07:46 -05:00
|
|
|
|
@${INSTALL_DATA} ${WRKDIST}/docs.m17n/README.english \
|
2000-02-22 23:36:39 -05:00
|
|
|
|
${PREFIX}/share/vi/
|
2000-03-19 12:07:46 -05:00
|
|
|
|
@${INSTALL_DATA} ${WRKDIST}/docs.m17n/README.japanese \
|
2000-02-22 23:36:39 -05:00
|
|
|
|
${PREFIX}/share/vi/
|
|
|
|
|
|
2000-02-22 23:52:54 -05:00
|
|
|
|
.include <bsd.port.mk>
|