[AD] Patches to build on freeBSD

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Allegro won't build on freeBSD unless these patches are applied to the
source. (They just add /usr/local/include as an include directory).

It would nice if they some how landed in svn.

I provided patches for 4.3.10 but the same problem occurs in the 4.9
branch and the 4.2 branch.


-- 
Eitan Adler
"Security is increased by designing for the way humans actually behave."
-Jakob Nielsen
--- allegro-4.3.10-orig/addons/logg/Makefile.unix	2008-01-03 15:45:20.000000000 -0500
+++ allegro-4.3.10/addons/logg/Makefile.unix	2009-06-18 16:21:35.000000000 -0400
@@ -1,6 +1,6 @@
 PREFIX=`../../allegro-config --prefix`
 CC=gcc
-FLAGS=-O2 -g0 `../../allegro-config --cflags --addon` -I../../include
+FLAGS=-O2 -g0 `../../allegro-config --cflags --addon` -I../../include -I/usr/local/include
 LFLAGS=-L. -L../../lib/unix -llogg -logg -lvorbis -lvorbisfile `../../allegro-config --libs --addon` -lm
 
 all: lib play_ogg stream_ogg
--- allegro-4.3.10-orig/addons/loadpng/Makefile.all	2008-01-02 09:39:42.000000000 -0500
+++ allegro-4.3.10/addons/loadpng/Makefile.all	2009-06-21 18:26:44.000000000 -0400
@@ -1,7 +1,7 @@
 ## Toplevel Makefile
 
 CC := gcc
-CFLAGS := -W -Wall -O3 -I. -I../../include
+CFLAGS := -W -Wall -O3 -I. -I../../include -I/usr/local/include
 
 ifdef STATICLINK
   CFLAGS += -DALLEGRO_STATICLINK
--- allegro-4.3.10-orig/configure.in	2008-01-03 15:47:10.000000000 -0500
+++ allegro-4.3.10/configure.in	2009-06-18 16:20:46.000000000 -0400
@@ -17,7 +17,7 @@
 #-----------------------------------------------------------------------------#
 
 dnl Build CFLAGS from scratch
-CFLAGS=
+CFLAGS= -I/usr/local/include
 
 dnl Enable 8-bpp color depth (default).
 AC_ARG_ENABLE(color8,


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/