3 .if ${MACHINE_CPUARCH} != "ia64"
9 SRCS= anonFTP.c cdrom.c command.c config.c devices.c dhcp.c \
10 disks.c dispatch.c dist.c dmenu.c doc.c dos.c floppy.c \
11 ftp.c globals.c http.c httpdirect.c index.c install.c \
12 installUpgrade.c keymap.c label.c main.c makedevs.c media.c menus.c \
13 misc.c modules.c mouse.c msg.c network.c nfs.c options.c package.c \
14 system.c tcpip.c termcap.c ttys.c ufs.c usb.c user.c \
15 variable.c ${_wizard} keymap.h countries.h
18 .if ${MACHINE} == "pc98"
21 CFLAGS+= -I${.CURDIR}/../../gnu/lib/libodialog -I.
25 DPADD= ${LIBODIALOG} ${LIBNCURSES} ${LIBUTIL} ${LIBDISK} ${LIBFTPIO}
26 LDADD= -lodialog -lncurses -lutil -ldisk -lftpio
28 CLEANFILES= makedevs.c rtermcap
29 CLEANFILES+= keymap.tmp keymap.h countries.tmp countries.h
31 .if exists(${.CURDIR}/../../share/termcap/termcap.src)
32 RTERMCAP= TERMCAP=${.CURDIR}/../../share/termcap/termcap.src ./rtermcap
37 makedevs.c: Makefile rtermcap
38 echo '#include <sys/types.h>' > makedevs.c
40 file2c 'const char termcap_ansi[] = {' ',0};' \
42 ${RTERMCAP} cons25w | \
43 file2c 'const char termcap_cons25w[] = {' ',0};' \
45 ${RTERMCAP} cons25 | \
46 file2c 'const char termcap_cons25[] = {' ',0};' \
48 ${RTERMCAP} cons25-m | \
49 file2c 'const char termcap_cons25_m[] = {' ',0};' \
51 ${RTERMCAP} cons25r | \
52 file2c 'const char termcap_cons25r[] = {' ',0};' \
54 ${RTERMCAP} cons25r-m | \
55 file2c 'const char termcap_cons25r_m[] = {' ',0};' \
57 ${RTERMCAP} cons25l1 | \
58 file2c 'const char termcap_cons25l1[] = {' ',0};' \
60 ${RTERMCAP} cons25l1-m | \
61 file2c 'const char termcap_cons25l1_m[] = {' ',0};' \
64 file2c 'const char termcap_vt100[] = {' ',0};' \
67 file2c 'const char termcap_xterm[] = {' ',0};' \
73 ${CC} -o ${.TARGET} ${.ALLSRC} -ltermcap
75 .if ${MACHINE} == "pc98"
76 KEYMAPS= jp.pc98 jp.pc98.iso
78 KEYMAPS= be.iso bg.bds.ctrlcaps bg.phonetic.ctrlcaps br275.iso \
79 ce.iso2 cs.latin2.qwertz danish.iso el.iso07 \
80 estonian.cp850 estonian.iso estonian.iso15 finnish.iso fr.iso \
81 german.iso gr.elot.acc gr.us101.acc hr.iso hu.iso2.101keys \
82 it.iso icelandic.iso jp.106 latinamerican latinamerican.iso.acc \
83 norwegian.iso pl_PL.ISO8859-2 \
84 pt.iso ru.koi8-r si.iso sk.iso2 spanish.iso spanish.iso.acc swedish.iso \
86 swissgerman.iso ua.koi8-u ua.koi8-u.shift.alt uk.iso us.dvorak \
87 us.iso us.pc-ctrl us.unix
92 for map in ${KEYMAPS} ; do \
93 KEYMAP_PATH=${.CURDIR}/../../share/syscons/keymaps \
94 kbdcontrol -L $$map | \
95 sed -e '/^static accentmap_t/,$$d' >> keymap.tmp ; \
97 echo "static struct keymapInfo keymapInfos[] = {" >> keymap.tmp
98 for map in ${KEYMAPS} ; do \
99 echo -n ' { "'$$map'", ' >> keymap.tmp ; \
100 echo "&keymap_$$map }," | tr '[-.]' '_' >> keymap.tmp ; \
102 ( echo " { NULL, NULL }"; echo "};" ; echo "" ) >> keymap.tmp
103 mv keymap.tmp keymap.h
105 countries.h: ${.CURDIR}/../../share/misc/iso3166
110 print "DMenu MenuCountry = {"; \
111 print " DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,"; \
112 print " \"Country Selection\","; \
113 print " \"Please choose a country, region, or group.\\n\""; \
114 print " \"Select an item using [SPACE] or [ENTER].\","; \
115 printf " NULL,\n NULL,\n { "; \
117 /^[[:space:]]*#/ {next;} \
118 {if (num > 1) {printf " ";} \
119 print "{ \"" num "\", \"" $$4 "\"" \
120 ", dmenuVarCheck, dmenuSetCountryVariable" \
121 ", NULL, VAR_COUNTRY \"=" tolower($$1) "\" },"; \
123 END {print " { NULL } }\n};\n";}' < ${.ALLSRC} > countries.tmp
124 mv countries.tmp ${.TARGET}
126 .include <bsd.prog.mk>