2005-07-13 13:00:23 +00:00
|
|
|
# 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
|
2008-03-13 14:28:35 +00:00
|
|
|
PORTREVISION= 3
|
2005-07-13 13:00:23 +00:00
|
|
|
CATEGORIES= games
|
2008-03-04 12:14:30 +00:00
|
|
|
MASTER_SITES= http://www.schwardtnet.de/alienblaster/archives/
|
2005-07-13 13:00:23 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2006-04-09 13:08:16 +00:00
|
|
|
MAINTAINER= alepulver@FreeBSD.org
|
2005-07-13 13:00:23 +00:00
|
|
|
COMMENT= Alien Blaster
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_SDL= mixer sdl
|
|
|
|
REINPLACE_ARGS= -i ''
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2007-10-04 01:02:44 +00:00
|
|
|
.include <bsd.port.mk>
|