2013-08-27 16:56:17 +00:00
|
|
|
# Created by: Alejandro Pulver <alejandro@varnet.biz>
|
2005-07-20 18:31:26 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= abe
|
|
|
|
PORTVERSION= 1.1
|
2013-11-22 23:53:35 +00:00
|
|
|
PORTREVISION= 7
|
2005-07-20 18:31:26 +00:00
|
|
|
CATEGORIES= games
|
2013-11-22 23:53:35 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} \
|
|
|
|
SF/nemysisfreebsdp/${CATEGORIES}/:icons
|
|
|
|
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
|
|
|
|
${PORTNAME}.png:icons
|
|
|
|
EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
|
2005-07-20 18:31:26 +00:00
|
|
|
|
2013-09-26 20:08:38 +00:00
|
|
|
MAINTAINER= nemysis@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
|
|
|
|
|
2013-11-22 23:53:35 +00:00
|
|
|
USES= gmake
|
2013-08-27 16:56:17 +00:00
|
|
|
USE_SDL= mixer sdl
|
2005-07-20 18:31:26 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --with-data-dir=${DATADIR}
|
|
|
|
|
|
|
|
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
|
|
|
|
AUTOHEADER="${TRUE}"
|
|
|
|
|
2013-08-27 16:56:17 +00:00
|
|
|
PORTDOCS= AUTHORS ChangeLog README
|
|
|
|
|
|
|
|
DESKTOP_ENTRIES="Abe's Amazing Avanture" "${COMMENT}" "${PORTNAME}" \
|
2013-11-22 23:53:35 +00:00
|
|
|
"${PORTNAME}" "Game;ArcadeGame;" false
|
2013-08-27 16:56:17 +00:00
|
|
|
|
2013-11-22 23:53:35 +00:00
|
|
|
OPTIONS_DEFINE= DOCS GOD_MODE OPTIMIZED_CFLAGS
|
|
|
|
OPTIONS_DEFAULT= GOD_MODE OPTIMIZED_CFLAGS
|
2012-06-12 16:35:45 +00:00
|
|
|
GOD_MODE_DESC= Enable God Mode (toggle with 'g')
|
2005-07-20 18:31:26 +00:00
|
|
|
|
2012-06-12 16:35:45 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2005-07-20 18:31:26 +00:00
|
|
|
|
|
|
|
post-patch:
|
2013-11-22 23:53:35 +00:00
|
|
|
.if ${PORT_OPTIONS:MGOD_MODE} || ! ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
|
2012-06-12 16:35:45 +00:00
|
|
|
. if ${PORT_OPTIONS:MGOD_MODE}
|
2013-11-22 23:53:35 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|#define GOD_MODE 0|#define GOD_MODE 1|' \
|
2006-04-24 20:58:17 +00:00
|
|
|
${WRKSRC}/src/Game.h
|
|
|
|
. endif
|
2013-11-22 23:53:35 +00:00
|
|
|
. if ! ${PORT_OPTIONS:MOPTIMIZED_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
|
|
|
|
|
2013-08-27 16:56:17 +00:00
|
|
|
post-install:
|
2013-11-22 23:53:35 +00:00
|
|
|
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/
|
|
|
|
|
2013-08-27 16:56:17 +00:00
|
|
|
.for d in images maps sounds
|
2013-11-22 23:53:35 +00:00
|
|
|
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
|
2013-08-27 16:56:17 +00:00
|
|
|
.endfor
|
2013-11-22 23:53:35 +00:00
|
|
|
|
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
2013-08-27 16:56:17 +00:00
|
|
|
|
2012-06-12 16:35:45 +00:00
|
|
|
.include <bsd.port.mk>
|