gts: fix cross

This commit is contained in:
Michal Vasilek 2022-01-29 01:13:20 +01:00 committed by paper
parent aa002a1a2d
commit 960a2310ad
2 changed files with 25 additions and 2 deletions

View file

@ -0,0 +1,19 @@
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -84,6 +84,7 @@
@AMDEP_TRUE@ ./$(DEPDIR)/stripe.Plo ./$(DEPDIR)/surface.Plo \
@AMDEP_TRUE@ ./$(DEPDIR)/triangle.Plo ./$(DEPDIR)/tribox3.Plo \
@AMDEP_TRUE@ ./$(DEPDIR)/vertex.Plo ./$(DEPDIR)/vopt.Plo
+HOST_COMPILE = $(CC_FOR_BUILD) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES)
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
@@ -673,7 +674,7 @@
$(COMPILE) -c $(srcdir)/predicates.c
predicates_init: predicates_init.c rounding.h
- $(COMPILE) $(srcdir)/predicates_init.c -o $(srcdir)/predicates_init
+ $(HOST_COMPILE) $(srcdir)/predicates_init.c -o $(srcdir)/predicates_init
predicates_init.h: predicates_init
./predicates_init > $(srcdir)/predicates_init.h

View file

@ -5,13 +5,17 @@ revision=1
build_style=gnu-configure
hostmakedepends="glib-devel pkg-config"
makedepends="libglib-devel"
short_desc="The GNU Triangulated Surface Library"
short_desc="GNU Triangulated Surface Library"
maintainer="eater <=@eater.me>"
license="LGPL-3.0-or-later"
homepage="http://gts.sourceforge.net/index.html"
distfiles="https://netcologne.dl.sourceforge.net/project/gts/gts/${version}/gts-${version}.tar.gz"
checksum=059c3e13e3e3b796d775ec9f96abdce8f2b3b5144df8514eda0cc12e13e8b81e
nocross="Tries to execute cross-compiled code"
make_check=no # 26 tests fail
pre_check() {
chmod 755 test/boolean/test.sh
}
gts-devel_package() {
depends="gts-${version}_${revision}"