ref: 7b95fbbff4196c7e05249af6e92ac7ae9de0c5df
parent: 4ff554629fd0189a2d757d888ebe2669589e9352
author: Mike Swanson <mikeonthecomputer@gmail.com>
date: Tue Nov 3 02:38:04 EST 2015
automake: install binaries to ${bindir} not ${exec_prefix}/games This has been enforcing an optional part of the FHS that proves problematic on distributions that do not include /usr/games or /usr/local/games on the $PATH by default. On the packagers’ side, the Arch, Fedora, and OpenBSD packages (at least) have been patching the Makefile.in files in order to get it to install to the bin directory instead. On the users’ side, this comes as a rather nasty surprise when neither the terminal nor GUI will launch the games when they have been installed to a location not in the $PATH. If desired by packagers or end-users, the old behavior can still be effectively implemented by using `./configure --bindir=/usr/games`
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,7 +1,7 @@
SUBDIRS = doom heretic hexen strife setup
-execgamesdir = ${exec_prefix}/games
+execgamesdir = ${bindir}
execgames_PROGRAMS = @PROGRAM_PREFIX@doom \
@PROGRAM_PREFIX@heretic \
--- a/src/setup/Makefile.am
+++ b/src/setup/Makefile.am
@@ -1,6 +1,4 @@
-gamesdir = $(prefix)/games
-
AM_CFLAGS = @SDL_CFLAGS@ \
@SDLMIXER_CFLAGS@ \
-I$(top_srcdir)/textscreen -I$(top_srcdir)/src