summaryrefslogtreecommitdiff
path: root/manualPorts/libftdi
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-05-27 10:13:52 +0200
committerErich Eckner <git@eckner.net>2018-05-27 10:13:52 +0200
commit14a8f5d3c7889f2046a008b1b1dc29f485ebb359 (patch)
tree644ebb60f7155dd5c139d233857684fbcd8546e6 /manualPorts/libftdi
downloadcrux-ports-14a8f5d3c7889f2046a008b1b1dc29f485ebb359.tar.xz
initial commit
Diffstat (limited to 'manualPorts/libftdi')
-rw-r--r--manualPorts/libftdi/.footprint42
-rw-r--r--manualPorts/libftdi/.md5sum1
-rw-r--r--manualPorts/libftdi/.signature5
-rw-r--r--manualPorts/libftdi/Pkgfile25
-rwxr-xr-xmanualPorts/libftdi/lastVersion.sh8
5 files changed, 81 insertions, 0 deletions
diff --git a/manualPorts/libftdi/.footprint b/manualPorts/libftdi/.footprint
new file mode 100644
index 0000000..2c9b6a7
--- /dev/null
+++ b/manualPorts/libftdi/.footprint
@@ -0,0 +1,42 @@
+drwxr-xr-x root/root etc/
+drwxr-xr-x root/root etc/udev/
+drwxr-xr-x root/root etc/udev/rules.d/
+-rw-r--r-- root/root etc/udev/rules.d/69-libftdi.rules
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/ftdi_eeprom
+-rwxr-xr-x root/root usr/bin/libftdi1-config
+drwxr-xr-x root/root usr/include/
+drwxr-xr-x root/root usr/include/libftdi1/
+-rw-r--r-- root/root usr/include/libftdi1/ftdi.h
+-rw-r--r-- root/root usr/include/libftdi1/ftdi.hpp
+drwxr-xr-x root/root usr/lib/
+drwxr-xr-x root/root usr/lib/cmake/
+drwxr-xr-x root/root usr/lib/cmake/libftdi1/
+-rw-r--r-- root/root usr/lib/cmake/libftdi1/LibFTDI1Config.cmake
+-rw-r--r-- root/root usr/lib/cmake/libftdi1/LibFTDI1ConfigVersion.cmake
+-rw-r--r-- root/root usr/lib/cmake/libftdi1/UseLibFTDI1.cmake
+-rw-r--r-- root/root usr/lib/libftdi1.a
+lrwxrwxrwx root/root usr/lib/libftdi1.so -> libftdi1.so.2
+lrwxrwxrwx root/root usr/lib/libftdi1.so.2 -> libftdi1.so.2.4.0
+-rwxr-xr-x root/root usr/lib/libftdi1.so.2.4.0
+-rw-r--r-- root/root usr/lib/libftdipp1.a
+lrwxrwxrwx root/root usr/lib/libftdipp1.so -> libftdipp1.so.3
+-rwxr-xr-x root/root usr/lib/libftdipp1.so.2.4.0
+lrwxrwxrwx root/root usr/lib/libftdipp1.so.3 -> libftdipp1.so.2.4.0
+drwxr-xr-x root/root usr/lib/pkgconfig/
+-rw-r--r-- root/root usr/lib/pkgconfig/libftdi1.pc
+-rw-r--r-- root/root usr/lib/pkgconfig/libftdipp1.pc
+drwxr-xr-x root/root usr/lib/python2.7/
+drwxr-xr-x root/root usr/lib/python2.7/site-packages/
+-rwxr-xr-x root/root usr/lib/python2.7/site-packages/_ftdi1.so
+-rw-r--r-- root/root usr/lib/python2.7/site-packages/ftdi1.py
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/doc/
+drwxr-xr-x root/root usr/share/doc/libftdi1/
+-rw-r--r-- root/root usr/share/doc/libftdi1/example.conf
+drwxr-xr-x root/root usr/share/libftdi/
+drwxr-xr-x root/root usr/share/libftdi/examples/
+-r--r--r-- root/root usr/share/libftdi/examples/cbus.py
+-r--r--r-- root/root usr/share/libftdi/examples/complete.py
+-r--r--r-- root/root usr/share/libftdi/examples/simple.py
diff --git a/manualPorts/libftdi/.md5sum b/manualPorts/libftdi/.md5sum
new file mode 100644
index 0000000..ddbcfd7
--- /dev/null
+++ b/manualPorts/libftdi/.md5sum
@@ -0,0 +1 @@
+0c09fb2bb19a57c839fa6845c6c780a2 libftdi1-1.4.tar.bz2
diff --git a/manualPorts/libftdi/.signature b/manualPorts/libftdi/.signature
new file mode 100644
index 0000000..82931e1
--- /dev/null
+++ b/manualPorts/libftdi/.signature
@@ -0,0 +1,5 @@
+untrusted comment: verify with /etc/ports/deepthought.pub
+RWQxCptPusLGGqw21oi/+rS9sENbMS0gafbWK77nqwfF/wXTqRALIsqW36rRiJdSXwZyPohGy0T3Vg6zKYQ8Iq+MqedZjjpJ2gs=
+SHA256 (Pkgfile) = e7a8942ee80c41294dfa54e08ae85f9aeaca9e09816c505b537202bf50433844
+SHA256 (.footprint) = 51f84776cced6ad5f22dde2534e7d8dcfc2ae2c164c4816d5b1dcbfd6b486510
+SHA256 (libftdi1-1.4.tar.bz2) = ec36fb49080f834690c24008328a5ef42d3cf584ef4060f3a35aa4681cb31b74
diff --git a/manualPorts/libftdi/Pkgfile b/manualPorts/libftdi/Pkgfile
new file mode 100644
index 0000000..a2992ae
--- /dev/null
+++ b/manualPorts/libftdi/Pkgfile
@@ -0,0 +1,25 @@
+# Description: A library to talk to FTDI chips, optional python bindings.
+# URL: http://www.intra2net.com/en/developer/libftdi/download.php
+# Maintainer: Erich Eckner, crux at eckner dot net
+# Depends on: libusb libconfuse
+
+name=libftdi
+version=1.4
+release=1
+source=(http://www.intra2net.com/en/developer/libftdi/download/${name}1-${version}.tar.bz2)
+
+build() {
+ cd ${name}1-${version}
+
+ sed -i 's|LIB_SUFFIX 64|LIB_SUFFIX ""|' CMakeLists.txt
+ sed -i "s|MODE=\"0664\", GROUP=\"plugdev\"|TAG+=\"uaccess\"|g" packages/99-libftdi.rules
+
+ mkdir build
+ cd build
+ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_SKIP_BUILD_RPATH=ON \
+ -DCMAKE_BUILD_TYPE=Release -DEXAMPLES=OFF -DFTDI_EEPROM=ON
+
+ make
+ make DESTDIR=$PKG install
+ install -Dm644 "../packages/99-libftdi.rules" "$PKG/etc/udev/rules.d/69-libftdi.rules"
+}
diff --git a/manualPorts/libftdi/lastVersion.sh b/manualPorts/libftdi/lastVersion.sh
new file mode 100755
index 0000000..3c5924f
--- /dev/null
+++ b/manualPorts/libftdi/lastVersion.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+curl 'https://www.intra2net.com/en/developer/libftdi/download.php' 2> /dev/null | \
+ tr '"' '\n' | \
+ grep '^download/libftdi1-[0-9.]\+\.tar\.bz2$' | \
+ sed 's|^download/libftdi1-\([0-9.]\+\)\.tar\.bz2$|\1|' | \
+ sort -V | \
+ tail -n1