diff options
author | makc <makc@FreeBSD.org> | 2010-07-23 05:17:27 +0800 |
---|---|---|
committer | makc <makc@FreeBSD.org> | 2010-07-23 05:17:27 +0800 |
commit | e251df6fd5e513f2a3b99e5665d132bf14e74275 (patch) | |
tree | b117302d435987d50ae998cab6117ad6ce44670d /games | |
parent | c7321aaf2b62596ab2d1f1249c1b5555158e3fba (diff) | |
download | freebsd-ports-gnome-e251df6fd5e513f2a3b99e5665d132bf14e74275.tar.gz freebsd-ports-gnome-e251df6fd5e513f2a3b99e5665d132bf14e74275.tar.zst freebsd-ports-gnome-e251df6fd5e513f2a3b99e5665d132bf14e74275.zip |
Add new port games/searchandrescue:
This is a 3D flight simulator in which the player flies around
the map rescuing people. The game has a selection of several different
helicoptors and a jet airplane to choose from. The game includes
training missions, more complete missions and a campaign mode as
well as a free flight option for people who just want to explore.
WWW: http://searchandrescue.sourceforge.net/
PR: based on ports/148292
Submitted by: Jesse Smith <jessefrgsmith at yahoo.ca>
Diffstat (limited to 'games')
-rw-r--r-- | games/searchandrescue/Makefile | 47 | ||||
-rw-r--r-- | games/searchandrescue/distinfo | 3 | ||||
-rw-r--r-- | games/searchandrescue/files/patch-SearchAndRescue.desktop | 10 | ||||
-rw-r--r-- | games/searchandrescue/files/patch-sar__Makefile | 39 | ||||
-rw-r--r-- | games/searchandrescue/files/patch-sar__config.h | 20 | ||||
-rw-r--r-- | games/searchandrescue/pkg-descr | 7 |
6 files changed, 126 insertions, 0 deletions
diff --git a/games/searchandrescue/Makefile b/games/searchandrescue/Makefile new file mode 100644 index 000000000000..98d17abc2f64 --- /dev/null +++ b/games/searchandrescue/Makefile @@ -0,0 +1,47 @@ +# New ports collection makefile for: SearchAndRescue +# Date created: 10 June 2010 +# Whom: Jesse Smith <jessefrgsmith@yahoo.ca> +# +# $FreeBSD$ +# + +PORTNAME= SearchAndRescue +PORTVERSION= 1.0.0 +CATEGORIES= games +MASTER_SITES= SF/${PORTNAME:L}/Program/ + +MAINTAINER= jessefrgsmith@yahoo.ca +COMMENT= A flight simulator in which the player rescues people + +RUN_DEPENDS= ${LOCALBASE}/share/searchandrescue/human.ini:${PORTSDIR}/games/searchandrescue-data + +USE_SDL= mixer +USE_XORG= x11 xau xdmcp xext xmu xpm xxf86vm +USE_GL= glu +WRKSRC= ${WRKDIR}/${PORTNAME:L}_${PORTVERSION} + +PLIST_FILES= bin/${PORTNAME} \ + ${DESKTOPDIR:S,${PREFIX}/,,}/${PORTNAME}.desktop \ + share/pixmaps/${PORTNAME}.xpm +PLIST_DIRS= ${DESKTOPDIR:S,${PREFIX}/,,} + +#Respect PREFIX, LOCALBASE, CC, etc. +post-patch: + ${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},g' \ + -e 's,%%PREFIX%%,${PREFIX},g' \ + ${WRKSRC}/sar/config.h + ${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' \ + -e 's,/usr/local,${LOCALBASE},g' \ + -e 's,/usr/X11R6,${LOCALBASE},g' \ + -e '/^CFLAGS = /s,=,= ${CFLAGS},g' \ + -e '/^CC = /s, = .*, = ${CC},' \ + -e '/^CPP = /s, = .*, = ${CXX},' \ + ${WRKSRC}/sar/Makefile + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/sar/${PORTNAME} ${PREFIX}/bin + ${MKDIR} ${DESKTOPDIR} + ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop ${DESKTOPDIR} + ${INSTALL_DATA} ${WRKSRC}/sar/icons/${PORTNAME}.xpm ${PREFIX}/share/pixmaps + +.include <bsd.port.mk> diff --git a/games/searchandrescue/distinfo b/games/searchandrescue/distinfo new file mode 100644 index 000000000000..e6c0c718c2ee --- /dev/null +++ b/games/searchandrescue/distinfo @@ -0,0 +1,3 @@ +MD5 (SearchAndRescue-1.0.0.tar.gz) = 3197fe440472e27d36477daaba3b1023 +SHA256 (SearchAndRescue-1.0.0.tar.gz) = 5e88306c20e5595a1931b4358931c40bd1b318e3d2f54a797c4f8dd3253c3e5d +SIZE (SearchAndRescue-1.0.0.tar.gz) = 852443 diff --git a/games/searchandrescue/files/patch-SearchAndRescue.desktop b/games/searchandrescue/files/patch-SearchAndRescue.desktop new file mode 100644 index 000000000000..e6013c30b750 --- /dev/null +++ b/games/searchandrescue/files/patch-SearchAndRescue.desktop @@ -0,0 +1,10 @@ +--- ./SearchAndRescue.desktop.orig 2010-03-05 22:10:43.000000000 +0300 ++++ ./SearchAndRescue.desktop 2010-07-22 23:03:07.163020299 +0400 +@@ -2,6 +2,7 @@ + Encoding=UTF-8 + Name=Search and rescue + Exec=SearchAndRescue ++Icon=SearchAndRescue.xpm + Terminal=False + Type=Application + Categories=Game diff --git a/games/searchandrescue/files/patch-sar__Makefile b/games/searchandrescue/files/patch-sar__Makefile new file mode 100644 index 000000000000..97f13a002a24 --- /dev/null +++ b/games/searchandrescue/files/patch-sar__Makefile @@ -0,0 +1,39 @@ +--- ./sar/Makefile.orig 2010-06-04 04:33:22.000000000 +0400 ++++ ./sar/Makefile 2010-07-20 23:58:53.189939887 +0400 +@@ -1,12 +1,12 @@ + # Platform Configurator generated Makefile + # +-PREFIX = /usr ++PREFIX = %%PREFIX%% + +-CFLAGS = -Wall -O2 -funroll-loops -fomit-frame-pointer -ffast-math -finline-functions -fexpensive-optimizations -D__USE_BSD -DUSE_XSHM -DHAVE_MWMUTIL_H -DHAVE_LIBXPM -DHAVE_XF86_VIDMODE -Wno-write-strings -DHAVE_SDL_MIXER -I/usr/local/include ++CFLAGS = -Wall -O6 -funroll-loops -fomit-frame-pointer -ffast-math -D__USE_BSD -DUSE_XSHM -DHAVE_MWMUTIL_H -DHAVE_LIBXPM -DHAVE_XF86_VIDMODE -DHAVE_SDL_MIXER -I/usr/local/include + + INC_DIRS = + +-LIBS = -lm -lSM -lICE -lX11 -lXext -lXi -lXmu -lXpm -lXxf86vm -lGL -lGLU -lpthread -lSDL -lSDL_mixer ++LIBS = -lm -lSM -lICE -lX11 -lXext -lXmu -lXpm -lXxf86vm -lGL -lGLU -lSDL -lSDL_mixer + + LIB_DIRS = -L/usr/X11R6/lib/ -L/usr/X11R6/lib/ -L/usr/X11R6/lib/ + +@@ -39,7 +39,7 @@ + + # Programs + LS = ls +-LSFLAGS = -s -h -c --color=auto ++LSFLAGS = -s -h -c + RM = rm + RMFLAGS = -f + +@@ -56,9 +56,8 @@ + @echo "Building program \"$(BIN)\"..." + + postbuild: +- @echo "Build done. To install..." +- @echo "On Ubuntu and related distributions type \"sudo make install\"." +- @echo "On most other distributions, type \"su\" to gain root privileges and then type \"make install\"." ++ @echo "Build done." ++ @echo "To install, type \"su\" (to gain root privileges) and then type \"make install\"." + + all: $(BIN) + diff --git a/games/searchandrescue/files/patch-sar__config.h b/games/searchandrescue/files/patch-sar__config.h new file mode 100644 index 000000000000..d27c4514e4af --- /dev/null +++ b/games/searchandrescue/files/patch-sar__config.h @@ -0,0 +1,20 @@ +--- ./sar/config.h.orig 2010-06-03 02:05:00.000000000 +0400 ++++ ./sar/config.h 2010-07-22 23:21:05.772021076 +0400 +@@ -477,7 +477,7 @@ + #define SAR_DEF_LOCAL_DATA_DIR ".SearchAndRescue" + + /* Global game dir */ +-#define SAR_DEF_GLOBAL_DATA_DIR "/usr/share/games/searchandrescue" ++#define SAR_DEF_GLOBAL_DATA_DIR "%%LOCALBASE%%/share/searchandrescue" + + /* Subdirs, one of each in the local and global game dirs */ + #define SAR_DEF_AIRCRAFTS_DIR "aircrafts" +@@ -539,7 +539,7 @@ + #ifdef __MSW__ + # define SAR_DEF_SAR_ICON_FILE "SearchAndRescue.ico" + #else +-# define SAR_DEF_SAR_ICON_FILE "/usr/share/pixmaps/SearchAndRescue.xpm" ++# define SAR_DEF_SAR_ICON_FILE "%%PREFIX%%/share/pixmaps/SearchAndRescue.xpm" + #endif + + /* Standard Texture Reference Names diff --git a/games/searchandrescue/pkg-descr b/games/searchandrescue/pkg-descr new file mode 100644 index 000000000000..d7ba8988cacd --- /dev/null +++ b/games/searchandrescue/pkg-descr @@ -0,0 +1,7 @@ +This is a 3D flight simulator in which the player flies around +the map rescuing people. The game has a selection of several different +helicoptors and a jet airplane to choose from. The game includes +training missions, more complete missions and a campaign mode as +well as a free flight option for people who just want to explore. + +WWW: http://searchandrescue.sourceforge.net/ |