head	1.2;
access;
symbols
	RELENG_9_1_0_RELEASE:1.1.2.1.4.2
	RELENG_9_1:1.1.2.1.0.4
	RELENG_9_1_BP:1.1.2.1
	RELENG_9_0_0_RELEASE:1.1.2.1.2.1
	RELENG_9_0:1.1.2.1.0.2
	RELENG_9_0_BP:1.1.2.1
	RELENG_9:1.1.0.2
	RELENG_9_BP:1.1;
locks; strict;
comment	@# @;


1.2
date	2012.11.17.01.54.01;	author svnexp;	state Exp;
branches;
next	1.1;

1.1
date	2011.02.25.00.04.39;	author gabor;	state Exp;
branches
	1.1.2.1;
next	;

1.1.2.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.1.2.1.2.1
	1.1.2.1.4.1;
next	1.1.2.2;

1.1.2.2
date	2012.11.17.11.37.32;	author svnexp;	state Exp;
branches;
next	;

1.1.2.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.1.2.1.2.2;

1.1.2.1.2.2
date	2012.11.17.08.37.28;	author svnexp;	state Exp;
branches;
next	;

1.1.2.1.4.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.1.2.1.4.2;

1.1.2.1.4.2
date	2012.11.17.08.48.20;	author svnexp;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Switching exporter and resync
@
text
@# $FreeBSD: head/tools/test/iconv/Makefile 219019 2011-02-25 00:04:39Z gabor $

SUBDIR=	tablegen refgen	posix gnu

ENCODING= ASCII ISO8859-1 ISO8859-2 ISO8859-3 ISO8859-4	ISO8859-5 ISO8859-6 \
	ISO8859-7 ISO8859-8 ISO8859-9 ISO8859-10 ISO8859-11 ISO8859-13 \
	ISO8859-14 ISO8859-15 ISO8859-16 ARMSCII-8 BIG5 BIG5-HKSCS \
	CP1131 CP1251 CP866 CP949 GB18030 GB2312 GBK VISCII KOI8-R KOI8-U \
	PT154 SHIFT_JIS EUC-CN EUC-JP EUC-KR

.if defined(EXTRA_CHECK)
ENCODING+= ATARIST BIG5-2003 C99 CP1046 CP1124 CP1125 CP1129 CP1131 CP1133 \
	CP1161 CP1162 CP1163 CP1250 CP1251 CP1252 CP1253 CP1254 CP1255 \
	CP1256 CP1257 CP1258 CP437 CP737 CP775 CP850 CP852 CP853 CP855 \
	CP856 CP857 CP858 CP860 CP861 CP862 CP863 CP864 CP865 CP866 CP869 \
	CP874 CP922 CP932 CP936 CP943 CP949 CP950 DEC-HANYU EUC-TW \
	EUC-JIS-2004 GB18030 GBK GEORGIAN-ACADEMY GEORGIAN-PS HP-ROMAN8 \
	HZ ISO-2022-CN ISO-2022-CN-EXT ISO-2022-JP ISO-2022-JP-1 \
	ISO-2022-JP-2 ISO-2022-JP-2004 ISO-2022-KR ISO-IR-14 ISO-IR-57 \
	ISO-IR-165 JAVA JIS_X0201 JIS_X0208-1990 JOHAB KOI8-RU KOI8-T \
	KZ-1048 MULELAO-1 NEXTSTEP PT154 RISCOS-LATIN1 TCVN5712-1 \
	TDS565
#
# MAC encodings are known to be outdated in GNU so it's no good
# to ensure compatibility blindly here
#
#ENCODING+= MACARABIC MACCENTRALEUROPE MACCROATIAN MACCYRILLIC MACGREEK \
#	MACICELAND MACROMANIA MACROMAN MACTHAI MACTURKISH MACUKRAINE \
#	MACHEBREW
.endif

GEN_FWD?= ${.CURDIR}/tablegen/tablegen -t
GEN_REV?= ${.CURDIR}/tablegen/tablegen -tr
REF_FWD?= ${.CURDIR}/refgen/refgen -t
REF_REV?= ${.CURDIR}/refgen/refgen -tr
CMP?=	${.CURDIR}/tablegen/cmp.sh

make-ref: refgen
	mkdir -p ref
.for enc in ${ENCODING}
	@@echo "Generating ${enc} --> UTF-32 ..."
	-@@${REF_FWD} ${enc} >ref/${enc}
	@@echo "Generating UTF-32 --> ${enc} ..."
	-@@${REF_REV} ${enc} >ref/${enc}-rev
.endfor

check: tablegen
	mkdir -p output
.for enc in ${ENCODING}
	@@echo "Checking ${enc} --> UTF-32 ..."
	-@@${GEN_FWD} ${enc} >output/${enc}
	@@${CMP} ref/${enc} output/${enc}
	@@echo "Checking UTF-32 --> ${enc} ..."
	-@@${GEN_REV} ${enc} >output/${enc}-rev
	@@${CMP} ref/${enc}-rev output/${enc}-rev
.endfor

perftest: refgen tablegen
.for enc in ${ENCODING}
	@@echo "Checking ${enc} --> UTF-32 ..."
	@@echo "GNU runtime:"
	@@/usr/bin/time -h ${REF_FWD} ${enc} >/dev/null
	@@echo "BSD runtime:"
	@@/usr/bin/time -h ${GEN_FWD} ${enc} >/dev/null
	@@echo "Checking UTF-32 --> ${enc} ..."
	@@echo "GNU runtime:"
	@@/usr/bin/time -h ${REF_REV} ${enc} >/dev/null
	@@echo "BSD runtime:"
	@@/usr/bin/time -h ${GEN_REV} ${enc} >/dev/null
.endfor

posixtest: posix
	@@${.CURDIR}/posix/posix

gnutest: gnu
	@@${.CURDIR}/gnu/gnu

test-everything: check perftest posixtest gnutest

CLEANDIRS+= output

.include <bsd.prog.mk>
@


1.1
log
@SVN rev 219019 on 2011-02-25 00:04:39Z by gabor

Add the BSD-licensed Citrus iconv to the base system with default off
setting. It can be built by setting the WITH_ICONV knob. While this
knob is unset, the library part, the binaries, the header file and
the metadata files will not be built or installed so it makes no impact
on the system if left turned off.

This work is based on the iconv implementation in NetBSD but a great
number of improvements and feature additions have been included:

- Some utilities have been added. There is a conversion table generator,
  which can compare conversion tables to reference data generated by
  GNU libiconv. This helps ensuring conversion compatibility.
- UTF-16 surrogate support and some endianness issues have been fixed.
- The rather chaotic Makefiles to build metadata have been refactored
  and cleaned up, now it is easy to read and it is also easier to add
  support for new encodings.
- A bunch of new encodings and encoding aliases have been added.
- Support for 1->2, 1->3 and 1->4 mappings, which is needed for
  transliterating with flying accents as GNU does, like "u.
- Lots of warnings have been fixed, the major part of the code is
  now WARNS=6 clean.
- New section 1 and section 5 manual pages have been added.
- Some GNU-specific calls have been implemented:
  iconvlist(), iconvctl(), iconv_canonicalize(), iconv_open_into()
- Support for GNU's //IGNORE suffix has been added.
- The "-" argument for stdin is now recognized in iconv(1) as per POSIX.
- The Big5 conversion module has been fixed.
- The iconv.h header files is supposed to be compatible with the
  GNU version, i.e. sources should build with base iconv.h and
  GNU libiconv. It also includes a macro magic to deal with the
  char ** and const char ** incompatibility.
- GNU compatibility: "" or "char" means the current local
  encoding in use
- Various cleanups and style(9) fixes.

Approved by:	delphij (mentor)
Obtained from:	The NetBSD Project
Sponsored by:	Google Summer of Code 2009
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.1.2.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.1.2.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/9/tools/test/iconv/Makefile 219019 2011-02-25 00:04:39Z gabor $
@


1.1.2.1.4.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.1.2.1.4.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.1/tools/test/iconv/Makefile 219019 2011-02-25 00:04:39Z gabor $
@


1.1.2.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.1.2.1.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.0/tools/test/iconv/Makefile 219019 2011-02-25 00:04:39Z gabor $
@


