Source: mathtex Version: 1.03-3 User: debian-cr...@lists.debian.org Usertags: ftcbfs Tags: patch upstream
mathtex fails to cross build from source, because it builds for the build architecture as it builds during make install where dh_auto_install does not pass cross tools. I've reworked the Makefile to build during the build target and am attaching a patch for your convenience. Helmut
--- mathtex-1.03.orig/Makefile +++ mathtex-1.03/Makefile @@ -1,10 +1,16 @@ TARGET=$(DESTDIR)/usr/bin/mathtex -all: +all:mathtex -install: +mathtex:mathtex.c + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -DLATEX=\"/usr/bin/latex\" -DDVIPNG=\"/usr/bin/dvipng\" $< -o $@ + +install:all mkdir -p $(DESTDIR)/usr/bin - $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -DLATEX=\"/usr/bin/latex\" -DDVIPNG=\"/usr/bin/dvipng\" mathtex.c -o ${TARGET} + install -m755 mathtex $(TARGET) clean: - rm -f ${TARGET} + rm -f mathtex + +uninstall: + rm -f $(TARGET)