tags 669433 + patch thanks On 19/04/12 21:12, Lucas Nussbaum wrote: > Relevant part: >> gcc -W -Wall -Wdeclaration-after-statement -std=c99 -c -g `sdl-config >> --cflags` `pkg-config lua --cflags --silence-errors ||pkg-config lua5.1 >> --cflags --silence-errors ||pkg-config lua-5.1 --cflags` -D__ENABLE_LUA__ >> -O -Wall -g -O2 -c fileformats.c -o ../obj/unix/fileformats.o >> fileformats.c:30:17: fatal error: png.h: No such file or directory >> compilation terminated. >> make[1]: *** [../obj/unix/fileformats.o] Error 1
Please find attached a patch to fix this FTBFS. Regards -- Sebastian Ramacher
--- grafx2-2.3.orig/src/Makefile
+++ grafx2-2.3/src/Makefile
@@ -278,8 +278,8 @@ else
# Compiles a regular linux executable for the native platform
BIN = ../bin/grafx2
- COPT = -W -Wall -Wdeclaration-after-statement -std=c99 -c -g `sdl-config --cflags` $(TTFCOPT) $(LUACOPT) $(JOYCOPT) $(VKEYCOPT) -O$(OPTIM)
- LOPT = `sdl-config --libs` -lSDL_image $(TTFLOPT) -lpng $(LUALOPT) -lm
+ COPT = -W -Wall -Wdeclaration-after-statement -std=c99 -c -g `sdl-config --cflags` $(TTFCOPT) $(LUACOPT) $(JOYCOPT) $(VKEYCOPT) -O$(OPTIM) `pkg-config --cflags libpng`
+ LOPT = `sdl-config --libs` -lSDL_image $(TTFLOPT) `pkg-config --libs libpng` $(LUALOPT) -lm
# Use gcc for compiling. Use ncc to build a callgraph and analyze the code.
CC = gcc
#CC = nccgen -ncgcc -ncld -ncfabs
signature.asc
Description: OpenPGP digital signature

