void-packages/srcpkgs/openocd/template

59 lines
1.3 KiB
Bash

# Template file for 'openocd'
pkgname=openocd
version=0.11.0
revision=3
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
--enable-parport
--enable-presto
--enable-remote-bitbang
--enable-sysfsgpio
--enable-usb-blaster
--enable-usb-blaster-2
--enable-armjtagew
--enable-ftdi
--enable-jlink
--enable-oocd_trace
--enable-opendous
--enable-osbdm
--enable-rlink
--enable-stlink
--enable-ti-icdi
--enable-ulink
--enable-usbprog
--enable-vsllink
--enable-aice
--enable-cmsis-dap
--enable-cmsis-dap-v2"
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=43a3ce734aff1d3706ad87793a9f3a5371cb0e357f0ffd0a151656b06b3d1e7d
system_groups="plugdev"
CFLAGS="-fcommon"
post_install() {
vinstall contrib/60-openocd.rules 644 usr/lib/udev/rules.d/
}