2008-04-28 10:48:10 +02:00
|
|
|
# New ports collection makefile for: biniax2
|
|
|
|
# Date created: 16 Apr 2008
|
|
|
|
# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= biniax2
|
2009-05-27 01:25:12 +02:00
|
|
|
PORTVERSION= 1.30
|
2010-02-05 12:46:55 +01:00
|
|
|
PORTREVISION= 3
|
2008-04-28 10:48:10 +02:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= http://mordred.dir.bg/biniax/ \
|
2009-07-28 18:34:36 +02:00
|
|
|
http://mirror.amdmi3.ru/distfiles/
|
2009-05-27 01:25:12 +02:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-fullsrc
|
2008-04-28 10:48:10 +02:00
|
|
|
|
2008-06-19 19:28:24 +02:00
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
2008-04-28 10:48:10 +02:00
|
|
|
COMMENT= Original logic game with arcade and tactics modes
|
|
|
|
|
|
|
|
USE_SDL= sdl mixer image
|
2009-05-27 01:25:12 +02:00
|
|
|
NO_WRKSUBDIR= yes
|
2008-04-28 10:48:10 +02:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${RM} -f ${WRKSRC}/data/Thumbs.db
|
|
|
|
@${REINPLACE_CMD} -e 's|data/|${DATADIR}/|g' \
|
|
|
|
${WRKSRC}/desktop/gfx.c ${WRKSRC}/desktop/snd.c
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC} && ${CC} ${CFLAGS} biniax.c hof.c desktop/cfg.c \
|
|
|
|
desktop/gfx.c desktop/snd.c desktop/inp.c desktop/sys.c \
|
|
|
|
-I. -Idesktop `${SDL_CONFIG} --cflags --libs` \
|
|
|
|
-lSDL_image -lSDL_mixer -o ${PORTNAME}
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
|
|
|
|
${MKDIR} ${DATADIR}
|
|
|
|
cd ${WRKSRC}/data && ${COPYTREE_SHARE} . ${DATADIR}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|