diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2013-07-12 23:01:45 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2013-07-12 23:01:45 +0800 |
commit | 816503d0c5051e291b1c9d153597bec2c0d90e3e (patch) | |
tree | 713942325bda393305edb21d46cd7f38d213aebc /games/biniax2 | |
parent | 422d267e1126322ee1278071a404f04be2383f95 (diff) | |
download | freebsd-ports-gnome-816503d0c5051e291b1c9d153597bec2c0d90e3e.tar.gz freebsd-ports-gnome-816503d0c5051e291b1c9d153597bec2c0d90e3e.tar.zst freebsd-ports-gnome-816503d0c5051e291b1c9d153597bec2c0d90e3e.zip |
- Trim Makefile headers
- Drop ABI versions from LIB_DEPENDS
- OptionsNG
- Pet portlint
- Switch to dynamic plist where useful
- Canonicalize patch names
- Fix DOS line endings in patch files
Diffstat (limited to 'games/biniax2')
-rw-r--r-- | games/biniax2/Makefile | 1 | ||||
-rw-r--r-- | games/biniax2/files/patch-biniax.c | 42 |
2 files changed, 22 insertions, 21 deletions
diff --git a/games/biniax2/Makefile b/games/biniax2/Makefile index 1236c6f40bfd..56b17bff27da 100644 --- a/games/biniax2/Makefile +++ b/games/biniax2/Makefile @@ -13,6 +13,7 @@ MAINTAINER= amdmi3@FreeBSD.org COMMENT= Original logic game with arcade and tactics modes USE_SDL= sdl mixer image +USE_DOS2UNIX= yes NO_WRKSUBDIR= yes post-patch: diff --git a/games/biniax2/files/patch-biniax.c b/games/biniax2/files/patch-biniax.c index 3462c0f40e45..7a485f42c0ea 100644 --- a/games/biniax2/files/patch-biniax.c +++ b/games/biniax2/files/patch-biniax.c @@ -1,26 +1,26 @@ --- biniax.c.orig 2009-05-05 16:49:06.000000000 +0200 +++ biniax.c 2010-01-27 23:57:35.000000000 +0100 @@ -47,6 +47,7 @@ - INCLUDES
- ******************************************************************************/
-
+ INCLUDES + ******************************************************************************/ + +#include <errno.h> - #include "game.h"
- #include "lev.h"
- #include "inc.h"
+ #include "game.h" + #include "lev.h" + #include "inc.h" @@ -89,6 +90,15 @@ -
- int main( int argc, char *argv[] )
- {
-+ if (chdir(getenv("HOME")) != 0)
-+ err(1, "cannot chdir to $HOME");
-+
-+ if (mkdir(".biniax2", 0755) != 0 && errno != EEXIST)
-+ err(1, "cannot mkdir $HOME/.biniax2");
-+
-+ if (chdir(".biniax2") != 0)
-+ err(1, "cannot chdir to $HOME/.biniax2");
-+
- BNX_BOOL bquit = BNX_FALSE;
- BNX_INT16 enterState = cStateMainMenu;
- BNX_INT16 nmenu = 0;
+ + int main( int argc, char *argv[] ) + { ++ if (chdir(getenv("HOME")) != 0) ++ err(1, "cannot chdir to $HOME"); ++ ++ if (mkdir(".biniax2", 0755) != 0 && errno != EEXIST) ++ err(1, "cannot mkdir $HOME/.biniax2"); ++ ++ if (chdir(".biniax2") != 0) ++ err(1, "cannot chdir to $HOME/.biniax2"); ++ + BNX_BOOL bquit = BNX_FALSE; + BNX_INT16 enterState = cStateMainMenu; + BNX_INT16 nmenu = 0; |