mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-01 22:05:08 +00:00
f4bbcde9f5
==> warn installer if they don't have the required fonts installed Requested by: Satoshi
31 lines
1.2 KiB
Bash
31 lines
1.2 KiB
Bash
#!/bin/sh -x
|
|
|
|
# set up the resource file
|
|
RESFILE=${PREFIX}/lib/X11/cxterm.dic
|
|
sed -e 's|^\(cxterm[*.].*hanziInputDir:\).*$|\1 '"${RESFILE}"'/gb|;
|
|
s|^\(cxtermb5[*.].*hanziInputDir:\).*$|\1 '"${RESFILE}"'/big5|
|
|
s|^\(cxtermjis[*.].*hanziInputDir:\).*$|\1 '"${RESFILE}"'/jis|
|
|
s|^\(cxtermks[*.].*hanziInputDir:\).*$|\1 '"${RESFILE}"'/ks|' \
|
|
${WRKSRC}/cxterm/CXterm.ad > ${WRKDIR}/CXterm.ad
|
|
|
|
|
|
# setup helper script
|
|
echo "creating CXterm script for inexperienced users"
|
|
CXTERM_SH=${WRKDIR}/CXterm.sh
|
|
|
|
echo "#!/bin/sh" > $CXTERM_SH
|
|
echo "" >> $CXTERM_SH
|
|
echo "CXTERM_AD=${PREFIX}/lib/X11/cxterm.dic/CXterm.ad" >> $CXTERM_SH
|
|
echo "XFONTDIR=${PREFIX}/lib/X11/fonts/chinese" >> $CXTERM_SH
|
|
echo "" >> $CXTERM_SH
|
|
/bin/cat ${WRKSRC}/scripts/CXterm.sh >> $CXTERM_SH
|
|
|
|
|
|
# look for Simple fonts from the X11R6 misc fonts collection
|
|
if [ ! -f ${X11BASE}/lib/X11/fonts/misc/gb16st.pcf.Z ]; then
|
|
echo ""
|
|
echo "You need to install the X11R6 misc fonts in order to get the"
|
|
echo "Simple Chinese fonts."
|
|
echo ""
|
|
fi
|