milis/talimatname/genel/l/libftdi/talimat

26 lines
878 B
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: FTDI yongaları ile konuşmak için bir kütüphane, isteğe bağlı python bağları.
2016-09-11 23:44:44 +02:00
# URL: http://www.intra2net.com/en/developer/libftdi/download.php
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler: libusb libconfuse boost cmake python swig
2016-09-11 23:44:44 +02:00
2017-10-28 14:10:23 +02:00
isim=libftdi
surum=1.3
devir=1
2017-03-30 14:35:53 +02:00
2017-10-28 14:10:23 +02:00
kaynak=(http://www.intra2net.com/en/developer/libftdi/download/${isim}1-$surum.tar.bz2)
2017-03-30 14:35:53 +02:00
2017-10-27 23:59:41 +02:00
derle() {
2017-10-28 14:10:23 +02:00
cd ${isim}1-$surum
2016-09-11 23:44:44 +02:00
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 -p 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" "$pkgdir/usr/lib/udev/rules.d/69-libftdi.rules"
# FS#45053
cp -r ../examples/* "$PKG/usr/share/libftdi/examples"
}