diff options
author | Josef Holzmayr <holzmayr@rsi-elektrotechnik.de> | 2011-07-27 14:39:47 +0200 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2011-07-29 11:18:37 +0200 |
commit | a8f85be09c663bfad8a34a162b1a63fb3d499985 (patch) | |
tree | 648b636817e05464616983838519b780bf5aa669 | |
parent | bfea272382f6e779493580121db0f9b3f0eb5a98 (diff) | |
download | ptxdist-a8f85be09c663bfad8a34a162b1a63fb3d499985.tar.gz ptxdist-a8f85be09c663bfad8a34a162b1a63fb3d499985.tar.xz |
libmodbus3: add new package
Signed-off-by: Josef Holzmayr <holzmayr@rsi-elektrotechnik.de>
[remove unused stages, fixup copyright, --without-documentation]
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
-rw-r--r-- | rules/libmodbus3.in | 10 | ||||
-rw-r--r-- | rules/libmodbus3.make | 57 |
2 files changed, 67 insertions, 0 deletions
diff --git a/rules/libmodbus3.in b/rules/libmodbus3.in new file mode 100644 index 000000000..3a950d7d1 --- /dev/null +++ b/rules/libmodbus3.in @@ -0,0 +1,10 @@ +## SECTION=scientific +config LIBMODBUS3 + tristate + prompt "libmodbus3" + help + libmodbus is a library that implements the Modbus protocol + (TCP and serial) (Version 3.0.x). + + WWW: http://http://libmodbus.org/ + diff --git a/rules/libmodbus3.make b/rules/libmodbus3.make new file mode 100644 index 000000000..29c59b7e5 --- /dev/null +++ b/rules/libmodbus3.make @@ -0,0 +1,57 @@ +# -*-makefile-*- +# +# Copyright (C) 2005 by Josef Holzmayr <holzmayr@rsi-elektrotechnik.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_LIBMODBUS3) += libmodbus3 + +# +# Paths and names +# +LIBMODBUS3_VERSION := 3.0.1 +LIBMODBUS3_MD5 := 7ad8afbd02a7a2afd70c5bb7271a593b +LIBMODBUS3 := libmodbus-$(LIBMODBUS3_VERSION) +LIBMODBUS3_SUFFIX := tar.gz +LIBMODBUS3_URL := http://github.com/downloads/stephane/libmodbus/$(LIBMODBUS3).$(LIBMODBUS3_SUFFIX) +LIBMODBUS3_SOURCE := $(SRCDIR)/$(LIBMODBUS3).$(LIBMODBUS3_SUFFIX) +LIBMODBUS3_DIR := $(BUILDDIR)/$(LIBMODBUS3) +LIBMODBUS3_LICENSE := LGPLv3 + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +LIBMODBUS3_CONF_TOOL := autoconf +LIBMODBUS3_CONF_OPT += \ + $(CROSS_AUTOCONF_USR) \ + --enable-silent-rules \ + --without-documentation + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/libmodbus3.targetinstall: + @$(call targetinfo) + + @$(call install_init, libmodbus3) + @$(call install_fixup, libmodbus3,PRIORITY,optional) + @$(call install_fixup, libmodbus3,SECTION,base) + @$(call install_fixup, libmodbus3,AUTHOR,"Josef Holzmayr <holzmayr@rsi-elektrotechnik.de>") + @$(call install_fixup, libmodbus3,DESCRIPTION,missing) + + @$(call install_lib, libmodbus3, 0, 0, 0644, libmodbus) + + @$(call install_finish, libmodbus3) + + @$(call touch) + +# vim: syntax=make |