sdcc: enable cross and add nonfree build option.
- Enabling cross is done by disabling building the device libraries during packaging and copying them over from the host's version of the package. - Some PIC headers and files are nonfree, so they shouldn't be included in the free version. - Add gc-devel for better memory behavior. [ci skip]
This commit is contained in:
parent
c4829bffb6
commit
42640d7ac4
1 changed files with 16 additions and 3 deletions
|
@ -1,10 +1,11 @@
|
||||||
# Template file for 'sdcc'
|
# Template file for 'sdcc'
|
||||||
pkgname=sdcc
|
pkgname=sdcc
|
||||||
version=4.0.0
|
version=4.0.0
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
|
configure_args="--enable-libgc $(vopt_enable nonfree non-free)"
|
||||||
hostmakedepends="automake flex bison gputils texinfo"
|
hostmakedepends="automake flex bison gputils texinfo"
|
||||||
makedepends="boost-devel zlib-devel"
|
makedepends="boost-devel zlib-devel gc-devel"
|
||||||
short_desc="Retargettable ANSI C compiler"
|
short_desc="Retargettable ANSI C compiler"
|
||||||
maintainer="Érico Nogueira <ericonr@disroot.org>"
|
maintainer="Érico Nogueira <ericonr@disroot.org>"
|
||||||
license="GPL-2.0-or-later"
|
license="GPL-2.0-or-later"
|
||||||
|
@ -13,8 +14,20 @@ distfiles="${SOURCEFORGE_SITE}/sdcc/${pkgname}-src-${version}.tar.bz2"
|
||||||
checksum=489180806fc20a3911ba4cf5ccaf1875b68910d7aed3f401bbd0695b0bef4e10
|
checksum=489180806fc20a3911ba4cf5ccaf1875b68910d7aed3f401bbd0695b0bef4e10
|
||||||
python_version=3
|
python_version=3
|
||||||
nostrip=yes
|
nostrip=yes
|
||||||
nocross=yes
|
|
||||||
|
build_options="nonfree"
|
||||||
|
|
||||||
if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
|
if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
|
||||||
broken="code generator internal error"
|
broken="code generator internal error"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
configure_args+=" --disable-device-lib"
|
||||||
|
hostmakedepends+=" sdcc"
|
||||||
|
fi
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
vcopy /usr/share/sdcc usr/share
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue