blob: 7979d7adea7a1896f96b2527786f3f3c2a144717 (
plain) (
blame)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
--- Imakefile.orig Tue Oct 6 20:26:47 1998
+++ Imakefile Wed May 31 14:11:50 2000
@@ -18,8 +18,27 @@
#endif
#endif
+#if defined(FreeBSDBuildXlib) && FreeBSDBuildXlib
+ SUBDIRS = include config lib $(NLSSUBDIR) \
+ programs/Xserver/include \
+ programs/Xserver/hw/xfree86/parser \
+ programs/mkfontdir \
+ programs/bdftopcf
+#else
+#if defined(FreeBSDBuildXbin) && FreeBSDBuildXbin
+ SUBDIRS = include config lib $(NLSSUBDIR) \
+ programs/Xserver/include \
+ programs
+#else
+#if defined(FreeBSDBuildXfs) && FreeBSDBuildXfs
+ SUBDIRS = include config lib $(NLSSUBDIR) \
+ programs programs/xfs
+#else
SUBDIRS = include config lib $(NLSSUBDIR) \
programs $(FONTSDIR) $(DOCSDIR)
+#endif
+#endif
+#endif
LNINSTALLDIRS = lib
#if HasParallelMake
@@ -202,3 +221,73 @@
#undef BootstrapCleanSubdirs
#define BootstrapCleanSubdirs BOOTSTRAPSUBDIRS="$(BOOTSTRAPSUBDIRS)"
BOOTSTRAPSUBDIRS = imake makedepend
+
+#if defined(FreeBSDBuildXlib) && FreeBSDBuildXlib
+FreeBSDPortsInstallDir = include lib programs/Xserver/include \
+ programs/Xserver/hw/xfree86/parser \
+ programs/bdftopcf programs/mkfontdir
+#else
+#if defined(FreeBSDBuildXbin) && FreeBSDBuildXbin
+FreeBSDPortsInstallDir = lib nls programs
+#else
+#if defined(FreeBSDBuildXxserv) && FreeBSDBuildXxserv
+FreeBSDPortsInstallDir = programs
+#else
+#if defined(FreeBSDBuildXfs) && FreeBSDBuildXfs
+FreeBSDPortsInstallDir = programs/xfs
+#else
+#if defined(FreeBSDBuildXnest) && FreeBSDBuildXnest
+FreeBSDPortsInstallDir = programs/Xserver
+#else
+FreeBSDPortsInstallDir = $(SUBDIRS)
+#endif
+#endif
+#endif
+#endif
+#endif
+
+FreeBSDPortsBuild::
+ @for dir in $(SUBDIRS); do \
+ (cd $$dir && $(MAKE) $(MFLAGS) $(PARALLELMFLAGS) all); \
+ done
+
+FreeBSDPortsInstall::
+ @for dir in $(FreeBSDPortsInstallDir); do \
+ (cd $$dir && $(MAKE) $(MFLAGS) $(PARALLELMFLAGS) install); \
+ done
+
+FreeBSDPortsInstall.man::
+ @for dir in $(FreeBSDPortsInstallDir); do \
+ (cd $$dir && $(MAKE) $(MFLAGS) $(PARALLELMFLAGS) install.man); \
+ done
+
+installXlib::
+ (cd programs/proxymngr && \
+ $(INSTALL) -c $(INSTINCFLAGS) PM.h $(INCROOT)/X11/PM && \
+ $(INSTALL) -c $(INSTINCFLAGS) PMproto.h $(INCROOT)/X11/PM)
+
+installXnest::
+ (cd programs/Xserver && \
+ $(INSTALL) -c $(INSTALLFLAGS) $(INSTPGMFLAGS) Xnest $(DESTDIR)$(BINDIR)/Xnest)
+
+installXnest.man::
+ (cd programs/Xserver/hw/xnest && \
+ $(RM) $(DESTDIR)$(MANDIR)/Xnest.$(MANSUFFIX)*; \
+ $(INSTALL) -c $(INSTMANFLAGS) Xnest.man \
+ $(DESTDIR)$(MANDIR)/Xnest.$(MANSUFFIX); \
+ $(COMPRESSMANCMD) $(DESTDIR)$(MANDIR)/Xnest.$(MANSUFFIX))
+
+installXprt::
+ (cd programs/Xserver && \
+ $(INSTALL) -c $(INSTALLFLAGS) $(INSTPGMFLAGS) Xprt $(DESTDIR)$(BINDIR)/Xprt)
+
+installXvfb::
+ (cd programs/Xserver && \
+ $(INSTALL) -c $(INSTALLFLAGS) $(INSTPGMFLAGS) Xvfb $(DESTDIR)$(BINDIR)/Xvfb)
+
+installXvfb.man::
+ (cd programs/Xserver/hw/vfb && \
+ $(RM) $(DESTDIR)$(MANDIR)/Xvfb.$(MANSUFFIX)*; \
+ $(INSTALL) -c $(INSTMANFLAGS) Xvfb.man \
+ $(DESTDIR)$(MANDIR)/Xvfb.$(MANSUFFIX); \
+ $(COMPRESSMANCMD) $(DESTDIR)$(MANDIR)/Xvfb.$(MANSUFFIX))
|