summaryrefslogtreecommitdiff
path: root/games/xmahjongg/patches/patch-aa
blob: 40b605f6f674bd63878cfe945565d7eb2d4293ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
$NetBSD: patch-aa,v 1.2 1998/08/07 10:40:45 agc Exp $

--- Imakefile.orig	Sat Dec 11 03:35:21 1993
+++ Imakefile	Fri Aug 16 18:41:38 1996
@@ -5,7 +5,26 @@
 #	copyright laws of the United States.
 # 
 LOCAL_LIBRARIES = $(XLIB) 
-SRCS	= xmahjongg.c draw.c event.c initial.c packet.c play.c random.c sysdep.c variables.c
-OBJS	= xmahjongg.o draw.o event.o initial.o packet.o play.o random.o sysdep.o variables.o
+         LAYOUT = $(LIBDIR)/xmahjongg
+  EXTRA_DEFINES = -DLAYOUT=\"$(LAYOUT)\"
+         BOARDS = bridge default wedges
+           FONT = xmahjongg.bdf
+      MANSUFFIX = 6
+
+SRCS	= xmahjongg.c draw.c event.c initial.c packet.c \
+	play.c random.c sysdep.c variables.c
+OBJS	= xmahjongg.o draw.o event.o initial.o packet.o \
+	play.o random.o sysdep.o variables.o
+
+all:: $(FONT)
+$(FONT): x.bdf.1 x.bdf.2 x.bdf.3
+	@echo "Creating xmahjongg.bdf..."; \
+	cat x.bdf.1 x.bdf.2 x.bdf.3 > $(FONT)
 
 ComplexProgramTarget(xmahjongg)
+InstallTarget(install,$(FONT),$(INSTDATFLAGS),$(FONTDIR)/misc)
+MakeDirectories(install,$(LAYOUT))
+InstallMultipleDestFlags(install,$(BOARDS),$(LAYOUT),$(INSTDATFLAGS))
+
+install::
+	RunProgram(MKFONTDIR,$(FONTDIR)/misc)