[BACK]Return to patch-Makefile.in CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / games / xgalaga / patches

File: [cvs.NetBSD.org] / pkgsrc / games / xgalaga / patches / patch-Makefile.in (download)

Revision 1.1, Fri Nov 20 13:50:23 2020 UTC (3 years, 4 months ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, HEAD

xgalaga: Update to 2.1.1.0

Version 2.1.01.0 (HR 2008/03/05)
- Updated configure.in and Makefile.in for building an new configure
  script and Makefile with BSD support (autoconf -o configure configure.in).
  The goal is to build on supported platforms 'out of the box'. If there
  is anything to do, please let me know at
   tshe_hermann remove_this at web dot de
- Added scrolling credits in the title screen. Therefore increased
  the third paragraph of the version number.

Version 2.1.00.2 (HR 2008/02/11)
- Changed numbering scheme to a dotted style to become better compatibility
  with distro's numbering scheme.
- Fixed broken sound. xgal.sndsrv.linux opens /dev/dsp now with O_WRONLY.
  This makes simultaneously playing oggs working.
- Added man page (content and build handling). Added <s> and <Q> key.

Version 2.1.00-1 (HR 2008/02/07)
- added ifdefs in score.c for compiling with no sound support
- added file mkinstalldirs. Needed by make install

Version 2.1.00-0 (HR 2008/02/06)
- This release is mainly a bugfix relase. Some of them are years old.
  See hints below.
- added the xgalaga_2.0.34-44.diff from debian. Thanks to Joey Hess for
  collecting all these stuff over the years.
  Main changes are: compiling xgalaga-hyperspace, full screen mode, security
  fixes for HOME-Variable and global score file, joystick support,
  improvements of sound server, new weapons machine gun and spread shot, ....
- Bugs as reported at sourceforge Request ID 1394882 "make error on fc4 64-bit"
  and 1167157 "make error on FC3" are supposed to be fixed. Changed the order
  of header files in several .c files. I have no 64 bit system to test this,
  but I got the same error on ubuntu 7.10
- Debian bug report #149743: "xgalaga starts when i want to turn sounds off" is
  fixed. In fact, it started on any key except <q> or <Q>. Now starts only on
  the keys <k> and <m> as stated in the last line on the title screen.
  Turning sound off works during the game and at the title screen. For clarity
  there is now a 'Q' (=quiet) right from the level, which appears, when sound
  is switched off.
- Debian bug report #60266: "Too slow when sounds are not available" is
  probably fixed. I could not exactly reproduce the bug. On my box, xgalaga
  crashes totally. Maybe it depends on the sound system. I added the evaluation
  of the returncode on writing to /dev/dsp. The crash was gone away.
- Debian bug report #399987 "xgalaga -level accepts ""impossible to loose""
  levels" is partially fixed. The -level parameter value is cut to 15. Higher
  levels are still avalable by playing (good luck).
- Added a couple of additional key codes. The <p> (pause) and <s> (toggle
  sound) did not work, because they produce key codes increased with 256.
  Editing the high score name also didn't work on the same reason.
- Added bugfix for "[1837041] Fix seg fault" as reported on sourceforge
- Changed order of libs in configure.in. This (and some other improvements)
  makes xgalaga compile under Cygwin/X

$NetBSD: patch-Makefile.in,v 1.1 2020/11/20 13:50:23 nia Exp $

Correct installation paths.

--- Makefile.in.orig	2008-03-05 21:58:16.000000000 +0000
+++ Makefile.in
@@ -11,12 +11,13 @@ VPATH = @srcdir@
 .SUFFIXES: .c .o
 
 prefix = @prefix@
+datadir = @datadir@/xgalaga
+docdir = @docdir@/xgalaga
 exec_prefix = @exec_prefix@
 bindir = $(exec_prefix)
 libdir = $(prefix)/lib
 infodir = $(prefix)/info
-#mandir = @mandir@
-mandir = /usr/share/man
+mandir = @mandir@
 creditsfile = @CREDITSFILE@
 distversion = 2.1.1.0
 
@@ -27,11 +28,11 @@ SOUNDSRVDIR = @SOUNDSRVDIR@
 SOUNDOBJS = xgal.sndsrv.linux.o
 SOUNDSRCS = xgal.sndsrv.linux.c
 
-SOUNDDEFS = -DSOUNDSERVER=\"$(prefix)$(SOUNDSRVDIR)/@SOUNDSERVER@\"
+SOUNDDEFS = -DSOUNDSERVER=\"$(prefix)$(SOUNDSRVDIR)/xgal.sndsrv\"
 
 RM = rm -f
 CC = @CC@
-CFLAGS = -I. @CFLAGS@ @DEFS@ @X_CFLAGS@ -DXGALAGADIR=\"@prefix@/\" $(SOUNDDEFS)
+CFLAGS = -I. @CFLAGS@ @DEFS@ @X_CFLAGS@ -DXGALAGADIR=\"@datadir@/xgalaga/levels\" $(SOUNDDEFS)
 LDFLAGS = @LDFLAGS@
 LIBS = libsprite/libsprite.a @LIBS@ @X_LIBS@
 INSTALL = @INSTALL@
@@ -58,15 +59,16 @@ install: all
 	$(INSTALL) $(TARGET) $(DESTDIR)$(bindir)/$(TARGET)
 	$(INSTALL) $(TARGET2) $(DESTDIR)$(bindir)/$(TARGET2)
 	if test ! "$(SOUNDSRV)" = ""; then \
-		$(INSTALL) $(SOUNDSRV) $(DESTDIR)$(prefix)$(SOUNDSRVDIR)/$(SOUNDSRV); \
+		$(INSTALL) $(SOUNDSRV) $(DESTDIR)$(prefix)$(SOUNDSRVDIR)/xgal.sndsrv; \
 	fi
-	./mkinstalldirs $(DESTDIR)$(prefix)/sounds
-	./mkinstalldirs $(DESTDIR)$(prefix)/levels
-	for i in levels/*.xgl; do $(INSTALL) $$i $(DESTDIR)$(prefix)/$$i ; done
-	for i in sounds/*.raw; do $(INSTALL) $$i $(DESTDIR)$(prefix)/$$i ; done
-	$(INSTALL) CREDITS $(DESTDIR)$(creditsfile)
-	$(INSTALL) xgalaga.6x.gz $(mandir)/man6/xgalaga.6x.gz
-	chmod 644 $(mandir)/man6/xgalaga.6x.gz
+	./mkinstalldirs $(DESTDIR)$(datadir)/sounds
+	./mkinstalldirs $(DESTDIR)$(datadir)/levels
+	for i in levels/*.xgl; do $(INSTALL) $$i $(DESTDIR)$(datadir)/$$i ; done
+	for i in sounds/*.raw; do $(INSTALL) $$i $(DESTDIR)$(datadir)/$$i ; done
+	./mkinstalldirs $(DESTDIR)$(docdir)
+	$(INSTALL) CREDITS $(DESTDIR)$(docdir)/CREDITS
+	$(INSTALL) xgalaga.6x $(DESTDIR)$(mandir)/man6/xgalaga.6x
+	chmod 644 $(DESTDIR)$(mandir)/man6/xgalaga.6x
 #	touch $(prefix)/scores
 #	chmod 666 $(prefix)/scores
 #       chown ${GAMEOWN}:${GAMEGRP} $(prefix)/scores