On Sun, Jun 12, 2011 at 08:18:42AM +0200, Bernhard Walle wrote:
> Signed-off-by: Bernhard Walle <bernh...@bwalle.de>
> ---

Hmmm, installing fails. The It's a handwritten Makefile.in without DESTDIR
support. See e.g. patches/libcgi-1.0/0003-makefile-destdir.diff for an
example on how to fix this.

Michael

>  rules/serdisplib.in   |   17 +++++++++++++
>  rules/serdisplib.make |   64 
> +++++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 81 insertions(+), 0 deletions(-)
>  create mode 100644 rules/serdisplib.in
>  create mode 100644 rules/serdisplib.make
> 
> diff --git a/rules/serdisplib.in b/rules/serdisplib.in
> new file mode 100644
> index 0000000..4a2ea4e
> --- /dev/null
> +++ b/rules/serdisplib.in
> @@ -0,0 +1,17 @@
> +## SECTION=system_libraries
> +
> +config SERDISPLIB
> +     tristate
> +     prompt "serdisplib"
> +     select LIBUSB_COMPAT
> +     help
> +       Library to drive serial displays with built-in controllers.
> +
> +config SERDISPLIB_TESTSERDISP
> +     bool
> +     prompt "Install testserdisp on target"
> +     depends on SERDISPLIB
> +     help
> +       If selected, the testserdisp test program will be installed on
> +          the target.
> +
> diff --git a/rules/serdisplib.make b/rules/serdisplib.make
> new file mode 100644
> index 0000000..5a9971c
> --- /dev/null
> +++ b/rules/serdisplib.make
> @@ -0,0 +1,64 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2011 by Bernhard Walle <bernh...@bwalle.de>
> +#
> +# 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_SERDISPLIB) += serdisplib
> +
> +#
> +# Paths and names
> +#
> +SERDISPLIB_VERSION   := 1.97.9
> +SERDISPLIB_MD5               := 130552ec60d01e974712a60274f34de7
> +SERDISPLIB           := serdisplib-$(SERDISPLIB_VERSION)
> +SERDISPLIB_SUFFIX    := tar.gz
> +SERDISPLIB_URL               := 
> $(PTXCONF_SETUP_SFMIRROR)/project/serdisplib/serdisplib/$(SERDISPLIB_VERSION)/$(SERDISPLIB).$(SERDISPLIB_SUFFIX)
> +SERDISPLIB_SOURCE    := $(SRCDIR)/$(SERDISPLIB).$(SERDISPLIB_SUFFIX)
> +SERDISPLIB_DIR               := $(BUILDDIR)/$(SERDISPLIB)
> +SERDISPLIB_LICENSE   := GPL
> +
> +
> +# 
> ----------------------------------------------------------------------------
> +# Prepare
> +# 
> ----------------------------------------------------------------------------
> +
> +#
> +# autoconf
> +#
> +SERDISPLIB_CONF_TOOL := autoconf
> +SERDISPLIB_CONF_OPT  := \
> +     $(CROSS_AUTOCONF_USR) \
> +     --enable-libusb
> +
> +# 
> ----------------------------------------------------------------------------
> +# Target-Install
> +# 
> ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/serdisplib.targetinstall:
> +     @$(call targetinfo)
> +
> +     @$(call install_init, serdisplib)
> +     @$(call install_fixup, serdisplib,PRIORITY,optional)
> +     @$(call install_fixup, serdisplib,SECTION,base)
> +     @$(call install_fixup, serdisplib,AUTHOR,"Bernhard Walle 
> <bernh...@bwalle.de>")
> +     @$(call install_fixup, serdisplib,DESCRIPTION,missing)
> +
> +     @$(call install_lib, serdisplib, 0, 0, 0644, libserdisp)
> +
> +ifdef PTXCONF_SERDISPLIB_TESTSERDISP
> +     @$(call install_copy, serdisplib, 0, 0, 0755, -, /usr/bin/testserdisp)
> +endif
> +
> +     @$(call install_finish, serdisplib)
> +
> +     @$(call touch)
> +
> +# vim: syntax=make
> -- 
> 1.7.5.4
> 
> 
> -- 
> ptxdist mailing list
> ptxdist@pengutronix.de
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to