Source: pacman4console
Version: 1.3-1
Tags: patch upstream
User: helm...@debian.org
Usertags: rebootstrap

pacman4console fails to cross build from source, because the upstream
Makefile hard codes the build architecture compiler gcc. After making it
substitutable, it still fails, because it insists on rebuilding the
binaries during make install, but dh_auto_install does not pass cross
tools along. The attached patch thus also fixes the dependencies to make
pacman4console cross buildable. Please consider applying it.

Helmut
--- pacman4console-1.3.orig/Makefile
+++ pacman4console-1.3/Makefile
@@ -2,9 +2,11 @@
 BINDIR=$(PREFIX)/bin
 DATAROOTDIR=$(PREFIX)/share
 
-all:
-	gcc pacman.c     -o pacman     -DDATAROOTDIR=\"$(DATAROOTDIR)\" $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -lncurses
-	gcc pacmanedit.c -o pacmanedit -DDATAROOTDIR=\"$(DATAROOTDIR)\" $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -lncurses
+all:pacman pacmanedit
+pacman:pacman.c
+	$(CC) $< -o $@ -DDATAROOTDIR=\"$(DATAROOTDIR)\" $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -lncurses
+pacmanedit:pacmanedit.c
+	$(CC) $< -o $@ -DDATAROOTDIR=\"$(DATAROOTDIR)\" $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -lncurses
 
 install:    all
 	install -D pacman $(DESTDIR)/usr/games/pacman4console

Reply via email to