void-packages/srcpkgs/openocd/template

45 lines
1.1 KiB
Bash

# Template file for 'openocd'
pkgname=openocd
version=0.10.0
revision=4
build_style=gnu-configure
configure_args="
--disable-werror
--disable-internal-jimtcl
--enable-amtjtagaccel
--enable-at91rm9200
--enable-bcm2835gpio
--enable-buspirate
--enable-dummy
--enable-ep93xx
--enable-gw16012
--enable-jtag_vpi
--enable-openjtag_ftdi
--enable-parport
--enable-presto_libftdi
--enable-remote-bitbang
--enable-sysfsgpio
--enable-usb_blaster_libftdi"
case "$XBPS_MACHINE" in
*-musl) configure_args+=" ac_cv_header_malloc_h=no" # no mallinfo
esac
hostmakedepends="pkg-config"
makedepends="hidapi-devel jimtcl-devel libftdi1-devel
libusb-compat-devel libusb-devel"
short_desc="Open On-Chip Debugger"
maintainer="Érico Nogueira <ericonr@disroot.org>"
license="GPL-2.0-or-later"
homepage="http://openocd.org/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
checksum=7312e7d680752ac088b8b8f2b5ba3ff0d30e0a78139531847be4b75c101316ae
system_groups="plugdev"
post_extract() {
sed -i '/raggedright/d' doc/openocd.texi # makeinfo 4.xx
}
post_install() {
vinstall contrib/60-openocd.rules 644 usr/lib/udev/rules.d/
}