-
Notifications
You must be signed in to change notification settings - Fork 0
/
FTGLES.cabal
52 lines (49 loc) · 1.61 KB
/
FTGLES.cabal
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
Name: FTGLES
Version: 1.333
Cabal-Version: >= 1.14
License: BSD3
License-File: LICENSE
Author: Stephen Blackheath
Maintainer: Stephen Blackheath
Category: Graphics
Description:
A Haskell binding for the portable TrueType to OpenGL font rendering library FTGLES,
which is an iOS port of FTGL. This package is a slight modification by Stephen
Blackheath of J. R. Heard's Haskell binding package, FTGL.
This package provides OpenGL with polygonal, and texture mapped fonts using
Freetype2 and any truetype font.
.
Then build the C/C++ code for FTGLES, like this. Note that you must modify the two
install.sh scripts to compile against whatever iOS SDK version you are using.
.
> cd FTGLES
> git clone [email protected]:cdave1/ftgles.git
> git clone [email protected]:cdave1/freetype2-ios.git
> cd freetype2-ios/
> bash install.sh
> cd ../ftgles
> ln -s ../freetype2-ios freetype2
> cd Xcode
> bash install.sh
.
Now, install this Cabal package.
.
Now add these two files to your Xcode project:
.
> freetype2-ios/libFreetype2.a
> FTGLES/Xcode/libFTGLES.a
.
Also these libraries are required to be added in Xcode (because FTGLES is written
in C++):
.
> libc++.dylib
> libstdc++.dylib
Synopsis: Portable TrueType font rendering for OpenGL using the Freetype2 library
Build-Type: Simple
Library
Default-Language: Haskell2010
Build-Depends: OpenGL, base >= 4 && < 5
Exposed-Modules:
Graphics.Rendering.FTGL
C-Sources: Graphics/Rendering/FTGL_helper.cpp
Include-Dirs: ftgles/ftgles ftgles/ftgles/src freetype2-ios/include/