diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2005-09-13 11:25:01 +0000 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2005-09-13 11:25:01 +0000 |
commit | 421170a5a582c080bafd17cc3261388da2ef681d (patch) | |
tree | 177e0915b88f47eb46d9f325d7fe2c7f12fdb6b7 /rules/librn.make | |
parent | 597812e0ec29538b77f207a79eba6c6884449225 (diff) | |
download | ptxdist-421170a5a582c080bafd17cc3261388da2ef681d.tar.gz ptxdist-421170a5a582c080bafd17cc3261388da2ef681d.tar.xz |
* added libgsloop
* updated librn (and renamed rn->librn)
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-0.7-trunk@3107 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/librn.make')
-rw-r--r-- | rules/librn.make | 162 |
1 files changed, 162 insertions, 0 deletions
diff --git a/rules/librn.make b/rules/librn.make new file mode 100644 index 000000000..8ca9aa348 --- /dev/null +++ b/rules/librn.make @@ -0,0 +1,162 @@ +# -*-makefile-*- +# $Id$ +# +# Copyright (C) 2003 Ixia Corporation, by Milan Bobde +# 2005 Pengutronix, Marc Kleine-Budde +# +# 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_LIBRN +PACKAGES += librn +endif + +# +# Paths and names +# +LIBRN_VERSION = 0.4.4 +LIBRN = librn-$(LIBRN_VERSION) +LIBRN_SUFFIX = tar.bz2 +LIBRN_URL = http://www.pengutronix.de/software/librn/$(LIBRN).$(LIBRN_SUFFIX) +LIBRN_SOURCE = $(SRCDIR)/$(LIBRN).$(LIBRN_SUFFIX) +LIBRN_DIR = $(BUILDDIR)/$(LIBRN) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +librn_get: $(STATEDIR)/librn.get + +librn_get_deps = $(LIBRN_SOURCE) + +$(STATEDIR)/librn.get: $(librn_get_deps) + @$(call targetinfo, $@) + @$(call get_patches, $(LIBRN)) + touch $@ + +$(LIBRN_SOURCE): + @$(call targetinfo, $@) + @$(call get, $(LIBRN_URL)) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +librn_extract: $(STATEDIR)/librn.extract + +librn_extract_deps = $(STATEDIR)/librn.get + +$(STATEDIR)/librn.extract: $(librn_extract_deps) + @$(call targetinfo, $@) + @$(call clean, $(LIBRN_DIR)) + @$(call extract, $(LIBRN_SOURCE)) + @$(call patchin, $(LIBRN)) + touch $@ + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +librn_prepare: $(STATEDIR)/librn.prepare + +# +# dependencies +# +librn_prepare_deps = \ + $(STATEDIR)/librn.extract \ + $(STATEDIR)/virtual-xchain.install + +# +# Only needed if using old glibc (older than 2.3.2) +# +#ifdef PTXCONF_SYS-EPOLL-LIB +#rn_prepare_deps += $(STATEDIR)/sys-epoll-lib.install +#endif + +LIBRN_PATH = PATH=$(CROSS_PATH) +LIBRN_ENV = $(CROSS_ENV) + +# +# autoconf +# +LIBRN_AUTOCONF = \ + $(CROSS_AUTOCONF) \ + --prefix=$(CROSS_LIB_DIR) \ + --disable-debug + +$(STATEDIR)/librn.prepare: $(librn_prepare_deps) + @$(call targetinfo, $@) + @$(call clean, $(LIBRN_DIR)/config.cache) + cd $(LIBRN_DIR) && \ + $(LIBRN_PATH) $(LIBRN_ENV) \ + ./configure $(LIBRN_AUTOCONF) + touch $@ + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +librn_compile: $(STATEDIR)/librn.compile + +librn_compile_deps = $(STATEDIR)/librn.prepare + +$(STATEDIR)/librn.compile: $(librn_compile_deps) + @$(call targetinfo, $@) + cd $(LIBRN_DIR) && $(LIBRN_ENV) $(LIBRN_PATH) make + touch $@ + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +librn_install: $(STATEDIR)/librn.install + +$(STATEDIR)/librn.install: $(STATEDIR)/librn.compile + @$(call targetinfo, $@) + cd $(LIBRN_DIR) && $(LIBRN_ENV) $(LIBRN_PATH) make install + touch $@ + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +librn_targetinstall: $(STATEDIR)/librn.targetinstall + +librn_targetinstall_deps = $(STATEDIR)/librn.compile + +$(STATEDIR)/librn.targetinstall: $(librn_targetinstall_deps) + @$(call targetinfo, $@) + + @$(call install_init,default) + @$(call install_fixup,PACKAGE,librn) + @$(call install_fixup,PRIORITY,optional) + @$(call install_fixup,VERSION,$(LIBRN_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, $(LIBRN_DIR)/src/.libs/librn.so.0.0.0, /usr/lib/librn.so.0.0.0) + @$(call install_link, librn.so.0.0.0, /usr/lib/librn.so.0) + @$(call install_link, librn.so.0.0.0, /usr/lib/librn.so) + + @$(call install_finish) + + touch $@ + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +librn_clean: + rm -rf $(STATEDIR)/librn.* + rm -rf $(IMAGEDIR)/librn_* + rm -rf $(LIBRN_DIR) + +# vim: syntax=make |