ansilove

ANSI and ASCII art to PNG converter in C
Log | Files | Refs | README | LICENSE

commit 9f62e77e5a42fe35d93c17a97dbe3a0ed1f16233
parent 8428b4c6420ead8eaed3dc2ecf605a0765599ecf
Author: Brian Cassidy <bricas@cpan.org>
Date:   Wed,  2 Jan 2013 20:19:07 -0800

Merge pull request #1 from h3rb/patch-1

new build script for ubuntu
Diffstat:
MREADME.md | 3+++
Ashbuild/build_ubuntu_fo_real.sh | 27+++++++++++++++++++++++++++
2 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/README.md b/README.md @@ -6,6 +6,9 @@ This is a complete rewrite of [AnsiLove/PHP](http://ansilove.sourceforge.net) in AnsiLove/C is strictly using the `C99 standard` to achieve high portability to all major operating systems. It's developed from ground up with the vision to compile just fine on your platform. Be sure to link against `libgd` when compiling which is also needed when running the binary. Supported compilers are `GCC` and `Clang`, others may work but aren't tested. All files include the C standard headers. An exception is compilation on `Mac OS X`, where defines in the sources ensure importing `<Foundation/Foundation.h>`. In other words: on the Mac, the resulting binary is a Foundation tool. We use Mac OS X and Linux for AnsiLove/C development. You'll find a Xcode project file in this repository. Additional there's a shell script that builds AnsiLove/C on Ubuntu, it should compile on other distros as well. Feel free to fork and add custom build scripts for your own platform, [Homebrew](https://github.com/mxcl/homebrew) formulas, Linux packages, whatever. +# This is the patch for building on Ubuntu. +Use shbuild/build_ubuntu_fo_real.sh + # Why C? There were many reasons, most notably PHP interpreter independence and performance. A solid C foundation is just perfect for creating libraries and frameworks and it can easily embedded into applications. We already mentioned portability. What else? We wanted evolution. AnsiLove/C should not be understood as a port. It takes many different approaches (like processing binary font dumps or generating @2x Retina images), it is overall improved and introduces new features. While results tend to be the same, the codebase does not have much in common with it's ancestor. diff --git a/shbuild/build_ubuntu_fo_real.sh b/shbuild/build_ubuntu_fo_real.sh @@ -0,0 +1,27 @@ +#!/bin/sh +######################################################### +# This UNIX script builds AnsiLove/C under Ubuntu Linux # +# and links it against libgd. # +######################################################### +# modify alconfig.h to configure the resulting binary # +######################################################### +# build script version 1.2, updated by h3rb gi11iland # +# originally created by Stefan Vogt # +######################################################### + +echo "=========================================" +echo "AnsiLove/C build script --> Ubuntu Linux " +echo "=========================================" +echo "... building" +mkdir -p ../bin +gcc -Wall ../ansilove/main.c \ + ../ansilove/alconfig.h ../ansilove/ansilove.h ../ansilove/ansilove.c \ + ../ansilove/substr.h ../ansilove/substr.c ../ansilove/strtolower.h \ + ../ansilove/strtolower.c ../ansilove/explode.h ../ansilove/explode.c \ + ../ansilove/filesize.h ../ansilove/filesize.c ../ansilove/albinfonts.h \ + ../ansilove/albinfonts.c \ + -lz -ljpeg -lpng -lfreetype -lm -lgd \ + -o ../bin/ansilove +echo "... done. Get on with that looooove!" + +exit