[fenix] 05/127: modified fxi name

Peter Pentchev roam at ringlet.net
Thu Dec 17 14:39:29 UTC 2015


This is an automated email from the git hooks/post-receive script.

roam-guest pushed a commit to branch master
in repository fenix.

commit 9b51556138bc9d114944ecf25eb527a9e24e5c04
Author: Miriam Ruiz <miriam at debian.org>
Date:   Tue Jun 5 18:35:59 2007 +0000

    modified fxi name
---
 debian/control                   |  2 +-
 debian/patches/fxi_binname.patch | 22 ++++++++++++++++++++++
 debian/patches/series            |  1 +
 debian/rules                     |  2 ++
 4 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index 3eb8cbe..292f485 100644
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,7 @@ Source: fenix0.92
 Section: devel
 Priority: extra
 Maintainer: Miriam Ruiz <little_miry at yahoo.es>
-Build-Depends: dpkg-dev (>= 1.13.19), debhelper (>= 5), autotools-dev, libsdl1.2-dev, libsdl-mixer1.2-dev, zlib1g-dev, libungif4-dev, libpng12-dev, libsmpeg-dev, libmikmod2-dev, libvorbis-dev
+Build-Depends: dpkg-dev (>= 1.13.19), debhelper (>= 5), quilt, autotools-dev, libsdl1.2-dev, libsdl-mixer1.2-dev, zlib1g-dev, libungif4-dev, libpng12-dev, libsmpeg-dev, libmikmod2-dev, libvorbis-dev
 Standards-Version: 3.7.2
 
 Package: fenix0.92-runtime
diff --git a/debian/patches/fxi_binname.patch b/debian/patches/fxi_binname.patch
new file mode 100644
index 0000000..5eb6888
--- /dev/null
+++ b/debian/patches/fxi_binname.patch
@@ -0,0 +1,22 @@
+--- fenix0.92-0.92a/fxi/src/main.c.orig	2007-06-05 16:29:21.000000000 +0000
++++ fenix0.92-0.92a/fxi/src/main.c	2007-06-05 16:31:50.000000000 +0000
+@@ -158,7 +158,7 @@
+  	ptr = argv[0] + strlen(argv[0]) ;
+  	while (ptr > argv[0] && ptr[-1] != '\\' && ptr[-1] != '/')
+  		ptr-- ;
+- 	fxi = (strncmp(ptr,"fxi",3) == 0) || (strncmp(ptr,"FXI",3) == 0) ;
++ 	fxi = (strncmp(ptr,"fenix0.92-fxi",3) == 0) || (strncmp(ptr,"FXI",3) == 0) ;
+ 
+ 	/* Init RAND generator */
+ 
+@@ -220,8 +220,8 @@
+ 			/* No embedded DCB; search for a DCB with similar name */
+ 
+ 			filename = ptr ;
+-	 		while (*ptr && *ptr != '.') ptr++ ;
+-	 		*ptr = 0 ;
++	 		#while (*ptr && *ptr != '.') ptr++ ;
++	 		#*ptr = 0 ;
+ 		}
+ 	}
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..73a8fd6
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fxi_binname.patch
diff --git a/debian/rules b/debian/rules
index 9f4c54e..7bdbc5f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -20,6 +20,7 @@ endif
 
 config.status: configure
 	dh_testdir
+	$(MAKE) -f /usr/share/quilt/quilt.make patch
 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
 	cp -f /usr/share/misc/config.sub config.sub
 endif
@@ -52,6 +53,7 @@ clean:
 	rm -f build-stamp 
 	-$(MAKE) distclean
 	rm -f config.{sub,guess}
+	$(MAKE) -f /usr/share/quilt/quilt.make unpatch
 	dh_clean 
 
 install: build

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/fenix.git



More information about the Pkg-games-commits mailing list