[packages/libglpng] - use libpng12-config for cflags and libs - added -lm (unresolved sqrt)

witekfl witekfl at pld-linux.org
Thu Jan 23 10:24:02 CET 2014


commit 7e5c47fed543f8a4ca2c39dbd91eed9a00a0a2ed
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date:   Thu Jan 23 10:22:02 2014 +0100

    - use libpng12-config for cflags and libs
    - added -lm (unresolved sqrt)

 libpng.patch | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/libpng.patch b/libpng.patch
new file mode 100644
index 0000000..a01524b
--- /dev/null
+++ b/libpng.patch
@@ -0,0 +1,10 @@
+--- libglpng-1.45/Makefile.orig	2014-01-23 10:10:34.521714320 +0100
++++ libglpng-1.45/Makefile	2014-01-23 10:17:43.716062636 +0100
+@@ -1,5 +1,5 @@
+-CFLAGS=-Wall $(OPT) -fPIC -I$(shell pwd)/include -I/usr/X11R6/include
+-LDFLAGS=-L/usr/X11R6/lib -lpng -lGL
++CFLAGS=-Wall $(OPT) -fPIC -I$(shell pwd)/include `libpng12-config --cflags`
++LDFLAGS=-L/usr/X11R6/lib `libpng12-config --libs` -lGL -lm
+ SHAREDLIBFLAGS=-shared
+ DESTDIR=
+ PREFIX=/usr/local
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libglpng.git/commitdiff/41aa2a9b9916fad499d4b0433e1fee9f96610c04



More information about the pld-cvs-commit mailing list