summaryrefslogtreecommitdiffstats
path: root/rules/libpthread-stubs.make
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2007-10-19 14:08:00 +0000
committerMichael Olbrich <m.olbrich@pengutronix.de>2007-10-19 14:08:00 +0000
commitac648c7bac43a5cefff95edfd20880c459f52edf (patch)
tree8b7f9dfb0e612a6771162a3670c3be461f52d807 /rules/libpthread-stubs.make
parent3276365c54fb7e8e3fd2cc0eb4f128c90cb11962 (diff)
downloadptxdist-ac648c7bac43a5cefff95edfd20880c459f52edf.tar.gz
ptxdist-ac648c7bac43a5cefff95edfd20880c459f52edf.tar.xz
* xorg: Update to Xorg 7.3. Add new dependencies libxcb and
pixman. Update all packages to the corresponding versions. git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@7540 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/libpthread-stubs.make')
-rw-r--r--rules/libpthread-stubs.make129
1 files changed, 129 insertions, 0 deletions
diff --git a/rules/libpthread-stubs.make b/rules/libpthread-stubs.make
new file mode 100644
index 000000000..a85b44705
--- /dev/null
+++ b/rules/libpthread-stubs.make
@@ -0,0 +1,129 @@
+# -*-makefile-*-
+# $Id: template 6655 2007-01-02 12:55:21Z rsc $
+#
+# Copyright (C) 2007 by Michael Olbrich <m.olbrich@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
+#
+PACKAGES-$(PTXCONF_LIBPTHREAD_STUBS) += libpthread-stubs
+
+#
+# Paths and names
+#
+LIBPTHREAD_STUBS_VERSION := 0.1
+LIBPTHREAD_STUBS := libpthread-stubs-$(LIBPTHREAD_STUBS_VERSION)
+LIBPTHREAD_STUBS_SUFFIX := tar.bz2
+LIBPTHREAD_STUBS_URL := http://xcb.freedesktop.org/dist/$(LIBPTHREAD_STUBS).$(LIBPTHREAD_STUBS_SUFFIX)
+LIBPTHREAD_STUBS_SOURCE := $(SRCDIR)/$(LIBPTHREAD_STUBS).$(LIBPTHREAD_STUBS_SUFFIX)
+LIBPTHREAD_STUBS_DIR := $(BUILDDIR)/$(LIBPTHREAD_STUBS)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+libpthread-stubs_get: $(STATEDIR)/libpthread-stubs.get
+
+$(STATEDIR)/libpthread-stubs.get: $(libpthread-stubs_get_deps_default)
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+$(LIBPTHREAD_STUBS_SOURCE):
+ @$(call targetinfo, $@)
+ @$(call get, LIBPTHREAD_STUBS)
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+libpthread-stubs_extract: $(STATEDIR)/libpthread-stubs.extract
+
+$(STATEDIR)/libpthread-stubs.extract: $(libpthread-stubs_extract_deps_default)
+ @$(call targetinfo, $@)
+ @$(call clean, $(LIBPTHREAD_STUBS_DIR))
+ @$(call extract, LIBPTHREAD_STUBS)
+ @$(call patchin, LIBPTHREAD_STUBS)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+libpthread-stubs_prepare: $(STATEDIR)/libpthread-stubs.prepare
+
+LIBPTHREAD_STUBS_PATH := PATH=$(CROSS_PATH)
+LIBPTHREAD_STUBS_ENV := $(CROSS_ENV)
+
+#
+# autoconf
+#
+LIBPTHREAD_STUBS_AUTOCONF := $(CROSS_AUTOCONF_USR)
+
+$(STATEDIR)/libpthread-stubs.prepare: $(libpthread-stubs_prepare_deps_default)
+ @$(call targetinfo, $@)
+ @$(call clean, $(LIBPTHREAD_STUBS_DIR)/config.cache)
+ cd $(LIBPTHREAD_STUBS_DIR) && \
+ $(LIBPTHREAD_STUBS_PATH) $(LIBPTHREAD_STUBS_ENV) \
+ ./configure $(LIBPTHREAD_STUBS_AUTOCONF)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+libpthread-stubs_compile: $(STATEDIR)/libpthread-stubs.compile
+
+$(STATEDIR)/libpthread-stubs.compile: $(libpthread-stubs_compile_deps_default)
+ @$(call targetinfo, $@)
+ cd $(LIBPTHREAD_STUBS_DIR) && $(LIBPTHREAD_STUBS_PATH) $(MAKE) $(PARALLELMFLAGS)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+libpthread-stubs_install: $(STATEDIR)/libpthread-stubs.install
+
+$(STATEDIR)/libpthread-stubs.install: $(libpthread-stubs_install_deps_default)
+ @$(call targetinfo, $@)
+ @$(call install, LIBPTHREAD_STUBS)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+libpthread-stubs_targetinstall: $(STATEDIR)/libpthread-stubs.targetinstall
+
+$(STATEDIR)/libpthread-stubs.targetinstall: $(libpthread-stubs_targetinstall_deps_default)
+ @$(call targetinfo, $@)
+
+ @$(call install_init, libpthread-stubs)
+ @$(call install_fixup, libpthread-stubs,PACKAGE,libpthread-stubs)
+ @$(call install_fixup, libpthread-stubs,PRIORITY,optional)
+ @$(call install_fixup, libpthread-stubs,VERSION,$(LIBPTHREAD_STUBS_VERSION))
+ @$(call install_fixup, libpthread-stubs,SECTION,base)
+ @$(call install_fixup, libpthread-stubs,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>")
+ @$(call install_fixup, libpthread-stubs,DEPENDS,)
+ @$(call install_fixup, libpthread-stubs,DESCRIPTION,missing)
+
+ @$(call install_finish, libpthread-stubs)
+
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+libpthread-stubs_clean:
+ rm -rf $(STATEDIR)/libpthread-stubs.*
+ rm -rf $(IMAGEDIR)/libpthread-stubs_*
+ rm -rf $(LIBPTHREAD_STUBS_DIR)
+
+# vim: syntax=make