diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2009-06-06 17:55:02 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2009-06-06 17:55:02 +0000 |
commit | 6d64361dbe018a9c9312becbc64c9e4924a90596 (patch) | |
tree | 3f918612fceedbfed50d24d67da64d216cba452f /data/xkeyboard-config | |
parent | be4a806e7fb6b15e0cd22eae810442898a82f062 (diff) |
BSD build system for xkeyboard-config. Work in progress.
Diffstat (limited to 'data/xkeyboard-config')
30 files changed, 457 insertions, 0 deletions
diff --git a/data/xkeyboard-config/Makefile b/data/xkeyboard-config/Makefile new file mode 100644 index 000000000..468686d73 --- /dev/null +++ b/data/xkeyboard-config/Makefile @@ -0,0 +1,7 @@ +# $OpenBSD: Makefile,v 1.1 2009/06/06 17:55:01 matthieu Exp $ + +SUBDIR= compat geometry keycodes keymap rules semantics symbols types + +build: _SUBDIRUSE + +.include <bsd.subdir.mk> diff --git a/data/xkeyboard-config/Makefile.inc b/data/xkeyboard-config/Makefile.inc new file mode 100644 index 000000000..3cc90ae31 --- /dev/null +++ b/data/xkeyboard-config/Makefile.inc @@ -0,0 +1,37 @@ +# $OpenBSD: Makefile.inc,v 1.1 2009/06/06 17:55:01 matthieu Exp $ + +TOP?= ../../.. +XKB_DIR= ${.CURDIR}/${TOP}/dist/xkeyboard-config +XKB_BASE= ${DESTDIR}${X11BASE}/share/X11/xkb +XKBCOMP= xkbcomp + +.if !target(all) +.if defined(DIR_DATA) +all: _SUBDIRUSE ${DIR_DATA} +.else +all: _SUBDIRUSE +.endif +.endif + +${DIR_DATA}: ${DATA} + rm -f $@ + cd ${.CURDIR} && ${XKBCOMP} -lfhlpR -o ${.OBJDIR}/$@ '*' + +install: ${DATA} install-dir _SUBDIRUSE + @for f in ${DATA}; do \ + echo installing "$$f" ; \ + cmp -s ${XKB_DIR}/${XKB_SUBDIR}/$$f ${XKB_BASE}/${XKB_SUBDIR}/$$f || ${INSTALL_DATA} ${XKB_DIR}/${XKB_SUBDIR}/$$f ${XKB_BASE}/${XKB_SUBDIR}/$$f; done + +.if defined(DIR_DATA) +install-dir: ${DIR_DATA} + ${INSTALL_DATA} ${DIR_DATA} ${XKB_BASE}/${XKB_SUBDIR} +.else +install-dir: +.endif + +.if defined(DIR_DATA) && !target(clean) +clean: + rm -f ${DIR_DATA} +.endif + +.PATH: ${XKB_DIR}/${XKB_SUBDIR} diff --git a/data/xkeyboard-config/compat/Makefile b/data/xkeyboard-config/compat/Makefile new file mode 100644 index 000000000..fd4a6eedf --- /dev/null +++ b/data/xkeyboard-config/compat/Makefile @@ -0,0 +1,14 @@ +# $OpenBSD: Makefile,v 1.1 2009/06/06 17:55:01 matthieu Exp $ + +XKB_SUBDIR= compat +DIR_DATA= compat.dir + +DATA = accessx basic complete \ + default iso9995 \ + japan keypad ledcaps \ + lednum ledscroll level5 \ + misc mousekeys norepeat \ + olpc pc pc98 xfree86 \ + xtest README + +.include <bsd.xorg.mk> diff --git a/data/xkeyboard-config/geometry/Makefile b/data/xkeyboard-config/geometry/Makefile new file mode 100644 index 000000000..cb081ade3 --- /dev/null +++ b/data/xkeyboard-config/geometry/Makefile @@ -0,0 +1,17 @@ +# $OpenBSD: Makefile,v 1.1 2009/06/06 17:55:01 matthieu Exp $ + +SUBDIR= digital_vndr sgi_vndr + +XKB_SUBDIR= geometry +DIR_DATA= geometry.dir + +DATA= amiga ataritt chicony \ + dell everex fujitsu \ + hhk hp keytronic kinesis \ + macintosh microsoft nec \ + northgate pc sony thinkpad \ + sun winbook README + +.include <bsd.xorg.mk> +.include <bsd.subdir.mk> + diff --git a/data/xkeyboard-config/geometry/Makefile.inc b/data/xkeyboard-config/geometry/Makefile.inc new file mode 100644 index 000000000..963600788 --- /dev/null +++ b/data/xkeyboard-config/geometry/Makefile.inc @@ -0,0 +1,3 @@ +# $OpenBSD: Makefile.inc,v 1.1 2009/06/06 17:55:01 matthieu Exp $ +TOP= ../../../.. +.include "../Makefile.inc" diff --git a/data/xkeyboard-config/geometry/digital_vndr/Makefile b/data/xkeyboard-config/geometry/digital_vndr/Makefile new file mode 100644 index 000000000..26914baff --- /dev/null +++ b/data/xkeyboard-config/geometry/digital_vndr/Makefile @@ -0,0 +1,7 @@ +# $OpenBSD: Makefile,v 1.1 2009/06/06 17:55:01 matthieu Exp $ + +XKB_SUBDIR= geometry/digital_vndr + +DATA= lk pc unix + +.include <bsd.xorg.mk> diff --git a/data/xkeyboard-config/geometry/sgi_vndr/Makefile b/data/xkeyboard-config/geometry/sgi_vndr/Makefile new file mode 100644 index 000000000..8f574aa0e --- /dev/null +++ b/data/xkeyboard-config/geometry/sgi_vndr/Makefile @@ -0,0 +1,7 @@ +# $OpenBSD: Makefile,v 1.1 2009/06/06 17:55:01 matthieu Exp $ + +XKB_SUBDIR= geometry/sgi_vndr + +DATA= indigo indy O2 + +.include <bsd.xorg.mk> diff --git a/data/xkeyboard-config/keycodes/Makefile b/data/xkeyboard-config/keycodes/Makefile new file mode 100644 index 000000000..38ba3d622 --- /dev/null +++ b/data/xkeyboard-config/keycodes/Makefile @@ -0,0 +1,23 @@ +# $OpenBSD: Makefile,v 1.1 2009/06/06 17:55:01 matthieu Exp $ + +SUBDIR= digital_vndr sgi_vndr + +XKB_SUBDIR= keycodes +DIR_DATA= keycodes.dir + +DATA= aliases \ + amiga \ + ataritt \ + evdev \ + fujitsu \ + hp \ + ibm \ + macintosh \ + sony \ + sun \ + xfree86 \ + xfree98 \ + README + +.include <bsd.xorg.mk> +.include <bsd.subdir.mk> diff --git a/data/xkeyboard-config/keycodes/digital_vndr/Makefile b/data/xkeyboard-config/keycodes/digital_vndr/Makefile new file mode 100644 index 000000000..7cabe3c84 --- /dev/null +++ b/data/xkeyboard-config/keycodes/digital_vndr/Makefile @@ -0,0 +1,9 @@ +# $OpenBSD: Makefile,v 1.1 2009/06/06 17:55:01 matthieu Exp $ + +XKB_SUBDIR= keycodes/digital_vndr +TOP= ../../../.. + +DATA= lk pc + +.include "../../Makefile.inc" +.include <bsd.xorg.mk> diff --git a/data/xkeyboard-config/keycodes/sgi_vndr/Makefile b/data/xkeyboard-config/keycodes/sgi_vndr/Makefile new file mode 100644 index 000000000..f9ffcf77f --- /dev/null +++ b/data/xkeyboard-config/keycodes/sgi_vndr/Makefile @@ -0,0 +1,9 @@ +# $OpenBSD: Makefile,v 1.1 2009/06/06 17:55:01 matthieu Exp $ + +XKB_SUBDIR= keycodes/sgi_vndr +TOP= ../../../.. + +DATA= indigo indy iris + +.include "../../Makefile.inc" +.include <bsd.xorg.mk> diff --git a/data/xkeyboard-config/keymap/Makefile b/data/xkeyboard-config/keymap/Makefile new file mode 100644 index 000000000..b18cd3871 --- /dev/null +++ b/data/xkeyboard-config/keymap/Makefile @@ -0,0 +1,14 @@ +# $OpenBSD: Makefile,v 1.1 2009/06/06 17:55:01 matthieu Exp $ + +SUBDIR= digital_vndr sgi_vndr sun_vndr + +XKB_SUBDIR= keymap +DIR_DATA= keymap.dir + +DATA= amiga ataritt macintosh \ + sony xfree86 xfree98 \ + README + +.include <bsd.xorg.mk> +.include <bsd.subdir.mk> + diff --git a/data/xkeyboard-config/keymap/Makefile.inc b/data/xkeyboard-config/keymap/Makefile.inc new file mode 100644 index 000000000..b7b8f8df8 --- /dev/null +++ b/data/xkeyboard-config/keymap/Makefile.inc @@ -0,0 +1,3 @@ +# $OpenBSD: Makefile.inc,v 1.1 2009/06/06 17:55:01 matthieu Exp $ +TOP= ../../../.. +.include "../../Makefile.inc" diff --git a/data/xkeyboard-config/keymap/digital_vndr/Makefile b/data/xkeyboard-config/keymap/digital_vndr/Makefile new file mode 100644 index 000000000..6ec86dbff --- /dev/null +++ b/data/xkeyboard-config/keymap/digital_vndr/Makefile @@ -0,0 +1,7 @@ +# $OpenBSD: Makefile,v 1.1 2009/06/06 17:55:01 matthieu Exp $ + +XKB_SUBDIR= keymap/digital_vndr + +DATA= us + +.include <bsd.xorg.mk> diff --git a/data/xkeyboard-config/keymap/sgi_vndr/Makefile b/data/xkeyboard-config/keymap/sgi_vndr/Makefile new file mode 100644 index 000000000..49c909636 --- /dev/null +++ b/data/xkeyboard-config/keymap/sgi_vndr/Makefile @@ -0,0 +1,16 @@ +# $OpenBSD: Makefile,v 1.1 2009/06/06 17:55:01 matthieu Exp $ + +XKB_SUBDIR= keymap/sgi_vndr + +DATA= be bg ca \ + ch cz de \ + dk dvorak \ + es fi \ + fr gb \ + hu it jp \ + no pl pt \ + ru se sk \ + th us + +.include <bsd.xorg.mk> + diff --git a/data/xkeyboard-config/keymap/sun_vndr/Makefile b/data/xkeyboard-config/keymap/sun_vndr/Makefile new file mode 100644 index 000000000..85e2323f2 --- /dev/null +++ b/data/xkeyboard-config/keymap/sun_vndr/Makefile @@ -0,0 +1,11 @@ +# $OpenBSD: Makefile,v 1.1 2009/06/06 17:55:01 matthieu Exp $ + +XKB_SUBDIR= keymap/sun_vndr + +DATA= all de es fi \ + fr no pl \ + ru se uk \ + us + +.include <bsd.xorg.mk> + diff --git a/data/xkeyboard-config/rules/Makefile b/data/xkeyboard-config/rules/Makefile new file mode 100644 index 000000000..39b89c388 --- /dev/null +++ b/data/xkeyboard-config/rules/Makefile @@ -0,0 +1,62 @@ +# $OpenBSD: Makefile,v 1.1 2009/06/06 17:55:01 matthieu Exp $ + +SUBDIR= compat + +XKB_SUBDIR= rules + +DATA= base base.lst base.xml xkb.dtd README + +base_parts = base.hdr.part base.lists.part \ +compat/base.lists.part \ +HDR base.m_k.part \ +HDR base.l1_k.part \ +HDR base.l_k.part \ +HDR base.o_k.part \ +HDR base.ml_g.part \ +HDR base.m_g.part \ +HDR compat/base.mlv_s.part base.mlv_s.part \ +HDR compat/base.ml_s.part base.ml_s.part \ +HDR compat/base.ml1_s.part base.ml1_s.part \ +HDR compat/base.ml1v1_s.part \ +HDR compat/base.l2_s.part base.l2_s.part \ +HDR compat/base.l3_s.part base.l3_s.part \ +HDR compat/base.l4_s.part base.l4_s.part \ +HDR compat/base.l2v2_s.part \ +HDR compat/base.l3v3_s.part \ +HDR compat/base.l4v4_s.part \ +HDR base.m_s.part \ +HDR base.ml_c.part \ +HDR base.ml1_c.part \ +HDR base.m_t.part \ +HDR base.lo_s.part \ +HDR base.l1o_s.part \ +HDR base.l2o_s.part \ +HDR base.l3o_s.part \ +HDR base.l4o_s.part \ +HDR compat/base.o_s.part base.o_s.part \ +HDR base.o_c.part \ +HDR base.o_t.part + +srcdir= ${XKB_DIR}/rules + +all: _SUBDIRUSE files + +files: base base.lst base.xml + +base: $(base_parts_no_compat) + HDR="$(srcdir)/HDR" $(srcdir)/merge.sh $@ $(base_parts) + +base.lst: base.xml + perl $(srcdir)/xml2lst.pl < base.xml > $@ + +base.xml: base.xml.in + sed -e 's,<_,<,g' -e 's,</_,</,g' ${XKB_DIR}/${XKB_SUBDIR}/base.xml.in > $@ + +clean: _SUBDIRUSE + rm -f base base.lst base.xml + +.include <bsd.xorg.mk> +.include <bsd.subdir.mk> + +.PATH: ${XKB_DIR}/rules +.SUFFIXES: .in .lst .xml diff --git a/data/xkeyboard-config/rules/compat/Makefile b/data/xkeyboard-config/rules/compat/Makefile new file mode 100644 index 000000000..f9ca81508 --- /dev/null +++ b/data/xkeyboard-config/rules/compat/Makefile @@ -0,0 +1,73 @@ +# $OpenBSD: Makefile,v 1.1 2009/06/06 17:55:01 matthieu Exp $ + +XKB_SUBDIR= rules/compat +TOP= ../../../.. + +transform_files=layoutRename.lst variantRename.lst + +transform_scripts= \ +ln_s.sh \ +lnv_s.sh \ +ml_s.sh \ +mlv_s.sh \ +ml1_s.sh \ +ml1v_s.sh \ +ml1v1_s.sh + +dist_parts=base.o_s.part + +scripts= \ +base.l2_s.part \ +base.l3_s.part \ +base.l4_s.part \ +base.l2v2_s.part \ +base.l3v3_s.part \ +base.l4v4_s.part \ +base.ml_s.part \ +base.ml1_s.part \ +base.mlv_s.part \ +base.ml1v1_s.part \ +base.ml_s.part + +all: ${scripts} + +srcdir= ${XKB_DIR}/${XKB_SUBDIR} + +base.l2_s.part: ln_s.sh $(transform_files) + sh ${srcdir}/ln_s.sh 2 + +base.l3_s.part: ln_s.sh $(transform_files) + sh ${srcdir}/ln_s.sh 3 + +base.l4_s.part: ln_s.sh $(transform_files) + sh ${srcdir}/ln_s.sh 4 + +base.l2v2_s.part: lnv_s.sh $(transform_files) + sh ${srcdir}/lnv_s.sh 2 + +base.l3v3_s.part: lnv_s.sh $(transform_files) + sh ${srcdir}/lnv_s.sh 3 + +base.l4v4_s.part: lnv_s.sh $(transform_files) + sh ${srcdir}/lnv_s.sh 4 + +base.ml_s.part: ml_s.sh $(transform_files) + sh ${srcdir}/ml_s.sh + +base.ml1_s.part: ml1_s.sh $(transform_files) + sh ${srcdir}/ml1_s.sh + +base.mlv_s.part: mlv_s.sh $(transform_files) + sh ${srcdir}/mlv_s.sh + +base.ml1v1_s.part: ml1v1_s.sh $(transform_files) + sh ${srcdir}/ml1v1_s.sh + +clean: + rm -f ${scripts} + +.include "../../Makefile.inc" +.include <bsd.xorg.mk> + +.SUFFIXES: .sh +.PATH: ${XSRCDIR}/dist/xkeyboard-config/rules/compat diff --git a/data/xkeyboard-config/semantics/Makefile b/data/xkeyboard-config/semantics/Makefile new file mode 100644 index 000000000..4684fb509 --- /dev/null +++ b/data/xkeyboard-config/semantics/Makefile @@ -0,0 +1,10 @@ +# $OpenBSD: Makefile,v 1.1 2009/06/06 17:55:01 matthieu Exp $ + +XKB_SUBDIR= semantics +DIR_DATA= semantics.dir + +DATA= basic complete default \ + xtest + +.include <bsd.xorg.mk> + diff --git a/data/xkeyboard-config/symbols/Makefile b/data/xkeyboard-config/symbols/Makefile new file mode 100644 index 000000000..ff072e244 --- /dev/null +++ b/data/xkeyboard-config/symbols/Makefile @@ -0,0 +1,40 @@ +# $OpenBSD: Makefile,v 1.1 2009/06/06 17:55:01 matthieu Exp $ + +SUBDIR= digital_vndr fujitsu_vndr hp_vndr macintosh_vndr nec_vndr sgi_vndr \ + sony_vndr sun_vndr xfree68_vndr + +XKB_SUBDIR= symbols + +DATA= ad af al \ + am ara az \ + be bd \ + bg br ba \ + bt by brai \ + ca cd \ + ch cn cz \ + de dk \ + ee es et epo \ + fi fo fr \ + gb ge gh gn \ + gr hr hu \ + ie il in iq \ + ir is it jp \ + kg kh kr kz \ + la latam latin \ + lk lt lv \ + ma mao me mk \ + mm mn mt mv \ + ng nl no np \ + pc pk pl pt \ + ro rs ru \ + se si sk sn \ + sy th \ + terminate \ + tj tm tr \ + ua us uz vn \ + za \ + altwin capslock compose ctrl eurosign group inet \ + keypad kpdl level3 level5 nbsp olpc shift srvr_ctrl typo + +.include <bsd.xorg.mk> +.include <bsd.subdir.mk> diff --git a/data/xkeyboard-config/symbols/Makefile.inc b/data/xkeyboard-config/symbols/Makefile.inc new file mode 100644 index 000000000..b7b8f8df8 --- /dev/null +++ b/data/xkeyboard-config/symbols/Makefile.inc @@ -0,0 +1,3 @@ +# $OpenBSD: Makefile.inc,v 1.1 2009/06/06 17:55:01 matthieu Exp $ +TOP= ../../../.. +.include "../../Makefile.inc" diff --git a/data/xkeyboard-config/symbols/digital_vndr/Makefile b/data/xkeyboard-config/symbols/digital_vndr/Makefile new file mode 100644 index 000000000..2ada2f0d6 --- /dev/null +++ b/data/xkeyboard-config/symbols/digital_vndr/Makefile @@ -0,0 +1,8 @@ +# $OpenBSD: Makefile,v 1.1 2009/06/06 17:55:01 matthieu Exp $ + +XKB_SUBDIR= symbols/digital_vndr + +DATA= lk pc us \ + vt + +.include <bsd.xorg.mk> diff --git a/data/xkeyboard-config/symbols/fujitsu_vndr/Makefile b/data/xkeyboard-config/symbols/fujitsu_vndr/Makefile new file mode 100644 index 000000000..23e818379 --- /dev/null +++ b/data/xkeyboard-config/symbols/fujitsu_vndr/Makefile @@ -0,0 +1,7 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2009/06/06 17:55:01 matthieu Exp $ + +XKB_SUBDIR= symbols/fujitsu_vndr + +DATA= jp us + +.include <bsd.xorg.mk> diff --git a/data/xkeyboard-config/symbols/hp_vndr/Makefile b/data/xkeyboard-config/symbols/hp_vndr/Makefile new file mode 100644 index 000000000..72634d8f5 --- /dev/null +++ b/data/xkeyboard-config/symbols/hp_vndr/Makefile @@ -0,0 +1,7 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2009/06/06 17:55:01 matthieu Exp $ + +XKB_SUBDIR= symbols/hp_vndr + +DATA= us + +.include <bsd.xorg.mk> diff --git a/data/xkeyboard-config/symbols/macintosh_vndr/Makefile b/data/xkeyboard-config/symbols/macintosh_vndr/Makefile new file mode 100644 index 000000000..fcabeba37 --- /dev/null +++ b/data/xkeyboard-config/symbols/macintosh_vndr/Makefile @@ -0,0 +1,12 @@ +# $OpenBSD: Makefile,v 1.1 2009/06/06 17:55:01 matthieu Exp $ + +XKB_SUBDIR= symbols/macintosh_vndr + +DATA= apple ch de dk \ + es fi fr \ + gb is it \ + latam nl no pt \ + se us + +.include <bsd.xorg.mk> + diff --git a/data/xkeyboard-config/symbols/nec_vndr/Makefile b/data/xkeyboard-config/symbols/nec_vndr/Makefile new file mode 100644 index 000000000..2ce908efd --- /dev/null +++ b/data/xkeyboard-config/symbols/nec_vndr/Makefile @@ -0,0 +1,7 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2009/06/06 17:55:01 matthieu Exp $ + +XKB_SUBDIR= symbols/nec_vndr + +DATA= jp + +.include <bsd.xorg.mk> diff --git a/data/xkeyboard-config/symbols/sgi_vndr/Makefile b/data/xkeyboard-config/symbols/sgi_vndr/Makefile new file mode 100644 index 000000000..cd34b71e7 --- /dev/null +++ b/data/xkeyboard-config/symbols/sgi_vndr/Makefile @@ -0,0 +1,7 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2009/06/06 17:55:01 matthieu Exp $ + +XKB_SUBDIR= symbols/sgi_vndr + +DATA= jp + +.include <bsd.xorg.mk> diff --git a/data/xkeyboard-config/symbols/sony_vndr/Makefile b/data/xkeyboard-config/symbols/sony_vndr/Makefile new file mode 100644 index 000000000..66a2386fa --- /dev/null +++ b/data/xkeyboard-config/symbols/sony_vndr/Makefile @@ -0,0 +1,7 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2009/06/06 17:55:01 matthieu Exp $ + +XKB_SUBDIR= symbols/sony_vndr + +DATA= us + +.include <bsd.xorg.mk> diff --git a/data/xkeyboard-config/symbols/sun_vndr/Makefile b/data/xkeyboard-config/symbols/sun_vndr/Makefile new file mode 100644 index 000000000..ed9cec94c --- /dev/null +++ b/data/xkeyboard-config/symbols/sun_vndr/Makefile @@ -0,0 +1,12 @@ +# $OpenBSD: Makefile,v 1.1 2009/06/06 17:55:01 matthieu Exp $ + +XKB_SUBDIR= symbols/sun_vndr + +DATA= cs cz de dk es \ + fi fr gb gr hu \ + it jp ko lt lv \ + nl no pl pt ru \ + se solaris sw tr tuv \ + tw us usb + +.include <bsd.xorg.mk> diff --git a/data/xkeyboard-config/symbols/xfree68_vndr/Makefile b/data/xkeyboard-config/symbols/xfree68_vndr/Makefile new file mode 100644 index 000000000..3606d47bd --- /dev/null +++ b/data/xkeyboard-config/symbols/xfree68_vndr/Makefile @@ -0,0 +1,7 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2009/06/06 17:55:01 matthieu Exp $ + +XKB_SUBDIR= symbols/xfree68_vndr + +DATA= amiga ataritt + +.include <bsd.xorg.mk> diff --git a/data/xkeyboard-config/types/Makefile b/data/xkeyboard-config/types/Makefile new file mode 100644 index 000000000..b56ab64c3 --- /dev/null +++ b/data/xkeyboard-config/types/Makefile @@ -0,0 +1,11 @@ +# $OpenBSD: Makefile,v 1.1 2009/06/06 17:55:01 matthieu Exp $ + +XKB_SUBDIR= types + +DATA= basic cancel caps \ + complete default extra \ + iso9995 level5 mousekeys numpad \ + pc README + +.include <bsd.xorg.mk> + |