2001-01-17 03:32:00 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2003-11-02 08:58:57 +00:00
|
|
|
.if ${MACHINE_ARCH} != "ia64"
|
|
|
|
_wizard= wizard.c
|
|
|
|
.endif
|
|
|
|
|
2006-08-07 23:35:49 +00:00
|
|
|
PROG= sade
|
|
|
|
MAN= sade.8
|
|
|
|
SRCS= command.c config.c devices.c \
|
|
|
|
disks.c dispatch.c dmenu.c \
|
|
|
|
globals.c install.c keymap.c \
|
2006-08-09 09:12:01 +00:00
|
|
|
label.c main.c menus.c misc.c \
|
2006-08-07 23:35:49 +00:00
|
|
|
msg.c system.c termcap.c \
|
|
|
|
variable.c ${_wizard} keymap.h
|
2006-08-09 08:25:21 +00:00
|
|
|
WARNS?= 3
|
2006-08-07 23:35:49 +00:00
|
|
|
|
|
|
|
# command.c
|
1995-05-27 10:47:44 +00:00
|
|
|
|
2000-06-05 13:17:23 +00:00
|
|
|
.if ${MACHINE} == "pc98"
|
|
|
|
CFLAGS+= -DPC98
|
|
|
|
.endif
|
2003-04-04 17:49:21 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../../gnu/lib/libdialog -I.
|
1995-05-01 21:56:32 +00:00
|
|
|
|
2000-09-16 03:56:25 +00:00
|
|
|
DPADD= ${LIBDIALOG} ${LIBNCURSES} ${LIBUTIL} ${LIBDISK} ${LIBFTPIO}
|
|
|
|
LDADD= -ldialog -lncurses -lutil -ldisk -lftpio
|
1995-04-27 12:50:35 +00:00
|
|
|
|
2006-08-09 09:12:01 +00:00
|
|
|
CLEANFILES= keymap.tmp keymap.h
|
1995-04-27 12:50:35 +00:00
|
|
|
|
2001-06-17 03:13:48 +00:00
|
|
|
.if ${MACHINE} == "pc98"
|
|
|
|
KEYMAPS= jp.pc98 jp.pc98.iso
|
|
|
|
.else
|
2001-12-10 08:37:51 +00:00
|
|
|
KEYMAPS= be.iso bg.bds.ctrlcaps bg.phonetic.ctrlcaps br275.iso \
|
2005-03-19 02:28:02 +00:00
|
|
|
ce.iso2 cs.latin2.qwertz danish.iso el.iso07 \
|
|
|
|
estonian.cp850 estonian.iso estonian.iso15 finnish.iso fr.iso \
|
2003-11-20 20:43:06 +00:00
|
|
|
german.iso gr.elot.acc gr.us101.acc hr.iso hu.iso2.101keys \
|
|
|
|
it.iso icelandic.iso jp.106 norwegian.iso pl_PL.ISO8859-2 \
|
2005-03-19 02:28:02 +00:00
|
|
|
pt.iso ru.koi8-r si.iso sk.iso2 spanish.iso swedish.iso \
|
|
|
|
swissfrench.iso \
|
2003-11-20 20:43:06 +00:00
|
|
|
swissgerman.iso ua.koi8-u ua.koi8-u.shift.alt uk.iso us.dvorak \
|
|
|
|
us.iso us.pc-ctrl us.unix
|
2001-06-17 03:13:48 +00:00
|
|
|
.endif
|
1996-11-09 16:47:08 +00:00
|
|
|
|
1996-11-09 20:50:23 +00:00
|
|
|
keymap.h:
|
1996-11-09 16:47:08 +00:00
|
|
|
rm -f keymap.tmp
|
|
|
|
for map in ${KEYMAPS} ; do \
|
2001-05-15 22:54:15 +00:00
|
|
|
KEYMAP_PATH=${.CURDIR}/../../share/syscons/keymaps \
|
2001-05-12 09:19:36 +00:00
|
|
|
kbdcontrol -L $$map | \
|
1998-01-27 14:01:19 +00:00
|
|
|
sed -e '/^static accentmap_t/,$$d' >> keymap.tmp ; \
|
1996-11-09 16:47:08 +00:00
|
|
|
done
|
|
|
|
echo "static struct keymapInfo keymapInfos[] = {" >> keymap.tmp
|
|
|
|
for map in ${KEYMAPS} ; do \
|
|
|
|
echo -n ' { "'$$map'", ' >> keymap.tmp ; \
|
|
|
|
echo "&keymap_$$map }," | tr '[-.]' '_' >> keymap.tmp ; \
|
|
|
|
done
|
2006-02-28 21:49:33 +00:00
|
|
|
( echo " { NULL, NULL }"; echo "};" ; echo "" ) >> keymap.tmp
|
1996-11-09 16:47:08 +00:00
|
|
|
mv keymap.tmp keymap.h
|
|
|
|
|
1995-04-27 12:50:35 +00:00
|
|
|
.include <bsd.prog.mk>
|