diff options
author | jlam <jlam> | 1999-09-07 14:53:55 +0000 |
---|---|---|
committer | jlam <jlam> | 1999-09-07 14:53:55 +0000 |
commit | 22de939ccf45d5300f4976f573fa9d2741c11939 (patch) | |
tree | 7514e951ca070fafd5f406dbd8ac15a8549bffd4 /misc | |
parent | 5b9b7e455faf2198a43023672b464e3c50a2425b (diff) | |
download | pkgsrc-22de939ccf45d5300f4976f573fa9d2741c11939.tar.gz |
Let user choose which keyboard layout to compile via mk.conf make variable
`DT_LAYOUT'.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/dt/Makefile | 18 | ||||
-rw-r--r-- | misc/dt/files/patch-sum | 5 | ||||
-rw-r--r-- | misc/dt/patches/patch-aa | 19 |
3 files changed, 34 insertions, 8 deletions
diff --git a/misc/dt/Makefile b/misc/dt/Makefile index 89f37b0c3b4..4a5a427dcf3 100644 --- a/misc/dt/Makefile +++ b/misc/dt/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 1999/07/06 17:30:21 ender Exp $ +# $NetBSD: Makefile,v 1.5 1999/09/07 14:53:55 jlam Exp $ # DISTNAME= dt-1.1.7 @@ -18,6 +18,22 @@ MIRROR_DISTFILE=no ALL_TARGET= depend all DTDOCSDIR= ${PREFIX}/share/doc/dt +.include "../../mk/bsd.prefs.mk" + +# DT_LAYOUT specifies which keyboard layout to use. +# Currently supported keyboard layouts: +# +# US US +# FI Finnish +# FR French +# GER German +# DV Dvorak +# +DT_LAYOUT?= FI + +CPPFLAGS+= -D${DT_LAYOUT}_LAYOUT +MAKE_ENV+= CPPFLAGS="${CPPFLAGS}" + post-install: ${INSTALL_DATA_DIR} ${DTDOCSDIR} (cd ${WRKSRC}; ${INSTALL_DATA} README dt.html example.dtrc ${DTDOCSDIR}) diff --git a/misc/dt/files/patch-sum b/misc/dt/files/patch-sum index 676129bd672..9da641c7c77 100644 --- a/misc/dt/files/patch-sum +++ b/misc/dt/files/patch-sum @@ -1,3 +1,4 @@ -$NetBSD: patch-sum,v 1.1 1999/07/09 14:09:14 agc Exp $ +$NetBSD: patch-sum,v 1.2 1999/09/07 14:53:56 jlam Exp $ -MD5 (patch-aa) = 1c13ea0e069209d2c26be0956575e810 +MD5 (patch-aa) = 460e8b4f351d7bb059195e29bbe5ef2d +MD5 (patch-ab) = 8aad3cc5c75eb51965e773fef3455a09 diff --git a/misc/dt/patches/patch-aa b/misc/dt/patches/patch-aa index 450418ff38b..63ca849e67c 100644 --- a/misc/dt/patches/patch-aa +++ b/misc/dt/patches/patch-aa @@ -1,18 +1,27 @@ -$NetBSD: patch-aa,v 1.1.1.1 1998/12/05 15:48:51 frueauf Exp $ +$NetBSD: patch-aa,v 1.2 1999/09/07 14:53:56 jlam Exp $ ---- Makefile.orig Sun Nov 24 05:41:26 1996 -+++ Makefile Sun Nov 29 15:31:31 1998 -@@ -2,5 +2,5 @@ +--- Makefile.orig Sun Nov 24 06:41:26 1996 ++++ Makefile Tue Sep 7 08:55:46 1999 +@@ -1,19 +1,19 @@ + # $Id: patch-aa,v 1.2 1999/09/07 14:53:56 jlam Exp $ #CFLAGS = -g -Wall -Wno-unused -CFLAGS = -O6 -Wall -Wno-unused +CFLAGS += -O6 -Wall -Wno-unused SRCS = main.c vt.c grf.c blit.c event.c kbd.c mouse.c mux.c func.c utmp.c bell.c vers.c LIBS = -@@ -8,5 +8,5 @@ + OBJS = main.o vt.o grf.o blit.o event.o kbd.o mouse.o mux.o func.o utmp.o bell.o vers.o DT = dt # where to install the executable -BINDIR = /usr/local/bin +BINDIR = ${PREFIX}/bin all: $(DT) + + $(DT): vers.h $(OBJS) + @./groksevid +- $(CC) $(CFLAGS) $(OBJS) -o $@ $(LIBS) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(LIBS) + + vers.h: $(SRCS) + rm -f vers.h vers.o |