diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2005-07-22 08:00:52 +0000 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2005-07-22 08:00:52 +0000 |
commit | b08fb437bc16c563b8918e4cec370fd6e16ae3bc (patch) | |
tree | 87594945ef31a06462ef89415271f7602409383b | |
parent | 384c48a65145f1967cdf80c78226ddcde55c23de (diff) | |
download | ptxdist-b08fb437bc16c563b8918e4cec370fd6e16ae3bc.tar.gz ptxdist-b08fb437bc16c563b8918e4cec370fd6e16ae3bc.tar.xz |
* libxmlconfig: added
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-0.7-trunk@2976 33e552b5-05e3-0310-8538-816dae2090ed
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | rules/Kconfig | 1 | ||||
-rw-r--r-- | rules/libxmlconfig.in | 11 | ||||
-rw-r--r-- | rules/libxmlconfig.make | 152 |
4 files changed, 168 insertions, 0 deletions
@@ -1,3 +1,7 @@ +2005-07-22 Robert Schwebel <r.schwebel@pengutronix.de> + + * libxmlconfig: added + 2005-07-21 Bjoern Buerger <b.buerger@pengutronix.de> * busybox: (udhcpc) install fix; patch by Brian Murphy diff --git a/rules/Kconfig b/rules/Kconfig index a6777a1ab..bbba1b00d 100644 --- a/rules/Kconfig +++ b/rules/Kconfig @@ -109,6 +109,7 @@ source "rules/gettext.in" source "rules/glib26.in" source "rules/liblist.in" source "rules/libxml2.in" +source "rules/libxmlconfig.in" source "rules/libxslt.in" source "rules/ncurses.in" source "rules/pcre.in" diff --git a/rules/libxmlconfig.in b/rules/libxmlconfig.in new file mode 100644 index 000000000..1ee3e1413 --- /dev/null +++ b/rules/libxmlconfig.in @@ -0,0 +1,11 @@ +menuconfig LIBXMLCONFIG + bool + default N + prompt "libxmlconfig" + help + libxmlconfig is a helper library which lets you pull config + information out of XML files by using XPath queries. For more + details see the project web site: + + http://www.pengutronix.de/software/libxmlconfig/ + diff --git a/rules/libxmlconfig.make b/rules/libxmlconfig.make new file mode 100644 index 000000000..f21c0e114 --- /dev/null +++ b/rules/libxmlconfig.make @@ -0,0 +1,152 @@ +# -*-makefile-*- +# $Id: template 2922 2005-07-11 19:17:53Z rsc $ +# +# 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_LIBXMLCONFIG +PACKAGES += libxmlconfig +endif + +# +# Paths and names +# +LIBXMLCONFIG_VERSION = 1.0.0 +LIBXMLCONFIG = libxmlconfig-$(LIBXMLCONFIG_VERSION) +LIBXMLCONFIG_SUFFIX = tar.bz2 +LIBXMLCONFIG_URL = http://www.pengutronix.de/software/libxmlconfig/download/$(LIBXMLCONFIG).$(LIBXMLCONFIG_SUFFIX) +LIBXMLCONFIG_SOURCE = $(SRCDIR)/$(LIBXMLCONFIG).$(LIBXMLCONFIG_SUFFIX) +LIBXMLCONFIG_DIR = $(BUILDDIR)/$(LIBXMLCONFIG) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +libxmlconfig_get: $(STATEDIR)/libxmlconfig.get + +libxmlconfig_get_deps = $(LIBXMLCONFIG_SOURCE) + +$(STATEDIR)/libxmlconfig.get: $(libxmlconfig_get_deps) + @$(call targetinfo, $@) + @$(call get_patches, $(LIBXMLCONFIG)) + touch $@ + +$(LIBXMLCONFIG_SOURCE): + @$(call targetinfo, $@) + @$(call get, $(LIBXMLCONFIG_URL)) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +libxmlconfig_extract: $(STATEDIR)/libxmlconfig.extract + +libxmlconfig_extract_deps = $(STATEDIR)/libxmlconfig.get + +$(STATEDIR)/libxmlconfig.extract: $(libxmlconfig_extract_deps) + @$(call targetinfo, $@) + @$(call clean, $(LIBXMLCONFIG_DIR)) + @$(call extract, $(LIBXMLCONFIG_SOURCE)) + @$(call patchin, $(LIBXMLCONFIG)) + touch $@ + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +libxmlconfig_prepare: $(STATEDIR)/libxmlconfig.prepare + +# +# dependencies +# +libxmlconfig_prepare_deps = \ + $(STATEDIR)/libxmlconfig.extract \ + $(STATEDIR)/virtual-xchain.install + +LIBXMLCONFIG_PATH = PATH=$(CROSS_PATH) +LIBXMLCONFIG_ENV = $(CROSS_ENV) + +# +# autoconf +# +LIBXMLCONFIG_AUTOCONF = $(CROSS_AUTOCONF) +LIBXMLCONFIG_AUTOCONF += --prefix=$(CROSS_LIB_DIR) + +$(STATEDIR)/libxmlconfig.prepare: $(libxmlconfig_prepare_deps) + @$(call targetinfo, $@) + @$(call clean, $(LIBXMLCONFIG_DIR)/config.cache) + cd $(LIBXMLCONFIG_DIR) && \ + $(LIBXMLCONFIG_PATH) $(LIBXMLCONFIG_ENV) \ + ./configure $(LIBXMLCONFIG_AUTOCONF) + touch $@ + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +libxmlconfig_compile: $(STATEDIR)/libxmlconfig.compile + +libxmlconfig_compile_deps = $(STATEDIR)/libxmlconfig.prepare + +$(STATEDIR)/libxmlconfig.compile: $(libxmlconfig_compile_deps) + @$(call targetinfo, $@) + cd $(LIBXMLCONFIG_DIR) && $(LIBXMLCONFIG_ENV) $(LIBXMLCONFIG_PATH) make + touch $@ + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +libxmlconfig_install: $(STATEDIR)/libxmlconfig.install + +$(STATEDIR)/libxmlconfig.install: $(STATEDIR)/libxmlconfig.compile + @$(call targetinfo, $@) + cd $(LIBXMLCONFIG_DIR) && $(LIBXMLCONFIG_ENV) $(LIBXMLCONFIG_PATH) make install + touch $@ + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +libxmlconfig_targetinstall: $(STATEDIR)/libxmlconfig.targetinstall + +libxmlconfig_targetinstall_deps = $(STATEDIR)/libxmlconfig.compile + +$(STATEDIR)/libxmlconfig.targetinstall: $(libxmlconfig_targetinstall_deps) + @$(call targetinfo, $@) + + @$(call install_init,default) + @$(call install_fixup,PACKAGE,libxmlconfig) + @$(call install_fixup,PRIORITY,optional) + @$(call install_fixup,VERSION,$(LIBXMLCONFIG_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, $(LIBXMLCONFIG_DIR)/.libs/libxmlconfig.so.0.0.0, /usr/lib/libxmlconfig.so.0.0.0) + @$(call install_link, libxmlconfig.so.0.0.0, /usr/lib/libxmlconfig.so.0) + @$(call install_link, libxmlconfig.so.0.0.0, /usr/lib/libxmlconfig.so) + + @$(call install_finish) + + touch $@ + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +libxmlconfig_clean: + rm -rf $(STATEDIR)/libxmlconfig.* + rm -rf $(IMAGEDIR)/libxmlconfig_* + rm -rf $(LIBXMLCONFIG_DIR) + +# vim: syntax=make |