2006-06-06 15:02:56 -04:00
|
|
|
# New ports collection makefile for: chanta
|
|
|
|
# Date created: 2006-04-01
|
|
|
|
# Whom: Charlie & <root@HellFire.BSD.org.pe>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= chanta
|
|
|
|
PORTVERSION= 0.15
|
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= http://www.losersjuegos.com.ar/juegos/chanta/descargas/
|
|
|
|
|
2006-07-22 22:45:24 -04:00
|
|
|
MAINTAINER= acm@FreeBSD.org
|
2006-06-06 15:02:56 -04:00
|
|
|
COMMENT= Free 2D jump and run game
|
|
|
|
|
|
|
|
USE_X_PREFIX= yes
|
|
|
|
USE_SDL= sdl image mixer
|
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD}
|
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
|
|
|
|
|
|
CHANTADIRS= data ima
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
@${FIND} -E ${WRKSRC}/src/ -type f -iregex ".*\.(cpp|h)" \
|
|
|
|
-print0 | ${XARGS} -0 ${REINPLACE_CMD} -e 's/<SDL/<SDL11/'
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
@${REINPLACE_CMD} -e 's|-lSDL |`sdl11-config --libs` |g' ${WRKSRC}/src/${MAKEFILE}
|
|
|
|
@${REINPLACE_CMD} -e 's|^CXXFLAGS|^CXXFLAGS?|g' ${WRKSRC}/src/${MAKEFILE}
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${DATADIR}
|
|
|
|
@cd ${WRKSRC}/src && \
|
|
|
|
${INSTALL_PROGRAM} chanta ${PREFIX}/bin && \
|
|
|
|
${FIND} ${CHANTADIRS} -type d -exec ${MKDIR} "${DATADIR}/{}" \; && \
|
|
|
|
${FIND} -E ${CHANTADIRS} -type f -iregex ".*\.(png|dat)" \
|
|
|
|
-exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \;
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
@cd ${WRKSRC} && \
|
|
|
|
${INSTALL_DATA} AUTHORS ChangeLog README ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|