Robert Schwebel wrote:
Bart,
On Thu, Sep 11, 2008 at 01:40:46PM +0200, Bart De Vos wrote:
Hereby I send the files to include GNU's Scientific Library, including
patches.
[...]
@$(call install_fixup, libgsl,AUTHOR,"Robert Schwebel <[EMAIL
PROTECTED]>")
@$(call install_fixup, libgsl,DEPENDS,)
@$(call install_fixup, libgsl,DESCRIPTION,missing)
# -*-makefile-*-
# $Id: template 6655 2007-01-02 12:55:21Z rsc $
#
# Copyright (C) 2008 by info-gsl
#
# 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_LIBGSL) += libgsl
#
# Paths and names
#
LIBGSL_VERSION := 1.11
LIBGSL := gsl-$(LIBGSL_VERSION)
LIBGSL_SUFFIX := tar.gz
ifdef PTXCONF_SETUP_GNUMIRROR
LIBGSL_URL :=
$(PTXCONF_SETUP_GNUMIRROR)/gsl/$(LIBGSL).$(LIBGSL_SUFFIX)
else
LIBGSL_URL :=
ftp://ftp.gnu.org/gnu/gsl/$(LIBGSL).$(LIBGSL_SUFFIX)
endif
LIBGSL_SOURCE := $(SRCDIR)/$(LIBGSL).$(LIBGSL_SUFFIX)
LIBGSL_DIR := $(BUILDDIR)/$(LIBGSL)
#
----------------------------------------------------------------------------
# Get
#
----------------------------------------------------------------------------
libgsl_get: $(STATEDIR)/libgsl.get
$(STATEDIR)/libgsl.get: $(libgsl_get_deps_default)
@$(call targetinfo, $@)
@$(call touch, $@)
$(LIBGSL_SOURCE):
@$(call targetinfo, $@)
@$(call get, LIBGSL)
#
----------------------------------------------------------------------------
# Extract
#
----------------------------------------------------------------------------
libgsl_extract: $(STATEDIR)/libgsl.extract
$(STATEDIR)/libgsl.extract: $(libgsl_extract_deps_default)
@$(call targetinfo, $@)
@$(call clean, $(LIBGSL_DIR))
@$(call extract, LIBGSL)
@$(call patchin, LIBGSL)
@$(call touch, $@)
#
----------------------------------------------------------------------------
# Prepare
#
----------------------------------------------------------------------------
libgsl_prepare: $(STATEDIR)/libgsl.prepare
LIBGSL_PATH := PATH=$(CROSS_PATH)
LIBGSL_ENV := $(CROSS_ENV)
#
# autoconf
#
LIBGSL_AUTOCONF := $(CROSS_AUTOCONF_USR)
$(STATEDIR)/libgsl.prepare: $(libgsl_prepare_deps_default)
@$(call targetinfo, $@)
@$(call clean, $(LIBGSL_DIR)/config.cache)
cd $(LIBGSL_DIR) && \
$(LIBGSL_PATH) $(LIBGSL_ENV) \
./configure $(LIBGSL_AUTOCONF)
@$(call touch, $@)
#
----------------------------------------------------------------------------
# Compile
#
----------------------------------------------------------------------------
libgsl_compile: $(STATEDIR)/libgsl.compile
$(STATEDIR)/libgsl.compile: $(libgsl_compile_deps_default)
@$(call targetinfo, $@)
cd $(LIBGSL_DIR) && $(LIBGSL_ENV) $(LIBGSL_PATH) $(MAKE)
$(PARALLELMFLAGS)
@$(call touch, $@)
#
----------------------------------------------------------------------------
# Install
#
----------------------------------------------------------------------------
libgsl_install: $(STATEDIR)/libgsl.install
$(STATEDIR)/libgsl.install: $(libgsl_install_deps_default)
@$(call targetinfo, $@)
@$(call install, LIBGSL)
@$(call touch, $@)
#
----------------------------------------------------------------------------
# Target-Install
#
----------------------------------------------------------------------------
libgsl_targetinstall: $(STATEDIR)/libgsl.targetinstall
$(STATEDIR)/libgsl.targetinstall: $(libgsl_targetinstall_deps_default)
@$(call targetinfo, $@)
@$(call install_init, libgsl)
@$(call install_fixup, libgsl,PACKAGE,libgsl)
@$(call install_fixup, libgsl,PRIORITY,optional)
@$(call install_fixup, libgsl,VERSION,$(LIBGSL_VERSION))
@$(call install_fixup, libgsl,SECTION,base)
@$(call install_fixup, libgsl,AUTHOR,"Bart De Vos <[EMAIL PROTECTED]>")
@$(call install_fixup, libgsl,DEPENDS,)
@$(call install_fixup, libgsl,DESCRIPTION,"The GNU Scientific Library
(GSL) is a numerical library for C and C++ programmers")
@$(call install_copy, libgsl, 0, 0, 0644, \
$(LIBGSL_DIR)/.libs/libgsl.so.0.12.0, \
/usr/lib/libgsl.so.0.12.0, "strip")
@$(call install_link, libgsl, libgsl.so.0.12.0, /usr/lib/libgsl.so.0)
@$(call install_link, libgsl, libgsl.so.0.12.0, /usr/lib/libgsl.so)
@$(call install_copy, libgsl, 0, 0, 0644, \
$(LIBGSL_DIR)/gsl-config, \
/usr/bin/gsl-config, "no")
@$(call install_copy, libgsl, 0, 0, 0644, \
$(LIBGSL_DIR)/gsl-histogram, \
/usr/bin/gsl-histogram, "strip")
@$(call install_copy, libgsl, 0, 0, 0644, \
$(LIBGSL_DIR)/gsl-randist, \
/usr/bin/gsl-randist, "strip")
@$(call install_finish, libgsl)
@$(call touch, $@)
#
----------------------------------------------------------------------------
# Clean
#
----------------------------------------------------------------------------
libgsl_clean:
rm -rf $(STATEDIR)/gsl.*
rm -rf $(IMAGEDIR)/gsl_*
rm -rf $(LIBGSL_DIR)
# vim: syntax=make
Can you add yourself as the author of the packet here? The "newpacket"
script is still broken here, fixes are welcome.
Please re-send the patch with a canonical patch header, including a
Signed-off-by: line.
http://lxr.linux.no/linux+v2.6.26.5/Documentation/SubmittingPatches#L282
Subject: configure error: cannot run test program while cross compiling
From: Bart De Vos <[EMAIL PROTECTED]>
When cross compiling the configure script fails with code:
error: cannot run test program while cross compiling
This patch makes configure to continue, the error-message is still
generated and logged.
Signed-off-by: Bart De Vos <[EMAIL PROTECTED]>
--- gsl-1.11/configure 2008-09-11 13:05:27.000000000 +0200
+++ gsl-1.11-ptx/configure 2008-09-11 13:05:39.000000000 +0200
@@ -12578,7 +12578,8 @@
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
+# { (exit 1); exit 1; };
+ }
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
Robert
kind regards,
Bart.
--
--------------------------------------------------
Bart De Vos
Development Engineer
mailto:[EMAIL PROTECTED]
EIA Electronics
Vluchtenburgstraat 3
B-2630 Aartselaar (Belgium)
phone : +32(0)3 870 85 29
fax : +32(0)3 877 14 72
website : http://www.eia.be/
--------------------------------------------------
Basically, perfect development is impossible.
Development can be fast, good and cheap. Pick two!
— Larry Wall
--------------------------------------------------
--
ptxdist mailing list
ptxdist@pengutronix.de