summaryrefslogtreecommitdiffstats
path: root/rules/host-libpng.make
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2007-10-02 22:53:28 +0000
committerRobert Schwebel <r.schwebel@pengutronix.de>2007-10-02 22:53:28 +0000
commit449e5b8c17e7f97f3f1848abc146027236ddb979 (patch)
tree8dcdef9382bd930509febc4390d6fb360f62e721 /rules/host-libpng.make
parentf2984e348d4eff9a7abbe7ae8914c793b63a6d81 (diff)
downloadptxdist-449e5b8c17e7f97f3f1848abc146027236ddb979.tar.gz
ptxdist-449e5b8c17e7f97f3f1848abc146027236ddb979.tar.xz
* libpng: version bump; backport from TechPool
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@7337 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/host-libpng.make')
-rw-r--r--rules/host-libpng.make97
1 files changed, 97 insertions, 0 deletions
diff --git a/rules/host-libpng.make b/rules/host-libpng.make
new file mode 100644
index 000000000..da6958147
--- /dev/null
+++ b/rules/host-libpng.make
@@ -0,0 +1,97 @@
+# -*-makefile-*-
+# $Id$
+#
+# Copyright (C) 2007 by Marc Kleine-Budde <mkl@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+HOST_PACKAGES-$(PTXCONF_HOST_LIBPNG) += host-libpng
+
+#
+# Paths and names
+#
+HOST_LIBPNG_DIR = $(HOST_BUILDDIR)/$(LIBPNG)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+host-libpng_get: $(STATEDIR)/host-libpng.get
+
+$(STATEDIR)/host-libpng.get: $(STATEDIR)/libpng.get
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+host-libpng_extract: $(STATEDIR)/host-libpng.extract
+
+$(STATEDIR)/host-libpng.extract:
+ @$(call targetinfo, $@)
+ @$(call clean, $(HOST_LIBPNG_DIR))
+ @$(call extract, LIBPNG, $(HOST_BUILDDIR))
+ @$(call patchin, LIBPNG, $(HOST_LIBPNG_DIR))
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+host-libpng_prepare: $(STATEDIR)/host-libpng.prepare
+
+HOST_LIBPNG_PATH := PATH=$(HOST_PATH)
+HOST_LIBPNG_ENV := $(HOST_ENV)
+
+#
+# autoconf
+#
+HOST_LIBPNG_AUTOCONF := $(HOST_AUTOCONF)
+
+$(STATEDIR)/host-libpng.prepare:
+ @$(call targetinfo, $@)
+ @$(call clean, $(HOST_LIBPNG_DIR)/config.cache)
+ cd $(HOST_LIBPNG_DIR) && \
+ $(HOST_LIBPNG_PATH) $(HOST_LIBPNG_ENV) \
+ ./configure $(HOST_LIBPNG_AUTOCONF)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+host-libpng_compile: $(STATEDIR)/host-libpng.compile
+
+$(STATEDIR)/host-libpng.compile:
+ @$(call targetinfo, $@)
+ cd $(HOST_LIBPNG_DIR) && $(HOST_LIBPNG_PATH) $(MAKE) $(PARALLELMFLAGS)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+host-libpng_install: $(STATEDIR)/host-libpng.install
+
+$(STATEDIR)/host-libpng.install:
+ @$(call targetinfo, $@)
+ @$(call install, HOST_LIBPNG,,h)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+host-libpng_clean:
+ rm -rf $(STATEDIR)/host-libpng.*
+ rm -rf $(HOST_LIBPNG_DIR)
+
+# vim: syntax=make