71 lines
1.8 KiB
Bash
71 lines
1.8 KiB
Bash
# Template file for 'openocd'
|
|
pkgname=openocd
|
|
version=0.12.0+1
|
|
revision=1
|
|
# update to a commit that has a compatible jimtcl version
|
|
_commit=dccf323c1f78d015f75db4cef8cdc33523e1abd6
|
|
_jimtcl_version=0.82
|
|
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
|
|
--disable-internal-libjaylink"
|
|
hostmakedepends="automake pkg-config libtool which"
|
|
makedepends="hidapi-devel libftdi1-devel
|
|
jimtcl-devel
|
|
libusb-devel libjaylink-devel capstone-devel"
|
|
depends="jimtcl-devel>=${_jimtcl_version}_1<=${_jimtcl_version}_9999"
|
|
short_desc="Open On-Chip Debugger"
|
|
maintainer="Érico Nogueira <ericonr@disroot.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://openocd.org/"
|
|
# note: switch back to sourceforge for the next tagged release
|
|
distfiles="https://github.com/openocd-org/openocd/archive/${_commit}.tar.gz"
|
|
checksum=52faaa5dd38d96e223d423d3426a39efa78c0f10d8f267a506528eb39a90a619
|
|
|
|
CFLAGS="-fcommon"
|
|
|
|
case "$XBPS_MACHINE" in
|
|
*-musl) configure_args+=" ac_cv_header_malloc_h=no" # no mallinfo
|
|
esac
|
|
|
|
# should not be needed when using tagged releases
|
|
pre_configure() {
|
|
sed -i "s/snapshot/${_commit::8}/" guess-rev.sh
|
|
./bootstrap nosubmodule
|
|
}
|
|
|
|
post_install() {
|
|
vinstall contrib/60-openocd.rules 644 usr/lib/udev/rules.d/
|
|
}
|