summaryrefslogtreecommitdiffstats
path: root/rules/host-libgd.make
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2008-06-06 14:44:03 +0000
committerMichael Olbrich <m.olbrich@pengutronix.de>2008-06-06 14:44:03 +0000
commit6b30ddca7ee7f7921314473212846c22c1eba663 (patch)
tree702285e45b92171fdf7def0651d4a618f5789c82 /rules/host-libgd.make
parent6f196b3399977a0a62216027f5fa24cb30267fe8 (diff)
downloadptxdist-6b30ddca7ee7f7921314473212846c22c1eba663.tar.gz
ptxdist-6b30ddca7ee7f7921314473212846c22c1eba663.tar.xz
* host-* stuff for usplash
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@8463 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/host-libgd.make')
-rw-r--r--rules/host-libgd.make94
1 files changed, 94 insertions, 0 deletions
diff --git a/rules/host-libgd.make b/rules/host-libgd.make
new file mode 100644
index 000000000..5498398d1
--- /dev/null
+++ b/rules/host-libgd.make
@@ -0,0 +1,94 @@
+# -*-makefile-*-
+# $Id$
+#
+# Copyright (C) 2008 by
+#
+# 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_LIBGD) += host-libgd
+
+#
+# Paths and names
+#
+HOST_LIBGD_DIR = $(HOST_BUILDDIR)/$(LIBGD)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/host-libgd.get: $(STATEDIR)/libgd.get
+ @$(call targetinfo)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/host-libgd.extract:
+ @$(call targetinfo)
+ @$(call clean, $(HOST_LIBGD_DIR))
+ @$(call extract, LIBGD, $(HOST_BUILDDIR))
+ @$(call patchin, LIBGD, $(HOST_LIBGD_DIR))
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+HOST_LIBGD_PATH := PATH=$(HOST_PATH)
+HOST_LIBGD_ENV := $(HOST_ENV)
+
+#
+# autoconf
+#
+HOST_LIBGD_AUTOCONF := \
+ $(HOST_AUTOCONF) \
+ --without-x \
+ --without-jpeg \
+ --with-png=$(SYSROOT_HOST) \
+ --without-xpm \
+ --without-freetype \
+ --without-fontconfig
+
+$(STATEDIR)/host-libgd.prepare:
+ @$(call targetinfo)
+ @$(call clean, $(HOST_LIBGD_DIR)/config.cache)
+ cd $(HOST_LIBGD_DIR) && \
+ $(HOST_LIBGD_PATH) $(HOST_LIBGD_ENV) \
+ ./configure $(HOST_LIBGD_AUTOCONF)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/host-libgd.compile:
+ @$(call targetinfo)
+ cd $(HOST_LIBGD_DIR) && $(HOST_LIBGD_PATH) $(MAKE) $(PARALLELMFLAGS)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/host-libgd.install:
+ @$(call targetinfo)
+ @$(call install, HOST_LIBGD,,h)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+host-libgd_clean:
+ rm -rf $(STATEDIR)/host-libgd.*
+ rm -rf $(HOST_LIBGD_DIR)
+
+# vim: syntax=make