2005-07-20 18:31:26 +00:00
|
|
|
# New ports collection makefile for: games/abe
|
|
|
|
# Date created: 8 Aug 2005
|
|
|
|
# Whom: Alejandro Pulver <alejandro@varnet.biz>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= abe
|
|
|
|
PORTVERSION= 1.1
|
2012-02-18 10:18:33 +00:00
|
|
|
PORTREVISION= 5
|
2005-07-20 18:31:26 +00:00
|
|
|
CATEGORIES= games
|
2009-08-22 00:23:13 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
2005-07-20 18:31:26 +00:00
|
|
|
|
2011-02-27 04:54:41 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2005-07-20 18:31:26 +00:00
|
|
|
COMMENT= Abe's Amazing Adventure
|
|
|
|
|
2011-12-14 21:29:16 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2005-07-20 18:31:26 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_SDL= mixer sdl
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --with-data-dir=${DATADIR}
|
|
|
|
|
|
|
|
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
|
|
|
|
AUTOHEADER="${TRUE}"
|
|
|
|
|
|
|
|
OPTIONS= GOD_MODE "Enable God Mode (toggle with 'g')" off \
|
|
|
|
OPTIMIZED_CFLAGS "Enable compilation optimizations" on
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${DATADIR}
|
|
|
|
.for d in images maps sounds
|
|
|
|
@${CP} -R ${WRKSRC}/${d} ${DATADIR}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_GOD_MODE) || defined(WITHOUT_OPTIMIZED_CFLAGS)
|
|
|
|
post-patch:
|
2006-04-24 20:58:17 +00:00
|
|
|
. if defined(WITH_GOD_MODE)
|
2005-07-20 18:31:26 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|\(#define GOD_MODE\) 0|\1 1|' \
|
2006-04-24 20:58:17 +00:00
|
|
|
${WRKSRC}/src/Game.h
|
|
|
|
. endif
|
|
|
|
. if defined(WITHOUT_OPTIMIZED_CFLAGS)
|
2005-07-20 18:31:26 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|-O2||g ; \
|
2006-04-24 20:58:17 +00:00
|
|
|
s|-fomit-frame-pointer||g ; \
|
|
|
|
s|-ffast-math||g ; \
|
|
|
|
s|-fexpensive-optimizations||g' \
|
|
|
|
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
|
|
|
. endif
|
2005-07-20 18:31:26 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|