diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2005-07-07 11:28:56 +0000 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2005-07-07 11:28:56 +0000 |
commit | f21c518579930a410b60dd4a7c627c05d8a418d6 (patch) | |
tree | d1c34fbf763d309b0d852344059bc1465e9fb349 /rules/liblist.make | |
parent | 64e7962507905eecc43a6e420cd2ee6ef45271b6 (diff) | |
download | ptxdist-f21c518579930a410b60dd4a7c627c05d8a418d6.tar.gz ptxdist-f21c518579930a410b60dd4a7c627c05d8a418d6.tar.xz |
* liblist: added
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-0.7-trunk@2907 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/liblist.make')
-rw-r--r-- | rules/liblist.make | 154 |
1 files changed, 154 insertions, 0 deletions
diff --git a/rules/liblist.make b/rules/liblist.make new file mode 100644 index 000000000..d41fa7aff --- /dev/null +++ b/rules/liblist.make @@ -0,0 +1,154 @@ +# -*-makefile-*- +# $Id$ +# +# Copyright (C) 2005 by Robert Schwebel +# +# 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 +# +ifdef PTXCONF_LIBLIST +PACKAGES += liblist +endif + +# +# Paths and names +# +LIBLIST_VERSION = 1.0.0 +LIBLIST = liblist-$(LIBLIST_VERSION) +LIBLIST_SUFFIX = tar.gz +LIBLIST_URL = http://www.pengutronix.de/software/liblist/download/$(LIBLIST).$(LIBLIST_SUFFIX) +LIBLIST_SOURCE = $(SRCDIR)/$(LIBLIST).$(LIBLIST_SUFFIX) +LIBLIST_DIR = $(BUILDDIR)/$(LIBLIST) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +liblist_get: $(STATEDIR)/liblist.get + +liblist_get_deps = $(LIBLIST_SOURCE) + +$(STATEDIR)/liblist.get: $(liblist_get_deps) + @$(call targetinfo, $@) + @$(call get_patches, $(LIBLIST)) + touch $@ + +$(LIBLIST_SOURCE): + @$(call targetinfo, $@) + @$(call get, $(LIBLIST_URL)) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +liblist_extract: $(STATEDIR)/liblist.extract + +liblist_extract_deps = $(STATEDIR)/liblist.get + +$(STATEDIR)/liblist.extract: $(liblist_extract_deps) + @$(call targetinfo, $@) + @$(call clean, $(LIBLIST_DIR)) + @$(call extract, $(LIBLIST_SOURCE)) + @$(call patchin, $(LIBLIST)) + touch $@ + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +liblist_prepare: $(STATEDIR)/liblist.prepare + +# +# dependencies +# +liblist_prepare_deps = \ + $(STATEDIR)/liblist.extract \ + $(STATEDIR)/virtual-xchain.install + +LIBLIST_PATH = PATH=$(CROSS_PATH) +LIBLIST_ENV = $(CROSS_ENV) +#LIBLIST_ENV += PKG_CONFIG_PATH=$(CROSS_LIB_DIR)/lib/pkgconfig +#LIBLIST_ENV += + +# +# autoconf +# +LIBLIST_AUTOCONF = $(CROSS_AUTOCONF) +LIBLIST_AUTOCONF += --prefix=$(CROSS_LIB_DIR) + +$(STATEDIR)/liblist.prepare: $(liblist_prepare_deps) + @$(call targetinfo, $@) + @$(call clean, $(LIBLIST_DIR)/config.cache) + cd $(LIBLIST_DIR) && \ + $(LIBLIST_PATH) $(LIBLIST_ENV) \ + ./configure $(LIBLIST_AUTOCONF) + touch $@ + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +liblist_compile: $(STATEDIR)/liblist.compile + +liblist_compile_deps = $(STATEDIR)/liblist.prepare + +$(STATEDIR)/liblist.compile: $(liblist_compile_deps) + @$(call targetinfo, $@) + cd $(LIBLIST_DIR) && $(LIBLIST_ENV) $(LIBLIST_PATH) make + touch $@ + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +liblist_install: $(STATEDIR)/liblist.install + +$(STATEDIR)/liblist.install: $(STATEDIR)/liblist.compile + @$(call targetinfo, $@) + cd $(LIBLIST_DIR) && $(LIBLIST_ENV) $(LIBLIST_PATH) make install + touch $@ + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +liblist_targetinstall: $(STATEDIR)/liblist.targetinstall + +liblist_targetinstall_deps = $(STATEDIR)/liblist.compile + +$(STATEDIR)/liblist.targetinstall: $(liblist_targetinstall_deps) + @$(call targetinfo, $@) + + @$(call install_init,default) + @$(call install_fixup,PACKAGE,liblist) + @$(call install_fixup,PRIORITY,optional) + @$(call install_fixup,VERSION,$(LIBLIST_VERSION)) + @$(call install_fixup,SECTION,base) + @$(call install_fixup,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>") + @$(call install_fixup,DEPENDS,) + @$(call install_fixup,DESCRIPTION,missing) + + @$(call install_copy, 0, 0, 0755, $(LIBLIST_DIR)/.libs/libptxlist.so.0.0.0, /usr/lib/libptxlist.so.0.0.0) + @$(call install_link, libptxlist.so.1.0.0, /usr/lib/libptxlist.so.0) + @$(call install_link, libptxlist.so.1.0.0, /usr/lib/libptxlist.so) + + @$(call install_finish) + + touch $@ + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +liblist_clean: + rm -rf $(STATEDIR)/liblist.* + rm -rf $(IMAGEDIR)/liblist_* + rm -rf $(LIBLIST_DIR) + +# vim: syntax=make |