From 3cc32d257fdab880927fdff7517559420a441685 Mon Sep 17 00:00:00 2001 From: Robert Schwebel Date: Thu, 26 Jul 2007 16:02:51 +0000 Subject: liboil: added; patch by Guillaume Gourat git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@7247 33e552b5-05e3-0310-8538-816dae2090ed --- CREDITS | 4 + ChangeLog | 4 + .../generic/liboil-0.3.12-ltmain_sh.diff | 12 ++ rules/Kconfig | 1 + rules/liboil.in | 10 ++ rules/liboil.make | 135 +++++++++++++++++++++ 6 files changed, 166 insertions(+) create mode 100644 patches/liboil-0.3.12/generic/liboil-0.3.12-ltmain_sh.diff create mode 100644 rules/liboil.in create mode 100644 rules/liboil.make diff --git a/CREDITS b/CREDITS index 5c2833c14..8928d6ff8 100644 --- a/CREDITS +++ b/CREDITS @@ -41,6 +41,10 @@ N: Vince Chen E: chen@glimmerglass.com D: Developer +N: Guillaume GOURAT +E: guillaume.forum@free.fr +D: Developer + N: Sascha Hauer E: s.hauer@pengutronix.de W: http://www.pengutronix.de diff --git a/ChangeLog b/ChangeLog index aa0ad337b..4e29821b1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-07-26 Robert Schwebel + + * liboil: added; patch by Guillaume Gourat. + 2007-05-05 Robert Schwebel * trunk: backports from 1.0.0-trunk diff --git a/patches/liboil-0.3.12/generic/liboil-0.3.12-ltmain_sh.diff b/patches/liboil-0.3.12/generic/liboil-0.3.12-ltmain_sh.diff new file mode 100644 index 000000000..9821c5344 --- /dev/null +++ b/patches/liboil-0.3.12/generic/liboil-0.3.12-ltmain_sh.diff @@ -0,0 +1,12 @@ +diff --unified --recursive liboil-0.3.12/ltmain.sh liboil-0.3.12-nx1/ltmain.sh +--- liboil-0.3.12/ltmain.sh 2006-06-19 20:36:49.000000000 +0200 ++++ liboil-0.3.12-nx1/ltmain.sh 2007-07-26 16:45:07.000000000 +0200 +@@ -2545,7 +2545,7 @@ + { test "$use_static_libs" = no || test -z "$old_library"; }; then + if test "$installed" = no; then + notinst_deplibs="$notinst_deplibs $lib" +- need_relink=yes ++ #need_relink=yes + fi + # This is a shared library + diff --git a/rules/Kconfig b/rules/Kconfig index e8c949b0a..ede5fd61d 100644 --- a/rules/Kconfig +++ b/rules/Kconfig @@ -155,6 +155,7 @@ source "rules/libiconv.in" source "rules/liblist.in" source "rules/libmqueue.in" source "rules/libnetpbm.in" +source "rules/liboil.in" source "rules/libpopt.in" source "rules/librn.in" source "rules/libxml2.in" diff --git a/rules/liboil.in b/rules/liboil.in new file mode 100644 index 000000000..7dab2557c --- /dev/null +++ b/rules/liboil.in @@ -0,0 +1,10 @@ +config LIBOIL + bool + prompt "liboil" + help + Liboil is a library of simple functions that are optimized for + various CPUs ("optimization of inner loops"). See the project + homepage for details: + + http://liboil.freedesktop.org/wiki/ + diff --git a/rules/liboil.make b/rules/liboil.make new file mode 100644 index 000000000..37b4dc766 --- /dev/null +++ b/rules/liboil.make @@ -0,0 +1,135 @@ +# -*-makefile-*- +# $Id: template 5041 2006-03-09 08:45:49Z mkl $ +# +# Copyright (C) 2006 by Robert Schwebel +# Pengutronix , Germany +# +# 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_LIBOIL) += liboil + +# +# Paths and names +# +LIBOIL_VERSION := 0.3.12 +LIBOIL := liboil-$(LIBOIL_VERSION) +LIBOIL_SUFFIX := tar.gz +LIBOIL_URL := http://liboil.freedesktop.org/download/$(LIBOIL).$(LIBOIL_SUFFIX) +LIBOIL_SOURCE := $(SRCDIR)/$(LIBOIL).$(LIBOIL_SUFFIX) +LIBOIL_DIR := $(BUILDDIR)/$(LIBOIL) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +liboil_get: $(STATEDIR)/liboil.get + +$(STATEDIR)/liboil.get: $(liboil_get_deps_default) + @$(call targetinfo, $@) + @$(call touch, $@) + +$(LIBOIL_SOURCE): + @$(call targetinfo, $@) + @$(call get, LIBOIL) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +liboil_extract: $(STATEDIR)/liboil.extract + +$(STATEDIR)/liboil.extract: $(liboil_extract_deps_default) + @$(call targetinfo, $@) + @$(call clean, $(LIBOIL_DIR)) + @$(call extract, LIBOIL) + @$(call patchin, LIBOIL) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +liboil_prepare: $(STATEDIR)/liboil.prepare + +LIBOIL_PATH := PATH=$(CROSS_PATH) +LIBOIL_ENV := \ + $(CROSS_ENV) + +# +# autoconf +# +LIBOIL_AUTOCONF := $(CROSS_AUTOCONF_USR) + +$(STATEDIR)/liboil.prepare: $(liboil_prepare_deps_default) + @$(call targetinfo, $@) + @$(call clean, $(LIBOIL_DIR)/config.cache) + cd $(LIBOIL_DIR) && \ + $(LIBOIL_PATH) $(LIBOIL_ENV) \ + ./configure $(LIBOIL_AUTOCONF) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +liboil_compile: $(STATEDIR)/liboil.compile + +$(STATEDIR)/liboil.compile: $(liboil_compile_deps_default) + @$(call targetinfo, $@) + cd $(LIBOIL_DIR) && $(LIBOIL_PATH) $(MAKE) $(PARALLELMFLAGS) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +liboil_install: $(STATEDIR)/liboil.install + +$(STATEDIR)/liboil.install: $(liboil_install_deps_default) + @$(call targetinfo, $@) + @$(call install, LIBOIL) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +liboil_targetinstall: $(STATEDIR)/liboil.targetinstall + +$(STATEDIR)/liboil.targetinstall: $(liboil_targetinstall_deps_default) + @$(call targetinfo, $@) + + @$(call install_init, liboil) + @$(call install_fixup,liboil,PACKAGE,liboil) + @$(call install_fixup,liboil,PRIORITY,optional) + @$(call install_fixup,liboil,VERSION,$(LIBOIL_VERSION)) + @$(call install_fixup,liboil,SECTION,base) + @$(call install_fixup,liboil,AUTHOR,"Guillaume GOURAT ") + @$(call install_fixup,liboil,DEPENDS,) + @$(call install_fixup,liboil,DESCRIPTION,missing) + + @$(call install_copy, liboil, 0, 0, 0644, $(LIBOIL_DIR)/liboil/.libs/liboil-0.3.so.0.1.0, /usr/lib/liboil-0.3.so.0.1.0, y) + @$(call install_link, liboil, liboil-0.3.so.0.1.0, /usr/lib/liboil-0.3.so.0) + @$(call install_link, liboil, liboil-0.3.so.0.1.0, /usr/lib/liboil-0.3.so) + + @$(call install_finish,liboil) + + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +liboil_clean: + rm -rf $(STATEDIR)/liboil.* + rm -rf $(IMAGEDIR)/liboil_* + rm -rf $(LIBOIL_DIR) + +# vim: syntax=make -- cgit v1.2.3