2000-09-28 10:07:22 +02:00
|
|
|
# New ports collection makefile for: madbomber
|
2000-09-28 10:39:24 +02:00
|
|
|
# Date created: 28 September 2000
|
2000-09-28 10:07:22 +02:00
|
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= madbomber
|
2003-07-02 09:49:15 +02:00
|
|
|
PORTVERSION= 0.2.5
|
2004-02-04 06:21:48 +01:00
|
|
|
PORTREVISION= 1
|
2000-09-28 10:07:22 +02:00
|
|
|
CATEGORIES= games
|
2003-09-08 08:00:51 +02:00
|
|
|
MASTER_SITES= ftp://ftp.sonic.net/pub/users/nbs/unix/x/madbomber/src/
|
2000-09-28 10:07:22 +02:00
|
|
|
|
2003-01-19 21:01:35 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 18:32:26 +01:00
|
|
|
COMMENT= A clone of Activision's classic Atari 2600 console game "Kaboom!"
|
2000-09-28 10:07:22 +02:00
|
|
|
|
2004-01-20 19:21:02 +01:00
|
|
|
USE_SDL= mixer image sdl
|
2000-09-28 10:07:22 +02:00
|
|
|
|
2003-07-02 09:49:15 +02:00
|
|
|
CPPFLAGS= `${SDL_CONFIG} --cflags` -DDATA_PREFIX=\"${DATADIR}/\"
|
|
|
|
LDFLAGS= `${SDL_CONFIG} --libs`
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC} && ${CC} ${CFLAGS} ${CPPFLAGS} -o ${PORTNAME} \
|
|
|
|
${PORTNAME}.c ${LDFLAGS} -lSDL_mixer -lSDL_image
|
2000-09-28 10:07:22 +02:00
|
|
|
|
|
|
|
do-install:
|
2003-07-02 09:49:15 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/madbomber ${PREFIX}/bin
|
|
|
|
@${MKDIR} ${DATADIR}
|
|
|
|
${TAR} -C ${WRKSRC}/data --exclude embedded -cf - . | \
|
|
|
|
${TAR} -C ${DATADIR} --unlink -xf -
|
|
|
|
@${FIND} ${DATADIR} | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGRP}
|
|
|
|
@${FIND} ${DATADIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
|
2000-09-28 10:07:22 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|