source: build-files/ports-overlay/emulators/virtualbox-ose-additions/files/patch-src-VBox-Additions-common-crOpenGL-Makefile.kmk @ 1e102bd

9.2-releasereleng/10.0releng/10.0.1
Last change on this file since 1e102bd was 1e102bd, checked in by Kris Moore <kris@…>, 6 months ago

Add a bunch of modified ports for 10.0, so we can fix the building

  • Property mode set to 100644
File size: 1.4 KB
Line 
1--- src/VBox/Additions/common/crOpenGL/Makefile.kmk.orig        2013-04-12 12:35:06.000000000 +0200
2+++ src/VBox/Additions/common/crOpenGL/Makefile.kmk     2013-05-02 23:33:26.523212251 +0200
3@@ -42,7 +42,7 @@
4 
5 if1of ($(KBUILD_TARGET), linux solaris freebsd)
6  #VBoxOGL_DRI = 1
7- ifn1of ($(KBUILD_TARGET),solaris freebsd)   # No DRI on Solaris yet
8+ ifn1of ($(KBUILD_TARGET),solaris)   # No DRI on Solaris yet
9   VBoxOGL_FAKEDRI = 1
10  endif
11 
12@@ -209,8 +209,13 @@
13        $(PATH_STAGE_LIB)/libXfixes.so \
14        $(PATH_STAGE_LIB)/libXext.so
15  ifdef VBoxOGL_FAKEDRI
16-  VBoxOGL_LIBS += \
17+  ifeq ($(KBUILD_TARGET), freebsd)
18+    VBoxOGL_LIBS += \
19+        elf
20+  else
21+    VBoxOGL_LIBS += \
22        dl
23+  endif
24  endif
25 endif
26 ifdef VBOX_WITH_CRHGSMI
27@@ -368,6 +373,13 @@
28                | $$(dir $$@)
29        $(call MSG_GENERATE,python,$@,$<)
30        $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
31+  else ifeq ($(KBUILD_TARGET),freebsd)
32+$(VBOX_PATH_CROGL_GENFILES)/freebsd_exports.c: \
33+               $(PATH_SUB_CURRENT)/FreeBSD_exports.py \
34+               $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
35+               | $$(dir $$@)
36+       $(call MSG_GENERATE,python,$@,$<)
37+       $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
38   else
39 $(VBOX_PATH_CROGL_GENFILES)/linux_exports.c: \
40                $(PATH_SUB_CURRENT)/Linux_exports.py \
Note: See TracBrowser for help on using the repository browser.