mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
6f6fbe4bdf
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead PR: 157936 Submitted by: myself Exp-runs by: pav Approved by: pav
45 lines
1.1 KiB
Makefile
45 lines
1.1 KiB
Makefile
# New ports collection makefile for: chanta
|
|
# Date created: 2006-04-01
|
|
# Whom: Charlie & <root@HellFire.BSD.org.pe>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= chanta
|
|
PORTVERSION= 0.15
|
|
PORTREVISION= 8
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://www.losersjuegos.com.ar/_media/juegos/chanta/descargas/
|
|
|
|
MAINTAINER= acm@FreeBSD.org
|
|
COMMENT= Free 2D jump and run game
|
|
|
|
USE_SDL= sdl image mixer
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD}
|
|
|
|
CHANTADIRS= data ima
|
|
|
|
post-configure:
|
|
@${REINPLACE_CMD} -e 's|-lSDL |`sdl-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>
|