freebsd-ports/games/annelid/Makefile
Stanislav Sedov 0d2725682b - Update devel/sdl12 to version 1.2.11. Now we employ stock SDL directory
structure (i.e. include/SDL for includes and sdl-config for configuration
   binary)
 - Update graphics/sdl_ttf to version 2.0.8
 - Update graphics/sdl_image to version 1.2.5
 - Update audio/sdl_mixer to version 1.2.7
 - Update net/sdl_net to version 1.2.6
 - Update Mk/bsd.sdl.mk accordingly
 - Fix dependent ports to fit the new directory structure and avoid several
   API breakages
 - Bump up portrevisions for all dependent ports to allow them to be upgraded
   by portupgrade/portmaster etc tools

Approved by:    kris (portmgr), sem (mentor)
2006-09-20 11:21:59 +00:00

69 lines
1.6 KiB
Makefile

# New ports collection makefile for: annelid
# Date created: 11 Aug 2005
# Whom: Alejandro Pulver <alejandro@varnet.biz>
#
# $FreeBSD$
#
PORTNAME= annelid
PORTVERSION= 1
PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= http://www.garthgillespie.com/annelid/ \
${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= pav
DISTFILES= ${PORTNAME}-src${EXTRACT_SUFX} \
${PORTNAME}-media${EXTRACT_SUFX}
MAINTAINER= alepulver@FreeBSD.org
COMMENT= Remake of the ubiquitous "Snake" and "Worm" games
RESTRICTED= No redistribution allowed
USE_ZIP= yes
USE_GMAKE= yes
USE_SDL= sdl
USE_GL= yes
NO_WRKSUBDIR= yes
OPTIONS= OPTIMIZED_CFLAGS "Enable compilation optimizations" on
SUB_FILES= ${PORTNAME}-sh
DATAFILES= annelid.dat apple.tga apple.wav backd.tga backn.tga font.dat \
font.tga front.tga grow.wav head.tga powerup.tga readme.txt \
score.wav segment.tga shrink.wav slow.wav speed.wav title.tga \
vortex.wav
.include <bsd.port.pre.mk>
post-patch:
# Fix Makefile.
@${REINPLACE_CMD} -e 's|%%CFLAGS%%|${CFLAGS}| ; \
s|%%X11BASE%%|${X11BASE}| ; \
s|sdl-config|${SDL_CONFIG}|' \
${WRKSRC}/${MAKEFILE}
# Fix SDL include statement.
@${REINPLACE_CMD} -e 's|\(#include.*\)SDL/\(SDL.*\)|\1\2|' \
${WRKSRC}/*.cpp ${WRKSRC}/*.h
# Enable/disable compilation optimizations.
.if defined(WITHOUT_OPTIMIZED_CFLAGS)
@${REINPLACE_CMD} -e 's|$$(OPT)||' ${WRKSRC}/${MAKEFILE}
.endif
do-install:
# Script.
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}-sh ${PREFIX}/bin/${PORTNAME}
# Program.
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/libexec
# Data.
${MKDIR} ${DATADIR}
.for f in ${DATAFILES}
${INSTALL_DATA} ${WRKSRC}/${f} ${DATADIR}
.endfor
.include <bsd.port.post.mk>