Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 May 2007 14:48:40 +0200 (CEST)
From:      Marcus von Appen <mva@sysfault.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/112939: [New port]: games/linux-defcon - nuclear war simulation
Message-ID:  <200705241248.l4OCmeDX099807@medusa.sysfault.org>
Resent-Message-ID: <200705241250.l4OCoB6M067136@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         112939
>Category:       ports
>Synopsis:       [New port]: games/linux-defcon - nuclear war simulation
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 24 12:50:10 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Marcus von Appen
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD medusa.sysfault.org 6.2-STABLE FreeBSD 6.2-STABLE #1: Sat Apr 7 22:24:16 CEST 2007 root@medusa.sysfault.org:/usr/obj/usr/src/sys/MEDUSA i386


	
>Description:
	This is a port of the commercial game "Defcon", which is a
        global thermonuclear war simulation inspired by movies like
        WarGames.

>How-To-Repeat:
	--
>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	linux-defcon
#	linux-defcon/files
#	linux-defcon/files/defcon.in
#	linux-defcon/pkg-plist
#	linux-defcon/pkg-descr
#	linux-defcon/distinfo
#	linux-defcon/Makefile
#
echo c - linux-defcon
mkdir -p linux-defcon > /dev/null 2>&1
echo c - linux-defcon/files
mkdir -p linux-defcon/files > /dev/null 2>&1
echo x - linux-defcon/files/defcon.in
sed 's/^X//' >linux-defcon/files/defcon.in << 'END-of-linux-defcon/files/defcon.in'
X#!/bin/sh
X
Xcd %%DATADIR%% || exit 1
Xexec ./defcon.bin.x86 "$@"
END-of-linux-defcon/files/defcon.in
echo x - linux-defcon/pkg-plist
sed 's/^X//' >linux-defcon/pkg-plist << 'END-of-linux-defcon/pkg-plist'
Xbin/linux-defcon
X%%DATADIR%%/defcon.bin.x86
X%%DATADIR%%/main.dat
X%%DATADIR%%/sounds.dat
X%%DATADIR%%/open-www.sh
X%%PORTDOCS%%%%DOCSDIR%%/license.txt
X%%PORTDOCS%%%%DOCSDIR%%/manual.pdf
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X@dirrm %%DATADIR%%
END-of-linux-defcon/pkg-plist
echo x - linux-defcon/pkg-descr
sed 's/^X//' >linux-defcon/pkg-descr << 'END-of-linux-defcon/pkg-descr'
XDefcon is announced as "The World's first Genocide 'em up". It is a
Xglobal thermonuclear war simulation inspired by movies like WarGames
Xand features multiplayer support, different game modes and support for
Xown game mods.
X
XWWW: http://www.introversion.co.uk/defcon/
END-of-linux-defcon/pkg-descr
echo x - linux-defcon/distinfo
sed 's/^X//' >linux-defcon/distinfo << 'END-of-linux-defcon/distinfo'
XMD5 (defcon-v1.42.tar.gz) = 9ee1db396b3fc9ba5f3b745ac3e6b18b
XSHA256 (defcon-v1.42.tar.gz) = 45b4b0aa37fef9455c70b1b7f3d13a97a5f1f0554103da5cfb24882e30848f41
XSIZE (defcon-v1.42.tar.gz) = 62808164
END-of-linux-defcon/distinfo
echo x - linux-defcon/Makefile
sed 's/^X//' >linux-defcon/Makefile << 'END-of-linux-defcon/Makefile'
X# New ports collection makefile for:	linux-defcon
X# Date created:				24 May 2007
X# Whom:					Marcus von Appen <mva@sysfault.org
X#
X# $FreeBSD$
X#
X
XPORTNAME=	defcon
XPORTVERSION=	1.42
XCATEGORIES=	games linux
XMASTER_SITES=	http://download.introversion.co.uk/defcon/linux/
XPKGNAMEPREFIX=	linux-
XDISTNAME=	${PORTNAME}-v${PORTVERSION}
X
XMAINTAINER=	mva@sysfault.org
XCOMMENT=	Defcon for Linux
X
XRUN_DEPENDS=	${LINUXBASE}/usr/lib/libSDL-1.2.so.0:${PORTSDIR}/devel/linux-sdl12 \
X		${LINUXBASE}/usr/lib/libogg.so.0:${PORTSDIR}/audio/linux-libogg \
X		${LINUXBASE}/usr/lib/libvorbisfile.so.3:${PORTSDIR}/audio/linux-libvorbis
X
XONLY_FOR_ARCHS=	i386
XUSE_LINUX=	yes
XUSE_XLIB=	yes
XNO_CDROM=	Redistribution is limited, see license
XNO_BUILD=	yes
X
XDATADIR=	${PREFIX}/lib/${PKGNAMEPREFIX}${PORTNAME}
XSUB_FILES=	defcon
X
XOPTIONS=	NVIDIA	"Install support for nvidia"	off
X
X.include <bsd.port.pre.mk>
X
X.if defined(WITH_NVIDIA)
XRUN_DEPENDS+=	${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver
X.else
XRUN_DEPENDS+=	${LINUXBASE}/usr/X11R6/lib/libGL.so.1:${PORTSDIR}/graphics/linux_dri
X.endif
X
X
Xdo-build:
X	${BRANDELF} -t Linux ${WRKSRC}/lib/defcon.bin.x86
X
Xdo-install:
X	${MKDIR} ${DATADIR}
X	@cd ${WRKSRC}/lib && \
X		${INSTALL_PROGRAM} defcon.bin.x86 ${DATADIR} && \
X		${INSTALL_DATA} *.dat open-www.sh ${DATADIR}
X	${INSTALL_PROGRAM} ${WRKDIR}/defcon ${PREFIX}/bin/${PKGNAMEPREFIX}defcon
X.if !defined (NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/license.txt ${DOCSDIR}/license.txt
X	${INSTALL_DATA} ${WRKSRC}/manual.pdf ${DOCSDIR}/manual.pdf
X.endif
X
X.include <bsd.port.post.mk>
END-of-linux-defcon/Makefile
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200705241248.l4OCmeDX099807>