On Thu, Jun 09, 2011 at 06:58:42AM +0200, Bernhard Walle wrote: > Signed-off-by: Bernhard Walle <bernh...@bwalle.de> > --- > rules/serdisplib.in | 17 +++++++++++ > rules/serdisplib.make | 73 > +++++++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 90 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..01c53b3 > --- /dev/null > +++ b/rules/serdisplib.make > @@ -0,0 +1,73 @@ > +# -*-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 := > http://ignum.dl.sourceforge.net/project/serdisplib/serdisplib/$(SERDISPLIB_VERSION)/$(SERDISPLIB).$(SERDISPLIB_SUFFIX)
use $(PTXCONF_SETUP_SFMIRROR) here. > +SERDISPLIB_SOURCE := $(SRCDIR)/$(SERDISPLIB).$(SERDISPLIB_SUFFIX) > +SERDISPLIB_DIR := $(BUILDDIR)/$(SERDISPLIB) > +SERDISPLIB_LICENSE := GPL > + > +# > ---------------------------------------------------------------------------- > +# Get > +# > ---------------------------------------------------------------------------- > + > +$(SERDISPLIB_SOURCE): > + @$(call targetinfo) > + @$(call get, SERDISPLIB) Remove this stage. > + > +# > ---------------------------------------------------------------------------- > +# Prepare > +# > ---------------------------------------------------------------------------- > + > +#SERDISPLIB_CONF_ENV := $(CROSS_ENV) this line too. Michael > + > +# > +# 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