[arch-commits] Commit in openocd/trunk (PKGBUILD)

Sergej Pupykin spupykin at nymeria.archlinux.org
Mon Nov 25 12:15:52 UTC 2013


    Date: Monday, November 25, 2013 @ 13:15:52
  Author: spupykin
Revision: 101425

upgpkg: openocd 0.7.0-3

upd

Modified:
  openocd/trunk/PKGBUILD

----------+
 PKGBUILD |   13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-11-25 11:41:14 UTC (rev 101424)
+++ PKGBUILD	2013-11-25 12:15:52 UTC (rev 101425)
@@ -6,12 +6,12 @@
 
 pkgname=openocd
 pkgver=0.7.0
-pkgrel=2
+pkgrel=3
 pkgdesc='Debugging, in-system programming and boundary-scan testing for embedded target devices'
 arch=('i686' 'x86_64')
 url='http://openocd.berlios.de'
 license=('GPL')
-depends=('libftdi')
+depends=('libftdi' 'libusb-compat')
 options=(!strip)
 install=openocd.install
 source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2)
@@ -19,8 +19,17 @@
 
 _features=(amtjtagaccel arm-jtag-ew at91rm9200 buspirate ep93xx ft2232_libftdi ftdi gw16012 jlink oocd_trace opendous osbdm parport presto_libftdi remote-bitbang rlink stlink ti-icdi ulink usbprog vsllink)
 
+# FIXME: needs /dev/bus/usb and cannot be compiled in chroot
+prepare() {
+  cd $pkgname-$pkgver
+  sed -i 's|$CC -E|$CC -O2 -E|g' configure
+  sed -i 's|\${CC} -E|$CC -O2 -E|g' configure
+  sed -i 's|-lftdi -lusb|-lftdi1 -lusb-1.0|g' configure src/Makefile*
+}
+
 build() {
   cd $pkgname-$pkgver
+  export CFLAGS="-I/usr/include/libftdi1"
   ./configure --prefix=/usr ${_features[@]/#/--enable-} --disable-werror
   make
 }




More information about the arch-commits mailing list