diff options
-rw-r--r-- | games/Makefile | 1 | ||||
-rw-r--r-- | games/sea-defender/Makefile | 40 | ||||
-rw-r--r-- | games/sea-defender/distinfo | 3 | ||||
-rw-r--r-- | games/sea-defender/files/patch-Makefile | 18 | ||||
-rw-r--r-- | games/sea-defender/files/sea-defender.sh.in | 8 | ||||
-rw-r--r-- | games/sea-defender/pkg-descr | 3 |
6 files changed, 73 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile index dc97f7c2ab1a..7a3a134700d9 100644 --- a/games/Makefile +++ b/games/Makefile @@ -778,6 +778,7 @@ SUBDIR += sdlquake2 SUBDIR += sdlroids SUBDIR += sdlsand + SUBDIR += sea-sefender SUBDIR += seabattle SUBDIR += seahaven SUBDIR += searchandrescue diff --git a/games/sea-defender/Makefile b/games/sea-defender/Makefile new file mode 100644 index 000000000000..559f9cfd7f38 --- /dev/null +++ b/games/sea-defender/Makefile @@ -0,0 +1,40 @@ +# New ports collection makefile for: sea-defender +# Date created: 23 Jul 2010 +# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= sea-defender +PORTVERSION= r20100723 +CATEGORIES= games +MASTER_SITES= http://mirror.amdmi3.ru/distfiles/ + +MAINTAINER= amdmi3@FreeBSD.org +COMMENT= Simple missile command clone + +BUILD_DEPENDS= ${LOCALBASE}/lib/libglfw.a:${PORTSDIR}/graphics/glfw + +USE_BZIP2= yes +USE_GMAKE= yes +USE_SDL= sdl mixer image ttf +USE_GL= gl glu +USE_XORG= x11 xrandr +MAKE_JOBS_SAFE= yes + +SUB_FILES= ${PORTNAME}.sh +PLIST_FILES= libexec/${PORTNAME} bin/${PORTNAME} + +WRKSRC= ${WRKDIR}/${PORTNAME} + +PORTDOCS= README + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/sea ${PREFIX}/libexec/${PORTNAME} + ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME} +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} +.endif + +.include <bsd.port.mk> diff --git a/games/sea-defender/distinfo b/games/sea-defender/distinfo new file mode 100644 index 000000000000..b16b1b89ffd3 --- /dev/null +++ b/games/sea-defender/distinfo @@ -0,0 +1,3 @@ +MD5 (sea-defender-r20100723.tar.bz2) = 6f1bea53a5e9f5f6765017cbe97304ea +SHA256 (sea-defender-r20100723.tar.bz2) = 2f8b11b3f047653d58b0dabc4384486bb3f3c173bed5f5592df070079cd73624 +SIZE (sea-defender-r20100723.tar.bz2) = 164757 diff --git a/games/sea-defender/files/patch-Makefile b/games/sea-defender/files/patch-Makefile new file mode 100644 index 000000000000..58025fe6a2a3 --- /dev/null +++ b/games/sea-defender/files/patch-Makefile @@ -0,0 +1,18 @@ +--- Makefile.orig 2010-03-23 19:52:15.000000000 +0300 ++++ Makefile 2010-07-23 15:27:18.000000000 +0400 +@@ -1,12 +1,9 @@ +-#CXX = g++ +-CXX = colorgcc +-#CXXFLAGS = -ffunction-sections -fdata-sections -Wall -Os -fno-exceptions -fno-unwind-tables -fno-rtti -minline-all-stringops -ggdb +-CXXFLAGS = -ffunction-sections -fdata-sections -Wall -Os -fno-exceptions -fno-unwind-tables -fno-rtti -minline-all-stringops -ggdb ++CXXFLAGS += -Wall -fno-exceptions -fno-unwind-tables -fno-rtti -I${LOCALBASE}/include + + # -Weffc++ -U_FORTIFY_SOURCE + # NDEBUG pro release ? +-LDFLAGS = -Wl,--gc-sections -L/usr/X11R6/lib +-LIBS = /usr/local/lib/libglfw.a -pthread -lGL -lm -lGLU -lX11 -lXrandr ++LDFLAGS = -L${LOCALBASE}/lib ++LIBS = ${LOCALBASE}/lib/libglfw.a ${PTHREAD_LIBS} -lGL -lm -lGLU -lX11 -lXrandr + INCLUDES = + FILE2C = utils/file2c.rb + diff --git a/games/sea-defender/files/sea-defender.sh.in b/games/sea-defender/files/sea-defender.sh.in new file mode 100644 index 000000000000..d4bbbc55d956 --- /dev/null +++ b/games/sea-defender/files/sea-defender.sh.in @@ -0,0 +1,8 @@ +#!/bin/sh + +DOTDIR=$HOME/.sea-defender + +mkdir -p "$DOTDIR" +cd "$DOTDIR" || exit 1 + +exec %%PREFIX%%/libexec/sea-defender "$@" diff --git a/games/sea-defender/pkg-descr b/games/sea-defender/pkg-descr new file mode 100644 index 000000000000..7a05275c2ed9 --- /dev/null +++ b/games/sea-defender/pkg-descr @@ -0,0 +1,3 @@ +Simple missile command clone in 96k for linux/win/macosx + +WWW: http://www.pouet.net/prod.php?which=54272 |