1 ############################################################################### |
1 ############################################################################### |
2 # |
2 # |
3 # Xorg server Makefile |
3 # Xorg server Makefile |
4 # |
4 # |
5 # Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. |
5 # Copyright (c) 2006, 2011, Oracle and/or its affiliates. All rights reserved. |
6 # |
6 # |
7 # Permission is hereby granted, free of charge, to any person obtaining a |
7 # Permission is hereby granted, free of charge, to any person obtaining a |
8 # copy of this software and associated documentation files (the "Software"), |
8 # copy of this software and associated documentation files (the "Software"), |
9 # to deal in the Software without restriction, including without limitation |
9 # to deal in the Software without restriction, including without limitation |
10 # the rights to use, copy, modify, merge, publish, distribute, sublicense, |
10 # the rights to use, copy, modify, merge, publish, distribute, sublicense, |
36 |
36 |
37 # Version number (used in path names) |
37 # Version number (used in path names) |
38 MODULE_VERSION=$(XORGSERVER_VERS) |
38 MODULE_VERSION=$(XORGSERVER_VERS) |
39 |
39 |
40 # Checksums for upstream tarball |
40 # Checksums for upstream tarball |
41 TARBALL_MD5 = 8c0146330fb155c23d947ac37d431d4b |
41 TARBALL_MD5 = 040f091dfdfb4e335116eb0032cc690b |
42 TARBALL_SHA1 = 0f1b71363843b7e394d6de62d0db5b74d3e645ef |
42 TARBALL_SHA1 = e8d5776fe973f15c0e907fd827106f8d296acf7e |
43 |
43 |
44 # Patches to apply to source after unpacking, in order |
44 # Patches to apply to source after unpacking, in order |
45 # *** Moved to patch-list file so they can be shared between Xorg & Xvnc builds |
45 # *** Moved to patch-list file so they can be shared between Xorg & Xvnc builds |
46 SOURCE_PATCHES=$(XORG_SOURCE_PATCHES) |
46 SOURCE_PATCHES=$(XORG_SOURCE_PATCHES) |
47 |
47 |
161 |
161 |
162 # When both 32-bit & 64-bit are built, only one copy of these programs (mostly |
162 # When both 32-bit & 64-bit are built, only one copy of these programs (mostly |
163 # scripts) are needed, so move the 32-bit one to /usr/bin instead of linking |
163 # scripts) are needed, so move the 32-bit one to /usr/bin instead of linking |
164 # to isaexec. |
164 # to isaexec. |
165 NOT_LINKED_TO_ISAEXEC = cvt gtf \ |
165 NOT_LINKED_TO_ISAEXEC = cvt gtf \ |
166 dmxaddinput dmxaddscreen dmxreconfig dmxresize dmxrminput \ |
166 dmxaddinput dmxaddscreen dmxinfo dmxreconfig dmxresize dmxrminput \ |
167 dmxrmscreen dmxtodmx dmxwininfo vdltodmx xdmx xdmxconfig |
167 dmxrmscreen dmxtodmx dmxwininfo vdltodmx xdmxconfig |
168 |
168 |
169 # Steps that need to complete before the install_fix_paths in ../Makefile.inc |
169 # Steps that need to complete before the install_fix_paths in ../Makefile.inc |
170 # is run to do the above isaexec fixes |
170 # is run to do the above isaexec fixes |
171 INSTALL_FIX_PATHS_DEPS = default_install |
171 INSTALL_FIX_PATHS_DEPS = default_install |
172 |
172 |
177 SDK_INCLUDES_DIR=$(PROTODIR)$(X11_INCLUDES_DIR)/xorg/ |
177 SDK_INCLUDES_DIR=$(PROTODIR)$(X11_INCLUDES_DIR)/xorg/ |
178 |
178 |
179 install_extras: default_install |
179 install_extras: default_install |
180 -rm -f $(SDK_INCLUDES_DIR)/xorg-server.h |
180 -rm -f $(SDK_INCLUDES_DIR)/xorg-server.h |
181 sed -e 's%#define XF86DRI 1%/* #define XF86DRI 1 */%' \ |
181 sed -e 's%#define XF86DRI 1%/* #define XF86DRI 1 */%' \ |
182 -e 's%^.* _XSERVER64 .*$$%#include <sys/isa_defs.h>\ |
|
183 #ifdef _LP64\ |
|
184 #define _XSERVER64 1\ |
|
185 #endif%' \ |
|
186 $(SOURCE_DIR)/include/xorg-server.h > $(SDK_INCLUDES_DIR)/xorg-server.h |
182 $(SOURCE_DIR)/include/xorg-server.h > $(SDK_INCLUDES_DIR)/xorg-server.h |
187 cp -pf $(SOURCE_DIR)/mi/mioverlay.h $(SDK_INCLUDES_DIR)/mioverlay.h |
183 cp -pf $(SOURCE_DIR)/mi/mioverlay.h \ |
188 cp -pf $(SOURCE_DIR)/hw/xfree86/os-support/bus/xf86Sbus.h $(SDK_INCLUDES_DIR)/xf86Sbus.h |
184 $(SOURCE_DIR)/hw/xfree86/os-support/bus/xf86Sbus.h \ |
189 cp -pf $(SOURCE_DIR)/hw/xfree86/dri/*.h $(SDK_INCLUDES_DIR)/ |
185 $(SOURCE_DIR)/hw/xfree86/dri/*.h $(SDK_INCLUDES_DIR)/ |
190 -rm -f $(SDK_INCLUDES_DIR)/xf1bpp.h $(SDK_INCLUDES_DIR)/xf4bpp.h |
|
191 mkdir -p $(PROTODIR)$(X11_MAN_DIR)/man1 |
186 mkdir -p $(PROTODIR)$(X11_MAN_DIR)/man1 |
192 cp -pf $(SOURCE_DIR)/hw/xfree86/doc/man/xorgcfg.1 \ |
187 cp -pf $(SOURCE_DIR)/hw/xfree86/doc/man/xorgcfg.1 \ |
193 $(SOURCE_DIR)/hw/xfree86/doc/man/xorgconfig.1 \ |
188 $(SOURCE_DIR)/hw/xfree86/doc/man/xorgconfig.1 \ |
194 $(PROTODIR)$(X11_MAN_DIR)/man1 |
189 $(PROTODIR)$(X11_MAN_DIR)/man1 |
195 mkdir -p $(PROTODIR)/etc/hal/fdi/preprobe/10osvendor |
190 mkdir -p $(PROTODIR)/etc/hal/fdi/preprobe/10osvendor |
196 cp -pf $(SOURCE_DIR)/config/x11-input.fdi \ |
191 cp -pf $(SOURCE_DIR)/config/x11-input.fdi \ |
197 $(PROTODIR)/etc/hal/fdi/preprobe/10osvendor/10-x11-input.fdi |
192 $(PROTODIR)/etc/hal/fdi/preprobe/10osvendor/10-x11-input.fdi |
|
193 mkdir -p $(PROTODIR)/etc/X11/xorg.conf.d \ |
|
194 $(PROTODIR)/etc/X11/xorg.conf.avail \ |
|
195 $(PROTODIR)/usr/share/X11/xorg.conf.d |
|
196 cp -pf 90-zap.conf $(PROTODIR)/etc/X11/xorg.conf.avail |
198 |
197 |
199 # Workaround bug in installing pkgconfig file to wrong directory in 64-bit |
198 # Workaround bug in installing pkgconfig file to wrong directory in 64-bit |
200 # builds |
199 # builds |
201 install_pc_common: default_install |
200 install_pc_common: default_install |
202 -rm -f $(PROTODIR)$(PKGCONFIG_DIR)/xorg-server.pc |
201 -rm -f $(PROTODIR)$(PKGCONFIG_DIR)/xorg-server.pc |