libftdi: (tomj) prepare libftdi 0.5 release
authorThomas Jarosch <opensource@intra2net.com>
Fri, 24 Sep 2004 17:05:35 +0000 (17:05 +0000)
committerThomas Jarosch <opensource@intra2net.com>
Fri, 24 Sep 2004 17:05:35 +0000 (17:05 +0000)
ChangeLog [new file with mode: 0644]
Makefile.am
README [new file with mode: 0644]
configure.in
libftdi-config.in [new file with mode: 0644]
libftdi.spec

diff --git a/ChangeLog b/ChangeLog
new file mode 100644 (file)
index 0000000..9a2f6e7
--- /dev/null
+++ b/ChangeLog
@@ -0,0 +1,41 @@
+New in 0.5
+----------
+* New autoconf suite
+* pkgconfig support
+* Status byte filtering now works for "big" readbuffer sizes (Thanks Evgeny!)
+* Open device by description and/or serial (Evgeny Sinelnikov)
+* Improved error handling (Evgeny Sinelnikov)
+
+New in 0.4
+----------
+* Fixed filtering of status bytes (Readbuffer size is now 64 bytes)
+* FT2232C support (Steven Turner/FTDI)
+* New baudrate calculation code (Ian Abbott)
+* Automatic detection of chip type
+* Important: ftdi_write_data now returns the bytes written
+* Fixed defaults values in ftdi_eeprom_initdefaults (Jean-Daniel Merkli)
+* Reset internal readbuffer offsets for reset()/purge_buffers()
+* Small typo fixes (Mark Hämmerling)
+
+New in 0.3
+----------
+
+* Improved read function which takes arbitrary input buffer sizes
+  Attention: Call ftdi_deinit() on exit to free used memory
+* Vastly increased read/write performance (configurable chunksize, default is 4096)
+* Set/get latency timer function working (Thanks Steven Turner/FTDI)
+* Increased library version because the changes require recompilation
+
+
+New in 0.2
+----------
+
+* EEPROM build fix by Daniel Kirkham (Melbourne, Australia)
+* Implemented basic ftdi_read_data() function
+* EEPROM write fixes
+
+
+New in 0.1
+------------
+
+* First public release
index 88c4f86..6a272dc 100644 (file)
@@ -4,7 +4,9 @@ AUTOMAKE_OPTIONS = foreign 1.4
 
 SUBDIRS = src
 
-EXTRA_DIST = libftdi.spec COPYING.LIB
+EXTRA_DIST = libftdi.spec COPYING.LIB README ChangeLog libftdi-config.in
+
+bin_SCRIPTS = libftdi-config
 
 # Install the pkg-config file:
 pkgconfigdir = $(libdir)/pkgconfig
diff --git a/README b/README
new file mode 100644 (file)
index 0000000..3c31253
--- /dev/null
+++ b/README
@@ -0,0 +1,4 @@
+libftdi - A library (using libusb) to talk to FTDI's FT2232C,
+FT232BM and FT245BM type chips including the popular bitbang mode.
+
+See the Changelog for news
index efc2824..99cec8b 100644 (file)
@@ -1,7 +1,7 @@
 AC_INIT(configure.in)
 
 AM_CONFIG_HEADER(config.h)
-AM_INIT_AUTOMAKE(libftdi, 0.4)
+AM_INIT_AUTOMAKE(libftdi, 0.5)
 
 AC_LANG_C
 AC_PROG_CC
@@ -32,4 +32,5 @@ else
    AC_MSG_RESULT(yes)
 fi
 
+AC_OUTPUT([libftdi-config],[chmod a+x libftdi-config])
 AC_OUTPUT(Makefile src/Makefile libftdi.pc)
diff --git a/libftdi-config.in b/libftdi-config.in
new file mode 100644 (file)
index 0000000..a71de4e
--- /dev/null
@@ -0,0 +1,79 @@
+#!/bin/sh
+
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+exec_prefix_set=no
+
+usage()
+{
+       cat <<EOF
+Usage: libftdi-config [OPTIONS] [LIBRARIES]
+Options:
+       [--prefix[=DIR]]
+       [--exec-prefix[=DIR]]
+       [--version]
+       [--libs]
+       [--cflags]
+EOF
+       exit $1
+}
+
+if test $# -eq 0; then
+       usage 1 1>&2
+fi
+
+while test $# -gt 0; do
+  case "$1" in
+  -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
+  *) optarg= ;;
+  esac
+
+  case $1 in
+    --prefix=*)
+      prefix=$optarg
+      if test $exec_prefix_set = no ; then
+        exec_prefix=$optarg
+      fi
+      ;;
+    --prefix)
+      echo_prefix=yes
+      ;;
+    --exec-prefix=*)
+      exec_prefix=$optarg
+      exec_prefix_set=yes
+      ;;
+    --exec-prefix)
+      echo_exec_prefix=yes
+      ;;
+    --version)
+      echo @VERSION@
+      exit 0
+      ;;
+    --cflags)
+      if test "@includedir@" != /usr/include ; then
+        includes="-I@includedir@"
+      fi
+      echo_cflags=yes
+      ;;
+    --libs)
+      echo_libs=yes
+      ;;
+    *)
+      usage 1 1>&2
+      ;;
+  esac
+  shift
+done
+
+if test "$echo_prefix" = "yes"; then
+       echo $prefix
+fi
+if test "$echo_exec_prefix" = "yes"; then
+       echo $exec_prefix
+fi
+if test "$echo_cflags" = "yes"; then
+       echo $includes
+fi
+if test "$echo_libs" = "yes"; then
+       echo -L@libdir@ -lftdi @LIBS@
+fi
index 6b4d38e..2ee82a4 100644 (file)
@@ -1,6 +1,6 @@
 Summary:   Library to program and control the FTDI USB controller
 Name:      libftdi
-Version:   0.4
+Version:   0.5
 Release:   1
 Copyright: LGPL
 Group:     System Environment/Libraries
@@ -42,6 +42,7 @@ rm -fr $RPM_BUILD_ROOT
 
 %files devel
 %defattr(-,root,root)
+%{prefix}/bin/libftdi-config
 %{prefix}/lib/libftdi.*a
 %{prefix}/include/*.h
 %{prefix}/lib/pkgconfig/*.pc