Bug#933080: pekka-kana-2 FTCBFS: uses build architecture build tools

2019-12-16 Thread Carlos Donizete Froes
Hi,

New version pekka-kana-2/1.2.5-1 has been released where a standard set of
building flags has been added.[1]

[1] https://salsa.debian.org/games-team/pekka-kana-2

Thanks!

-- 
⢀⣴⠾⠻⢶⣦⠀ Carlos Donizete Froes [a.k.a coringao]
⣾⠁⢠⠒⠀⣿⡁ Debian Wiki: https://wiki.debian.org/coringao
⢿⡄⠘⠷⠚⠋⠀ GPG: 4096R/B638B780
⠈⠳⣄⠀⠀⠀  2157 630B D441 A775 BEFF  D35F FA63 ADA6 B638 B780


signature.asc
Description: This is a digitally signed message part


Bug#933080: pekka-kana-2 FTCBFS: uses build architecture build tools

2019-08-08 Thread Carlos Donizete Froes
Hi,

Pekka-kana-2 was released in version 1.2.3 where bugs were fixed:

  * Renamed non-default CPP variable to CXX
  * Encountered a misspelling on manpage
  * Fix saves and settings path
  * Try to fix negative times on records

Thanks!

-- 
⢀⣴⠾⠻⢶⣦⠀ Carlos Donizete Froes [a.k.a coringao]
⣾⠁⢠⠒⠀⣿⡁ Debian Wiki: https://wiki.debian.org/coringao
⢿⡄⠘⠷⠚⠋⠀ GPG: 4096R/B638B780
⠈⠳⣄⠀⠀⠀  2157 630B D441 A775 BEFF  D35F FA63 ADA6 B638 B780


signature.asc
Description: This is a digitally signed message part


Bug#933080: pekka-kana-2 FTCBFS: uses build architecture build tools

2019-07-26 Thread Helmut Grohne
Source: pekka-kana-2
Version: 1.2.2-2
Tags: patch upstream
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

pekka-kana-2 fails to cross build from source. The upstream Makefile
hard codes the build architecture pkg-config and it uses the
non-standard variable CPP for storing the C++ compiler while CXX would
be more common and supplied by debhelper. The attached patch makes
pkg-config substitutable and renames CPP to CXX. Please consider
applying it.

Helmut
--- pekka-kana-2-1.2.2.orig/Makefile
+++ pekka-kana-2-1.2.2/Makefile
@@ -7,9 +7,10 @@
 # "make" - Creates Pekka Kana 2 binary
 # "make clean" - Removes all objects, executables and dependencies
 
-CPP = g++
-CFLAGS += $(shell pkg-config --cflags sdl2) -g -O2 -std=gnu++17 -Wno-write-strings
-LFLAGS += $(shell pkg-config --libs sdl2) -lSDL2_mixer
+CXX = g++
+PKG_CONFIG ?= pkg-config
+CFLAGS += $(shell $(PKG_CONFIG) --cflags sdl2) -g -O2 -std=gnu++17 -Wno-write-strings
+LFLAGS += $(shell $(PKG_CONFIG) --libs sdl2) -lSDL2_mixer
 
 # Defines directories
 SRC_DIR = src/
@@ -44,15 +45,15 @@
 # Rules for generate the binaries using the object files
 $(PK2_BIN): $(PK2_OBJ) $(PK2_SPRITE_OBJ) $(PK2_MAP_OBJ) $(ENGINE_OBJ)
 	@echo -Linking Pekka Kana 2
-	@$(CPP) $^ $(LFLAGS) -o $@
+	@$(CXX) $^ $(LFLAGS) -o $@
 
 # Rules for generate any *.o file
 -include $(DEPENDENCIES)
 
 build/%.o : src/%.cpp
 	@echo -Some dependence of $@ was changed, updating
-	@$(CPP) $(CFLAGS) -I$(SRC_DIR) -o $@ -c $<
-	@$(CPP) -MM -MT $@ -I$(SRC_DIR) $< > build/$*.d
+	@$(CXX) $(CFLAGS) -I$(SRC_DIR) -o $@ -c $<
+	@$(CXX) -MM -MT $@ -I$(SRC_DIR) $< > build/$*.d
 
 makedirs:
 	@mkdir -p $(BIN_DIR) >/dev/null