ports/84923: [NEW PORT] games/annelid - Remake of the ubiquitous "Snake" and "Worm" games

Alejandro Pulver alejandro at varnet.biz
Sun Aug 14 18:40:20 UTC 2005


>Number:         84923
>Category:       ports
>Synopsis:       [NEW PORT] games/annelid - Remake of the ubiquitous "Snake" and "Worm" games
>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:   Sun Aug 14 18:40:16 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Alejandro Pulver
>Release:        FreeBSD 5.4-RELEASE i386
>Organization:
>Environment:





>Description:


This port is marked as RESTRICTED because binary/source redistribution is not allowed. So /usr/ports/LEGAL should be updated.


>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:
#
#	annelid
#	annelid/Makefile
#	annelid/pkg-descr
#	annelid/distinfo
#	annelid/files
#	annelid/files/patch-Makefile
#	annelid/files/annelid-sh.in
#	annelid/pkg-plist
#
echo c - annelid
mkdir -p annelid > /dev/null 2>&1
echo x - annelid/Makefile
sed 's/^X//' >annelid/Makefile << 'END-of-annelid/Makefile'
X# New ports collection makefile for:	annelid
X# Date created:				11 Aug 2005
X# Whom:					Alejandro Pulver <alejandro at varnet.biz>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	annelid
XPORTVERSION=	1
XCATEGORIES=	games
XMASTER_SITES=	http://www.garthgillespie.com/annelid/
XDISTFILES=	${PORTNAME}-src${EXTRACT_SUFX} \
X		${PORTNAME}-media${EXTRACT_SUFX}
X
XMAINTAINER=	alejandro at varnet.biz
XCOMMENT=	Remake of the ubiquitous "Snake" and "Worm" games
X
XRESTRICTED=	No redistribution allowed
X
XUSE_ZIP=	yes
XUSE_GMAKE=	yes
XUSE_SDL=	sdl
XUSE_GL=		yes
XUSE_REINPLACE=	yes
X
XNO_WRKSUBDIR=	yes
X
XOPTIONS=	OPTIMIZED_CFLAGS "Enable compilation optimizations" on
X
XSUB_FILES=	${PORTNAME}-sh
X
XDATAFILES=	annelid.dat apple.tga apple.wav backd.tga backn.tga font.dat \
X		font.tga front.tga grow.wav head.tga powerup.tga readme.txt \
X		score.wav segment.tga shrink.wav slow.wav speed.wav title.tga \
X		vortex.wav
X
Xdo-install:
X# Script
X	@${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}-sh ${PREFIX}/bin/${PORTNAME}
X
X# Program
X	@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/libexec
X
X# Data
X	@${MKDIR} ${DATADIR}
X.for f in ${DATAFILES}
X	@${INSTALL_DATA} ${WRKSRC}/${f} ${DATADIR}
X.endfor
X
X.include <bsd.port.pre.mk>
X
Xpost-patch:
X# Fix Makefile
X	@${REINPLACE_CMD} -e 's|%%CFLAGS%%|${CFLAGS}| ; \
X			s|%%X11BASE%%|${X11BASE}| ; \
X			s|sdl-config|${SDL_CONFIG}|' \
X				${WRKSRC}/${MAKEFILE}
X
X# Fix SDL include statement
X	@${REINPLACE_CMD} -e 's|\(#include.*\)SDL/\(SDL.*\)|\1\2|' \
X				${WRKSRC}/*.cpp ${WRKSRC}/*.h
X
X# Enable/disable compilation optimizations
X.if !defined(WITH_OPTIMIZED_CFLAGS)
X	@${REINPLACE_CMD} -e 's|$$(OPT)||' ${WRKSRC}/${MAKEFILE}
X.endif
X
X.include <bsd.port.post.mk>
END-of-annelid/Makefile
echo x - annelid/pkg-descr
sed 's/^X//' >annelid/pkg-descr << 'END-of-annelid/pkg-descr'
XAnalog Annelid is a remake of the ubiquitous "Snake" and "Worm" games in which
Xthe player controls the movement of such a creature in an attempt to collect
Xapples, numbers, or whatever. Upon collecting these items, the creature grows
Xin length. This process continues until the creature collides with itself or
Xperhaps a wall or some other obstacle.
X
XMost of these games only allow the hapless forager to make 90° turns. This is
Xfor the sake of easier programming both in the game itself and in the display
Xof graphics.
X
XAnalog Annelid absolves itself of this stigma for a smooth, free-flowing game
Xworld and more complex gameplay.
X
XWWW: http://www.garthgillespie.com/annelid/
X
X- Alejandro Pulver
Xalejandro at varnet.biz
END-of-annelid/pkg-descr
echo x - annelid/distinfo
sed 's/^X//' >annelid/distinfo << 'END-of-annelid/distinfo'
XMD5 (annelid-src.zip) = daaaac34057b9ecbe5e5edb98fd2ed1f
XSIZE (annelid-src.zip) = 37783
XMD5 (annelid-media.zip) = 062040d11b3c944b0cc0b053557fc698
XSIZE (annelid-media.zip) = 450722
END-of-annelid/distinfo
echo c - annelid/files
mkdir -p annelid/files > /dev/null 2>&1
echo x - annelid/files/patch-Makefile
sed 's/^X//' >annelid/files/patch-Makefile << 'END-of-annelid/files/patch-Makefile'
X--- Makefile.orig	Thu Jun 17 23:58:24 2004
X+++ Makefile	Sun Jul 24 14:38:41 2005
X@@ -4,7 +4,6 @@
X # For more information, please visit http://www.garthgillespie.com/annelid/ .
X 
X # Comment the next line for non-windows.  This is not well tested.
X-WINDOWS=1
X 
X ifdef WINDOWS
X NAME=annelid.exe
X@@ -14,16 +13,16 @@
X 
X OBJS=main.o mixer.o highscore.o texture.o centeredtexture.o fonttexture.o scrolltexture.o targa.o worm.o apple.o powerup.o visual.o
X 
X-CC=gcc
X-CCC=g++
X-CFLAGS=-I. `sdl-config --cflags` -c -Wall -ggdb -fomit-frame-pointer -O3
X+CCC=$(CXX)
X+CFLAGS=%%CFLAGS%% -I. -I%%X11BASE%%/include `sdl-config --cflags` -c -Wall $(OPT)
X+OPT = -fomit-frame-pointer -O3
X 
X-LD=g++
X+LD=$(CXX)
X 
X ifdef WINDOWS
X LIBS=-lopengl32 `sdl-config --libs`
X else
X-LIBS=-L/usr/X11R6/lib -lGL `sdl-config --libs`
X+LIBS=-L%%X11BASE%%/lib -lGL `sdl-config --libs`
X endif
X 
X all: $(NAME)
END-of-annelid/files/patch-Makefile
echo x - annelid/files/annelid-sh.in
sed 's/^X//' >annelid/files/annelid-sh.in << 'END-of-annelid/files/annelid-sh.in'
X#!/bin/sh
X
X# The executable needs to be run from its data directory, and needs to store
X# configuration in it. We therefore mirror the data directory hierarchy in
X# ~/.annelid, and create symlinks to the data files.
X
Xcd %%DATADIR%% || exit 1
X
Xmkdir -p ~/.annelid || exit 1
X
Xtest -f ~/.annelid/annelid.dat || cp annelid.dat ~/.annelid && \
Xchmod u+w ~/.annelid/annelid.dat
X
Xfind * -type f -exec ln -s %%DATADIR%%/{} ~/.annelid/{} \; 2>/dev/null || \
Xexit 1
X
Xcd ~/.annelid || exit 1
X
Xexec %%PREFIX%%/libexec/annelid
END-of-annelid/files/annelid-sh.in
echo x - annelid/pkg-plist
sed 's/^X//' >annelid/pkg-plist << 'END-of-annelid/pkg-plist'
Xbin/annelid
Xlibexec/annelid
X%%DATADIR%%/annelid.dat
X%%DATADIR%%/apple.tga
X%%DATADIR%%/apple.wav
X%%DATADIR%%/backd.tga
X%%DATADIR%%/backn.tga
X%%DATADIR%%/font.dat
X%%DATADIR%%/font.tga
X%%DATADIR%%/front.tga
X%%DATADIR%%/grow.wav
X%%DATADIR%%/head.tga
X%%DATADIR%%/powerup.tga
X%%DATADIR%%/readme.txt
X%%DATADIR%%/score.wav
X%%DATADIR%%/segment.tga
X%%DATADIR%%/shrink.wav
X%%DATADIR%%/slow.wav
X%%DATADIR%%/speed.wav
X%%DATADIR%%/title.tga
X%%DATADIR%%/vortex.wav
X at dirrm %%DATADIR%%
END-of-annelid/pkg-plist
exi


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



More information about the freebsd-ports-bugs mailing list