diff --git a/hardware/misc/libftdi/actions.py b/hardware/misc/libftdi/actions.py new file mode 100644 index 0000000000..9ce12fb12e --- /dev/null +++ b/hardware/misc/libftdi/actions.py @@ -0,0 +1,41 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import cmaketools +from pisi.actionsapi import get + +def setup(): + pisitools.dosed("CMakeLists.txt", "LIB_SUFFIX 64", deleteLine="True") + + cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \ + -DPYTHON_EXECUTABLE=/usr/bin/python2.7 \ + -DPYTHON_INCLUDE_DIR=/usr/include/python2.7 \ + -DPYTHON_LIBRARY=/usr/lib/python2.7 \ + -DCMAKE_SKIP_BUILD_RPATH=ON \ + -DCMAKE_BUILD_TYPE=Release \ + -DEXAMPLES=OFF -DFTDI_EEPROM=OFF") + + +def build(): + autotools.make() + +def install(): + cmaketools.rawInstall("DESTDIR=%s" % get.installDIR()) + + #Remove python examples + pisitools.removeDir("/usr/share/libftdi") + + # Their source can be useful though + pisitools.dodoc("examples/*.c", destDir="%s/examples" % get.srcNAME()) + + # Install udev rule + pisitools.insinto("/lib/udev/rules.d", "packages/99-libftdi.rules") + + pisitools.doman("doc/man/man3/*.3") + + pisitools.dodoc("AUTHORS", "COPYING.LIB", "ChangeLog", "LICENSE", "README") diff --git a/hardware/misc/libftdi/files/fix-udev-group_and_usb_name.patch b/hardware/misc/libftdi/files/fix-udev-group_and_usb_name.patch new file mode 100644 index 0000000000..d8ebf02c89 --- /dev/null +++ b/hardware/misc/libftdi/files/fix-udev-group_and_usb_name.patch @@ -0,0 +1,8 @@ +--- 99-libftdi.rules.orig 2014-02-05 18:24:11.000000000 +0200 ++++ packages/99-libftdi.rules 2014-05-25 13:57:47.482994692 +0300 +@@ -5,4 +5,4 @@ + SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6010", MODE="0664", GROUP="plugdev" + + # FTDI Devices: FT4232HL/Q +-SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6011", MODE="0664", GROUP="plugdev" ++SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6011", MODE="0664", GROUP="pnp" diff --git a/hardware/misc/libftdi/pspec.xml b/hardware/misc/libftdi/pspec.xml new file mode 100644 index 0000000000..f2b9dbd297 --- /dev/null +++ b/hardware/misc/libftdi/pspec.xml @@ -0,0 +1,99 @@ + + + + + libftdi + http://www.intra2net.com/en/developer/libftdi/ + + PisiLinux Community + admins@pisilinux.org + + LGPLv2.1 + library + A library for accessing to FTDI USB chips + libftdi allows access to eeprom and bitbang modes of FT232/245/2232 USB serial interface chips. + http://www.intra2net.com/en/developer/libftdi/download/libftdi1-1.1.tar.bz2 + + doxygen + + + + fix-udev-group_and_usb_name.patch + + + + + libftdi + + /usr/bin + /usr/lib + /lib/udev/rules.d + /usr/share/doc + + + + + python-libftdi + + python3 + libftdi + + Python bindings for libftdi + + /usr/lib/python* + + + + + libftdi-devel + Development files for libftdi + + libftdi + + + /usr/bin/libftdi-config + /usr/include + /usr/lib/pkgconfig + /usr/share/man/man3 + /usr/share/doc/libftdi/examples + + + + + + 2014-07-05 + 1.1 + Version bump. + Serdar Soytetir + kaptan@pisilinux.org + + + 2014-03-10 + 0.20 + Rebuild + Varol Maksutoğlu + waroi@pisilinux.org + + + 2014-03-09 + 0.20 + Rebuild. + Kamil Atlı + suvarice@gmail.com + + + 2013-07-30 + 0.20 + Rebuild + PisiLinux Community + admins@pisilinux.org + + + 2012-11-16 + 0.20 + First release + PisiLinux Community + namso-01qhotmail.it + + + diff --git a/hardware/misc/libftdi/translations.xml b/hardware/misc/libftdi/translations.xml new file mode 100644 index 0000000000..36113a2b13 --- /dev/null +++ b/hardware/misc/libftdi/translations.xml @@ -0,0 +1,18 @@ + + + + libftdi + FTDI USB entegrelerine erişim kitaplığı + libftdi ile FT232/245/2232 USB seri arabirim entegrelerinin eeprom ve bitbang modlarını kullanabilirsiniz. + + + + python-libftdi + Python için libftdi bağlayıcıları + + + + libftdi-devel + libftdi için geliştirme dosyaları + +