When WITH_ICONV is set, use our in-tree iconv.
This commit is contained in:
+23
-13
@@ -76,18 +76,26 @@ NLSLINKS_es_ES.ISO8859-1= es_ES.ISO8859-15
|
|||||||
CFLAGS+= -DNO_NLS_CATALOGS
|
CFLAGS+= -DNO_NLS_CATALOGS
|
||||||
.else
|
.else
|
||||||
CFLAGS+= -DHAVE_ICONV
|
CFLAGS+= -DHAVE_ICONV
|
||||||
|
.if ${MK_ICONV} != "no"
|
||||||
|
NLSLINKS_de_DE.ISO8859-1 += de_AT.UTF-8 de_CH.UTF-8 de_DE.UTF-8
|
||||||
|
NLSLINKS_el_GR.ISO8859-7 = el_GR.UTF-8
|
||||||
|
NLSLINKS_es_ES.ISO8859-1 += es_ES.UTF-8
|
||||||
|
NLSLINKS_et_EE.ISO8859-15 = et_EE.UTF-8
|
||||||
|
NLSLINKS_fi_FI.ISO8859-1 += fi_FI.UTF-8
|
||||||
|
NLSLINKS_fr_FR.ISO8859-1 += fr_BE.UTF-8 fr_CA.UTF-8 fr_CH.UTF-8 fr_FR.UTF-8
|
||||||
|
NLSLINKS_it_IT.ISO8859-1 += it_CH.UTF-8 it_IT.UTF-8
|
||||||
|
NLSLINKS_ja_JP.eucJP = ja_JP.SJIS ja_JP.UTF-8
|
||||||
|
NLSLINKS_ru_RU.KOI8-R = ru_RU.CP1251 ru_RU.CP866 ru_RU.ISO8859-5 ru_RU.UTF-8
|
||||||
|
NLSLINKS_uk_UA.KOI8-U = uk_UA.ISO8859-5 uk_UA.UTF-8
|
||||||
|
.else
|
||||||
|
# Above links can be installed from ports/shells/tcsh_nls
|
||||||
|
|
||||||
|
GENHDRS+= iconv.h
|
||||||
SRCS+= iconv_stub.c
|
SRCS+= iconv_stub.c
|
||||||
# Following links can be installed from ports/shells/tcsh_nls:
|
|
||||||
# NLSLINKS_de_DE.ISO8859-1 += de_AT.UTF-8 de_CH.UTF-8 de_DE.UTF-8
|
iconv.h: ${.CURDIR}/iconv_stub.h
|
||||||
# NLSLINKS_el_GR.ISO8859-7 = el_GR.UTF-8
|
cp ${.CURDIR}/iconv_stub.h ${.TARGET}
|
||||||
# NLSLINKS_es_ES.ISO8859-1 += es_ES.UTF-8
|
.endif
|
||||||
# NLSLINKS_et_EE.ISO8859-15 = et_EE.UTF-8
|
|
||||||
# NLSLINKS_fi_FI.ISO8859-1 += fi_FI.UTF-8
|
|
||||||
# NLSLINKS_fr_FR.ISO8859-1 += fr_BE.UTF-8 fr_CA.UTF-8 fr_CH.UTF-8 fr_FR.UTF-8
|
|
||||||
# NLSLINKS_it_IT.ISO8859-1 += it_CH.UTF-8 it_IT.UTF-8
|
|
||||||
# NLSLINKS_ja_JP.eucJP = ja_JP.SJIS ja_JP.UTF-8
|
|
||||||
# NLSLINKS_ru_RU.KOI8-R = ru_RU.CP1251 ru_RU.CP866 ru_RU.ISO8859-5 ru_RU.UTF-8
|
|
||||||
# NLSLINKS_uk_UA.KOI8-U = uk_UA.ISO8859-5 uk_UA.UTF-8
|
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
NLSNAME= tcsh
|
NLSNAME= tcsh
|
||||||
@@ -105,7 +113,8 @@ build-tools: gethost
|
|||||||
|
|
||||||
gethost: gethost.c sh.err.h tc.const.h sh.h
|
gethost: gethost.c sh.err.h tc.const.h sh.h
|
||||||
@rm -f ${.TARGET}
|
@rm -f ${.TARGET}
|
||||||
${CC} -o gethost ${LDFLAGS} ${CFLAGS} ${TCSHDIR}/gethost.c
|
${CC} -o gethost ${LDFLAGS} ${CFLAGS:C/-DHAVE_ICONV//} \
|
||||||
|
${TCSHDIR}/gethost.c
|
||||||
|
|
||||||
tc.defs.c: gethost ${.CURDIR}/host.defs
|
tc.defs.c: gethost ${.CURDIR}/host.defs
|
||||||
@rm -f ${.TARGET}
|
@rm -f ${.TARGET}
|
||||||
@@ -133,7 +142,8 @@ tc.const.h: tc.const.c sh.char.h config.h config_f.h sh.types.h sh.err.h
|
|||||||
@echo '/* Do not edit this file, make creates it. */' > ${.TARGET}
|
@echo '/* Do not edit this file, make creates it. */' > ${.TARGET}
|
||||||
@echo '#ifndef _h_tc_const' >> ${.TARGET}
|
@echo '#ifndef _h_tc_const' >> ${.TARGET}
|
||||||
@echo '#define _h_tc_const' >> ${.TARGET}
|
@echo '#define _h_tc_const' >> ${.TARGET}
|
||||||
${CC} -E ${CFLAGS} ${.ALLSRC} -D_h_tc_const | grep 'Char STR' | \
|
${CC} -E ${CFLAGS:C/-DHAVE_ICONV//} ${.ALLSRC} -D_h_tc_const | \
|
||||||
|
grep 'Char STR' | \
|
||||||
sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \
|
sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \
|
||||||
sort >> ${.TARGET}
|
sort >> ${.TARGET}
|
||||||
@echo '#endif /* _h_tc_const */' >> ${.TARGET}
|
@echo '#endif /* _h_tc_const */' >> ${.TARGET}
|
||||||
|
|||||||
Reference in New Issue
Block a user