47 lines
1.4 KiB
Bash
47 lines
1.4 KiB
Bash
# Template file for 'cross-${_triplet}-${_pkgname}'
|
|
_triplet=arm-none-eabi
|
|
_pkgname=gdb
|
|
pkgname=cross-${_triplet}-${_pkgname}
|
|
version=8.3
|
|
revision=1
|
|
wrksrc="${_pkgname}-${version}"
|
|
build_style=gnu-configure
|
|
pycompile_dirs="/usr/share/${_pkgname}"
|
|
configure_args="
|
|
--disable-gdbserver
|
|
--disable-nls
|
|
--disable-werror
|
|
--host=${XBPS_CROSS_TRIPLE}
|
|
--prefix=/usr
|
|
--target=${_triplet}
|
|
--with-babeltrace
|
|
--with-expat
|
|
--with-mpfr
|
|
--with-system-readline
|
|
--with-system-zlib
|
|
--without-isl
|
|
$(vopt_with guile)
|
|
$(vopt_with python)
|
|
"
|
|
hostmakedepends="autoconf automake bison flex pkg-config texinfo"
|
|
makedepends="babeltrace-devel expat-devel mpfr-devel ncurses-devel readline-devel zlib-devel $(vopt_if guile guile-devel) $(vopt_if python 'python3-devel gettext-libs')"
|
|
short_desc="GNU Debugger"
|
|
maintainer="Ivan Sokolov <ivan-p-sokolov@ya.ru>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://www.gnu.org/software/${_pkgname}"
|
|
distfiles="${GNU_SITE}/${_pkgname}/${_pkgname}-${version}.tar.xz"
|
|
checksum=802f7ee309dcc547d65a68d61ebd6526762d26c3051f52caebe2189ac1ffd72e
|
|
python_version=2 #unverified
|
|
build_options="guile python"
|
|
# don't enable guile and python interfaces until they are moved into
|
|
# platform independent packages
|
|
build_options_default=" "
|
|
nocross=yes
|
|
|
|
CFLAGS="-fcommon"
|
|
|
|
post_install() {
|
|
# resolve conflicts with binutils and native gdb
|
|
rm -fr ${DESTDIR}/usr/{share/{locale,gdb,info},include}
|
|
}
|