freebsd-ports/games/alienblaster/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

60 lines
1.3 KiB
Makefile

# New ports collection makefile for: games/alienblaster
# Date created: 8 Aug 2005
# Whom: Alejandro Pulver <alejandro@varnet.biz>
#
# $FreeBSD$
#
PORTNAME= alienblaster
PORTVERSION= 1.1.0
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://www.informatik.uni-bremen.de/~schwardt/alienblaster/
EXTRACT_SUFX= .tgz
MAINTAINER= alepulver@FreeBSD.org
COMMENT= Alien Blaster
USE_GMAKE= yes
USE_SDL= mixer sdl
REINPLACE_ARGS= -i ''
WRKSRC= ${WRKDIR}/${PORTNAME}
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
BROKEN= "use atoll() interface"
.endif
post-patch:
# Fix make command
@${REINPLACE_CMD} -e 's|make|${GMAKE}|g' ${WRKSRC}/${MAKEFILE}
# Fix Makefile
@${REINPLACE_CMD} -e 's|alienBlaster|${PORTNAME}|g ; \
s|g++|${CXX}|g ; \
s|-g||g ; \
s|sdl-config|${SDL_CONFIG}|g ; \
s|@echo ""||g' \
${WRKSRC}/src/Makefile
# Fix paths to ${DATADIR}
@${REINPLACE_CMD} -e 's|\./|${DATADIR}/|g' \
${WRKSRC}/src/global.h \
${WRKSRC}/src/global.cc
@${REINPLACE_CMD} -e 's|\./|${DATADIR}/|g ; \
s|=\(images\)|=${DATADIR}/\1|g' \
${WRKSRC}/cfg/level*.cfg
do-install:
# Executable
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
# Data
${MKDIR} ${DATADIR}
.for d in cfg images sound
${CP} -R ${WRKSRC}/${d} ${DATADIR}
.endfor
.include <bsd.port.post.mk>