1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/games/alienblaster/Makefile
Danilo Egea Gondolfo 018c274bd8 - Add stage support
- Convert USE_GMAKE to USES
2013-10-29 19:52:24 +00:00

53 lines
1.1 KiB
Makefile

# Created by: Alejandro Pulver <alejandro@varnet.biz>
# $FreeBSD$
PORTNAME= alienblaster
PORTVERSION= 1.1.0
PORTREVISION= 5
CATEGORIES= games
MASTER_SITES= http://www.schwardtnet.de/alienblaster/archives/
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= Alien Blaster
LICENSE= GPLv2
USES= gmake
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} ${STAGEDIR}${PREFIX}/bin
# Data
@${MKDIR} ${STAGEDIR}${DATADIR}
.for d in cfg images sound
${CP} -R ${WRKSRC}/${d} ${STAGEDIR}${DATADIR}
.endfor
.include <bsd.port.mk>