[vlc-commits] contrib: build libpng only if needed

Rémi Denis-Courmont git at videolan.org
Mon Jul 4 16:43:44 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jul  4 11:59:58 2011 +0300| [1c398c43520bd26526a2df3fde10fa292feb0520] | committer: Rémi Denis-Courmont

contrib: build libpng only if needed

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1c398c43520bd26526a2df3fde10fa292feb0520
---

 contrib/src/png/rules.mak |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/contrib/src/png/rules.mak b/contrib/src/png/rules.mak
index 8b6c534..5b0b751 100644
--- a/contrib/src/png/rules.mak
+++ b/contrib/src/png/rules.mak
@@ -3,6 +3,9 @@ PNG_VERSION := 1.4.7
 PNG_URL := $(SF)/libpng/libpng-$(PNG_VERSION).tar.bz2
 
 PKGS += png
+ifeq ($(call need_pkg,"libpng"),)
+PKGS_FOUND += png
+endif
 
 $(TARBALLS)/libpng-$(PNG_VERSION).tar.bz2:
 	$(call download,$(PNG_URL))



More information about the vlc-commits mailing list