Commit 0ac5fa74 authored by Bernd Paysan's avatar Bernd Paysan

Add autogen.sh based build script

parent f80a4d52
# Freetype GL - A C OpenGL Freetype engine
[![Build Status Travis](https://travis-ci.org/rougier/freetype-gl.png?branch=master)](https://travis-ci.org/rougier/freetype-gl)
[![Build Status Appveyor](https://ci.appveyor.com/api/projects/status/github/rougier/freetype-gl?branch=master)](https://ci.appveyor.com/project/rougier/freetype-gl)
A small library for displaying Unicode in OpenGL using a single texture and
a single vertex buffer.
![Screenshot](http://raw.github.com/rougier/freetype-gl/master/doc/images/markup.png)
[Installation instructions](INSTALL.md).
## Code organization
### Mandatory files
* **texture-font**: The texture-font structure is in charge of creating bitmap
glyphs and to upload them to the texture atlas.
* **texture-atlas**: This structure is responsible for the packing of small
regions into a bigger texture. It is based on the skyline
bottom left algorithm which appear to be well suited for
storing glyphs. More information at:
http://clb.demon.fi/files/RectangleBinPack.pdf
* **vector**: This structure loosely mimics the std::vector class from
c++. It is used by texture-atlas (for storing nodes),
texture-font (for storing glyphs) and font-manager (for
storing fonts). More information at:
http://www.cppreference.com/wiki/container/vector/start
### Optional files
* **markup**: Simple structure that describes text properties (font
family, font size, colors, underline, etc.)
* **font-manager**: Structure in charge of caching fonts.
* **vertex-buffer**: Generic vertex buffer structure inspired by pyglet
(python). (more information at http://www.pyglet.org)
* **edtaa3func**: Distance field computation by Stefan Gustavson
(more information at http://contourtextures.wikidot.com/)
* **makefont**: Allow to generate header file with font information
(texture + glyphs) such that it can be used without
freetype.
## Contributors
* Ryan.H.Kawicki (Initial CMake project)
* Julian Mayer (Several bugfixes and code for demo-opengl-4.cc)
* Sylvain Duclos (Android port)
* Wang Yongcong (Improvements on the windows build and code review)
* Jonas Wielicki (Bug report & fix on the CMakefile)
* whatmannerofburgeristhis (Bug report in makefont)
* Andrei Petrovici (Fine analysis of the whole code and report of potential problems)
* Cristi Caloghera (Report on bad vertex buffer usage)
* Andrei Petrovici (Code review)
* Kim Jacobsen (Bug report & fix)
* bsoddd (Bug report & fix)
* Greg Douglas (Bug report & fix)
* Jim Teeuwen (Bug report & fix)
* quarnster (Bug report & fix)
* Per Inge Mathisen (Bug report & fix)
* Wojciech Mamrak (Code review, bug report & fix)
* Wael Eloraiby (Put code to the C89 norm and fix CMakefile)
* Christian Forfang (Code review, fix & patch for 3.2 core profile)
* Lukas Murmann (Code review & fix for 3.2 core profile)
* Jérémie Roy (Code review, fix and new ideas)
* dsewtz (Bug report & fix)
* jcgamestoy (Bug report & fix)
* Behdad Esfahbod (Bug fix on harfbuzz demo)
* Marcel Metz (Bug report & fix, CMmake no demo option, makefont parameters)
* PJ O'Halloran (svn to git migration)
* William Light (Face creation from memory)
* Jan Niklas Hasse (Bug report & fix + README.md)
* Pierre-Emmanuel Lallemant (Bug report & fix + travis setup)
* Robert Conde (Bug report & fix)
* Mikołaj Siedlarek (Build system bug fix)
* Preet Desai (Bug report & fix)
* Andy Staton (CMake fix and added namespace safeguard (avoiding glm collisions))
* Daniel Burke (Removed GLEW dependency and fix problems with font licences)
* Bob Kocisko (Added horizontal text alignment and text bounds calculation)
* Ciro Santilli (Improve markdown documentation)
This diff is collapsed.
# Automake file for libfreetype-gl
## Place generated object files (.o) into the same directory as their source
## files, in order to avoid collisions when non-recursive make is used.
AUTOMAKE_OPTIONS = subdir-objects
## Additional flags to pass to aclocal when it is invoked automatically at
## make time. The ${ACLOCAL_FLAGS} variable is picked up from the environment
## to provide a way for the user to supply additional arguments.
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4
## Set the default command-line flags for the C preprocessor to the value
## obtained from pkg-config via PKG_CHECK_MODULES in configure.ac. These
## flags are passed to the compiler for both C and C++, in addition to the
## language-specific options.
AM_CPPFLAGS = $(EXAMPLE_CFLAGS) @FTINC@
lib_LTLIBRARIES = libfreetype-gl.la
libfreetype_gl_la_SOURCES = texture-atlas.c texture-font.c vector.c utf8-utils.c
include_HEADERS = freetype-gl.h vec234.h vector.h texture-atlas.h texture-font.h opengl.h
libfreetype_gl_la_LIBADD = -lm -l@LIBGL@ -lfreetype -lz @LIBADD@
distclean-am: clean-am distclean-compile distclean-hdr distclean-libtool distclean-tags
install-exec-hook:
-/sbin/ldconfig $(libdir)
# Freetype GL - A C OpenGL Freetype engine
[![Build Status Travis](https://travis-ci.org/rougier/freetype-gl.png?branch=master)](https://travis-ci.org/rougier/freetype-gl)
[![Build Status Appveyor](https://ci.appveyor.com/api/projects/status/github/rougier/freetype-gl?branch=master)](https://ci.appveyor.com/project/rougier/freetype-gl)
A small library for displaying Unicode in OpenGL using a single texture and
a single vertex buffer.
![Screenshot](http://raw.github.com/rougier/freetype-gl/master/doc/images/markup.png)
[Installation instructions](INSTALL.md).
## Code organization
### Mandatory files
* **texture-font**: The texture-font structure is in charge of creating bitmap
glyphs and to upload them to the texture atlas.
* **texture-atlas**: This structure is responsible for the packing of small
regions into a bigger texture. It is based on the skyline
bottom left algorithm which appear to be well suited for
storing glyphs. More information at:
http://clb.demon.fi/files/RectangleBinPack.pdf
* **vector**: This structure loosely mimics the std::vector class from
c++. It is used by texture-atlas (for storing nodes),
texture-font (for storing glyphs) and font-manager (for
storing fonts). More information at:
http://www.cppreference.com/wiki/container/vector/start
### Optional files
* **markup**: Simple structure that describes text properties (font
family, font size, colors, underline, etc.)
* **font-manager**: Structure in charge of caching fonts.
* **vertex-buffer**: Generic vertex buffer structure inspired by pyglet
(python). (more information at http://www.pyglet.org)
* **edtaa3func**: Distance field computation by Stefan Gustavson
(more information at http://contourtextures.wikidot.com/)
* **makefont**: Allow to generate header file with font information
(texture + glyphs) such that it can be used without
freetype.
## Contributors
* Ryan.H.Kawicki (Initial CMake project)
* Julian Mayer (Several bugfixes and code for demo-opengl-4.cc)
* Sylvain Duclos (Android port)
* Wang Yongcong (Improvements on the windows build and code review)
* Jonas Wielicki (Bug report & fix on the CMakefile)
* whatmannerofburgeristhis (Bug report in makefont)
* Andrei Petrovici (Fine analysis of the whole code and report of potential problems)
* Cristi Caloghera (Report on bad vertex buffer usage)
* Andrei Petrovici (Code review)
* Kim Jacobsen (Bug report & fix)
* bsoddd (Bug report & fix)
* Greg Douglas (Bug report & fix)
* Jim Teeuwen (Bug report & fix)
* quarnster (Bug report & fix)
* Per Inge Mathisen (Bug report & fix)
* Wojciech Mamrak (Code review, bug report & fix)
* Wael Eloraiby (Put code to the C89 norm and fix CMakefile)
* Christian Forfang (Code review, fix & patch for 3.2 core profile)
* Lukas Murmann (Code review & fix for 3.2 core profile)
* Jérémie Roy (Code review, fix and new ideas)
* dsewtz (Bug report & fix)
* jcgamestoy (Bug report & fix)
* Behdad Esfahbod (Bug fix on harfbuzz demo)
* Marcel Metz (Bug report & fix, CMmake no demo option, makefont parameters)
* PJ O'Halloran (svn to git migration)
* William Light (Face creation from memory)
* Jan Niklas Hasse (Bug report & fix + README.md)
* Pierre-Emmanuel Lallemant (Bug report & fix + travis setup)
* Robert Conde (Bug report & fix)
* Mikołaj Siedlarek (Build system bug fix)
* Preet Desai (Bug report & fix)
* Andy Staton (CMake fix and added namespace safeguard (avoiding glm collisions))
* Daniel Burke (Removed GLEW dependency and fix problems with font licences)
* Bob Kocisko (Added horizontal text alignment and text bounds calculation)
* Ciro Santilli (Improve markdown documentation)
#!/bin/sh -e
test -n "$srcdir" || srcdir=`dirname "$0"`
test -n "$srcdir" || srcdir=.
set -e
set -x
test -d m4 || mkdir -p m4
${AUTORECONF-autoreconf} --force --install --verbose "$srcdir"
${ACLOCAL-aclocal} -I m4
${AUTOHEADER-autoheader}
${AUTOMAKE-automake} --add-missing --copy --force-missing
${AUTOCONF-autoconf}
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"
## ExampleLib Example: an example of using Automake to link with a library
AC_INIT([freetype-gl], [1.2], [bernd@net2o.de], [freetype-gl for Linux/Android],
[http://lonesock.net/soil.html])
AC_PREREQ([2.59])
AM_INIT_AUTOMAKE([1.10 -Wall no-define])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])
AC_PROG_CC
AM_PROG_AR
LT_INIT
case $CC in
*android*)
LIBADD="-llog"
LIBGL=GLESv2
;;
*)
LIBGL=GL
;;
esac
>conftest.$ac_ext
FTINC=`eval $ac_compiler -E -Wp,-v conftest.$ac_ext 2>&1 | grep '^ ' | while read i; do test -f $i/freetype2/ft2build.h && echo -I$i/freetype2; done`
rm conftest.$ac_ext
AC_SUBST(FTINC)
AC_SUBST(LIBADD)
AC_SUBST(LIBGL)
PRECC=${CC%gcc*}
PRECLANG=${PRECC%clang*}
AC_CHECK_PROGS(GNU_LIBTOOL,"glibtool --tag=CC" libtool)
AC_SUBST(LIBTOOL)
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([debian/control])
AC_CONFIG_FILES([debian/changelog])
AC_OUTPUT
freetype-gl (@VERSION@) stable; urgency=low
* Dummy entry
-- Bernd Paysan <bernd.paysan@gmx.de> Sun, 26 Dec 2010 23:36:38 +0100
9
\ No newline at end of file
Source: freetype-gl
Section: libraries
Priority: optional
Maintainer: Bernd Paysan <bernd.paysan@gmx.de>
Build-Depends: debhelper (>= 4.1.16), build-essential, gcc, autoconf, automake, autotools-dev, libtool, libtool-bin
Package: freetype-gl
Version: @VERSION@
Architecture: any
Multi-Arch: same
Depends: libfreetype6, libharfbuzz-dev, libglew-dev
Description: Freetype GL
Freetype GL is a simple and performant library to display text using
one single OpenGL texture buffer; you can draw all glyphs with one single
draw call. It is not as fancy as FTGL, but way smaller.
\ No newline at end of file
freetype-gl_1.2_amd64.buildinfo libraries optional
freetype-gl_1.2_amd64.deb libraries optional
#!/usr/bin/make -f
# -*- makefile -*-
# Simple debian/rules that uses debhelper.
# Created by Bernd Paysan, in the public domain
%:
dh $@
override_dh_auto_test:
override_dh_shlibdeps:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment