3 Commits
opengl ... mac

Author SHA1 Message Date
Leander
9afb9191ff New profile for mac created 2016-09-09 10:07:37 +02:00
Leander
83a9f7df12 Forgot to commit 2016-09-08 11:47:48 +02:00
Leander
ef55f75b33 Finally compiling on mac 2016-09-08 11:40:16 +02:00
10 changed files with 462 additions and 4 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,56 @@
class Libiconv < Formula
desc "Conversion library"
homepage "https://www.gnu.org/software/libiconv/"
url "https://ftpmirror.gnu.org/libiconv/libiconv-1.14.tar.gz"
mirror "https://ftp.gnu.org/gnu/libiconv/libiconv-1.14.tar.gz"
sha256 "72b24ded17d687193c3366d0ebe7cde1e6b18f0df8c55438ac95be39e8a30613"
bottle do
sha256 "64d8a9383ba42ba3e41422bb8548ebc8f296f67fdda6e6d6a324f990b03c6db0" => :el_capitan
sha256 "a0d9ff36269bc908fde4a039d2083152202055a2e053b6582ad2c9063c85ebc2" => :yosemite
sha256 "456a816a94427c963fa3cb90257830aa33268f22443cf5a8a4cf1be3e3ed3bb9" => :mavericks
end
keg_only :provided_by_osx
option :universal
patch do
url "https://raw.githubusercontent.com/Homebrew/patches/9be2793af/libiconv/patch-Makefile.devel"
sha256 "ad9b6da1a82fc4de27d6f7086a3382993a0b16153bc8e8a23d7b5f9334ca0a42"
end
patch do
url "https://raw.githubusercontent.com/Homebrew/patches/9be2793af/libiconv/patch-utf8mac.diff"
sha256 "e8128732f22f63b5c656659786d2cf76f1450008f36bcf541285268c66cabeab"
end
patch :DATA
def install
ENV.universal_binary if build.universal?
ENV.j1
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--enable-extra-encodings"
system "make", "-f", "Makefile.devel", "CFLAGS=#{ENV.cflags}", "CC=#{ENV.cc}"
system "make", "install"
end
end
__END__
diff --git a/lib/flags.h b/lib/flags.h
index d7cda21..4cabcac 100644
--- a/lib/flags.h
+++ b/lib/flags.h
@@ -14,6 +14,7 @@
#define ei_ascii_oflags (0)
#define ei_utf8_oflags (HAVE_ACCENTS | HAVE_QUOTATION_MARKS | HAVE_HANGUL_JAMO)
+#define ei_utf8mac_oflags (HAVE_ACCENTS | HAVE_QUOTATION_MARKS | HAVE_HANGUL_JAMO)
#define ei_ucs2_oflags (HAVE_ACCENTS | HAVE_QUOTATION_MARKS | HAVE_HANGUL_JAMO)
#define ei_ucs2be_oflags (HAVE_ACCENTS | HAVE_QUOTATION_MARKS | HAVE_HANGUL_JAMO)
#define ei_ucs2le_oflags (HAVE_ACCENTS | HAVE_QUOTATION_MARKS | HAVE_HANGUL_JAMO)

View File

@@ -27,6 +27,33 @@
<Add option="-s" />
</Linker>
</Target>
<Target title="Debug Mac">
<Option platforms="Mac;" />
<Option output="bin/Debug/opengl-test-two" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Debug/" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-g" />
</Compiler>
<Linker>
<Add option="-framework AudioUnit" />
<Add option="-framework Carbon" />
<Add option="-framework Cocoa" />
<Add option="-framework CoreAudio" />
<Add option="-framework CoreFoundation" />
<Add option="-framework CoreVideo" />
<Add option="-framework ForceFeedback" />
<Add option="-framework IOKit" />
<Add option="-framework OpenGL" />
<Add library="GLEW" />
<Add library="glfw3" />
<Add library="iconv" />
<Add library="SDL2main" />
<Add library="SDL2" />
<Add library="SDL2_image" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-Wall" />
@@ -34,11 +61,18 @@
<Add directory="include" />
</Compiler>
<Linker>
<Add library="glew32" />
<Add option="-framework AudioUnit" />
<Add option="-framework Carbon" />
<Add option="-framework Cocoa" />
<Add option="-framework CoreAudio" />
<Add option="-framework CoreFoundation" />
<Add option="-framework CoreVideo" />
<Add option="-framework ForceFeedback" />
<Add option="-framework IOKit" />
<Add option="-framework OpenGL" />
<Add library="GLEW" />
<Add library="glfw3" />
<Add library="gdi32" />
<Add library="opengl32" />
<Add library="mingw32" />
<Add library="iconv" />
<Add library="SDL2main" />
<Add library="SDL2" />
<Add library="SDL2_image" />

View File

@@ -368,3 +368,369 @@
<OpenGL/glu.h>
<GL/glu.h>
1473323187 source:/Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/main.cpp
<GL/glew.h>
<GLFW/glfw3.h>
<SDL2/SDL.h>
<SDL2/SDL_image.h>
<stdio.h>
<iostream>
<fstream>
<vector>
<stdexcept>
1473057771 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/GL/glew.h
<stddef.h>
<inttypes.h>
<stdint.h>
<inttypes.h>
<Availability.h>
<OpenGL/glu.h>
<GL/glu.h>
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/GLFW/glfw3.h
<stddef.h>
<stdint.h>
<OpenGL/gl3.h>
<OpenGL/gl3ext.h>
<OpenGL/gl.h>
<OpenGL/glu.h>
<GL/glcorearb.h>
<GLES/gl.h>
<GLES/glext.h>
<GLES2/gl2.h>
<GLES2/gl2ext.h>
<GLES3/gl3.h>
<GLES2/gl2ext.h>
<GLES3/gl31.h>
<GLES2/gl2ext.h>
<vulkan/vulkan.h>
<GL/gl.h>
<GL/glext.h>
<GL/glu.h>
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL.h
"SDL_main.h"
"SDL_stdinc.h"
"SDL_assert.h"
"SDL_atomic.h"
"SDL_audio.h"
"SDL_clipboard.h"
"SDL_cpuinfo.h"
"SDL_endian.h"
"SDL_error.h"
"SDL_events.h"
"SDL_filesystem.h"
"SDL_joystick.h"
"SDL_gamecontroller.h"
"SDL_haptic.h"
"SDL_hints.h"
"SDL_loadso.h"
"SDL_log.h"
"SDL_messagebox.h"
"SDL_mutex.h"
"SDL_power.h"
"SDL_render.h"
"SDL_rwops.h"
"SDL_system.h"
"SDL_thread.h"
"SDL_timer.h"
"SDL_version.h"
"SDL_video.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_main.h
"SDL_stdinc.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_stdinc.h
"SDL_config.h"
<sys/types.h>
<stdio.h>
<stdlib.h>
<stddef.h>
<stdarg.h>
<stdlib.h>
<malloc.h>
<stddef.h>
<stdarg.h>
<memory.h>
<string.h>
<strings.h>
<inttypes.h>
<stdint.h>
<ctype.h>
<math.h>
<float.h>
<iconv.h>
<sal.h>
"begin_code.h"
<alloca.h>
<malloc.h>
<malloc.h>
<malloc.h>
<stdlib.h>
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_config.h
"SDL_platform.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_platform.h
"AvailabilityMacros.h"
"TargetConditionals.h"
<winapifamily.h>
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/begin_code.h
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/close_code.h
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_assert.h
"SDL_config.h"
"begin_code.h"
<signal.h>
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_atomic.h
"SDL_stdinc.h"
"SDL_platform.h"
"begin_code.h"
<mbarrier.h>
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_audio.h
"SDL_stdinc.h"
"SDL_error.h"
"SDL_endian.h"
"SDL_mutex.h"
"SDL_thread.h"
"SDL_rwops.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_error.h
"SDL_stdinc.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_endian.h
"SDL_stdinc.h"
<endian.h>
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_mutex.h
"SDL_stdinc.h"
"SDL_error.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_thread.h
"SDL_stdinc.h"
"SDL_error.h"
"SDL_atomic.h"
"SDL_mutex.h"
"begin_code.h"
<process.h>
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_rwops.h
"SDL_stdinc.h"
"SDL_error.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_clipboard.h
"SDL_stdinc.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_cpuinfo.h
"SDL_stdinc.h"
<intrin.h>
<intrin.h>
<altivec.h>
<mmintrin.h>
<mm3dnow.h>
<xmmintrin.h>
<emmintrin.h>
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_events.h
"SDL_stdinc.h"
"SDL_error.h"
"SDL_video.h"
"SDL_keyboard.h"
"SDL_mouse.h"
"SDL_joystick.h"
"SDL_gamecontroller.h"
"SDL_quit.h"
"SDL_gesture.h"
"SDL_touch.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_video.h
"SDL_stdinc.h"
"SDL_pixels.h"
"SDL_rect.h"
"SDL_surface.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_pixels.h
"SDL_stdinc.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_rect.h
"SDL_stdinc.h"
"SDL_error.h"
"SDL_pixels.h"
"SDL_rwops.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_surface.h
"SDL_stdinc.h"
"SDL_pixels.h"
"SDL_rect.h"
"SDL_blendmode.h"
"SDL_rwops.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_blendmode.h
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_keyboard.h
"SDL_stdinc.h"
"SDL_error.h"
"SDL_keycode.h"
"SDL_video.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_keycode.h
"SDL_stdinc.h"
"SDL_scancode.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_scancode.h
"SDL_stdinc.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_mouse.h
"SDL_stdinc.h"
"SDL_error.h"
"SDL_video.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_joystick.h
"SDL_stdinc.h"
"SDL_error.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_gamecontroller.h
"SDL_stdinc.h"
"SDL_error.h"
"SDL_rwops.h"
"SDL_joystick.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_quit.h
"SDL_stdinc.h"
"SDL_error.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_gesture.h
"SDL_stdinc.h"
"SDL_error.h"
"SDL_video.h"
"SDL_touch.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_touch.h
"SDL_stdinc.h"
"SDL_error.h"
"SDL_video.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_filesystem.h
"SDL_stdinc.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_haptic.h
"SDL_stdinc.h"
"SDL_error.h"
"SDL_joystick.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_hints.h
"SDL_stdinc.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_loadso.h
"SDL_stdinc.h"
"SDL_error.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_log.h
"SDL_stdinc.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_messagebox.h
"SDL_stdinc.h"
"SDL_video.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_power.h
"SDL_stdinc.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_render.h
"SDL_stdinc.h"
"SDL_rect.h"
"SDL_video.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_system.h
"SDL_stdinc.h"
"SDL_keyboard.h"
"SDL_render.h"
"SDL_video.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_timer.h
"SDL_stdinc.h"
"SDL_error.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_version.h
"SDL_stdinc.h"
"begin_code.h"
"close_code.h"
1472735445 /Users/leanderschmedemann/programming/imanox/imanox-chroma-matting/opengl-test-two/include/SDL2/SDL_image.h
"SDL.h"
"SDL_version.h"
"begin_code.h"
"close_code.h"

View File

@@ -0,0 +1,2 @@
glew32 -> GLEW