1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00
freebsd-ports/games/chapping/Makefile
2021-04-08 02:19:01 +03:00

38 lines
1.0 KiB
Makefile

PORTNAME= chapping
PORTVERSION= 0.43
PORTREVISION= 14
CATEGORIES= games
MASTER_SITES= http://forja.rediris.es/frs/download.php/760/ \
http://mirror.amdmi3.ru/distfiles/
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Turn based board football game
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= gmake sdl tar:bzip2
USE_SDL= sdl image gfx ttf
USE_CXXSTD= c++98
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-source
ALL_TARGET= linux
PLIST_FILES= bin/${PORTNAME}
PORTDATA= *
post-patch:
@${REINPLACE_CMD} -e 's|make|$${MAKE}|g' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e '/^CXX=/ d; s|^SDL=.*|SDL=${SDL_CONFIG}|; \
/\.o:/ d; /^CXXFLAGS=/ s|=-g -Wall -O2|+=|' \
${WRKSRC}/library/Makefile ${WRKSRC}/game/Makefile
@${REINPLACE_CMD} -e 's|menuimg/|${DATADIR}/&|; s|themes/|${DATADIR}/&|' \
${WRKSRC}/game/*.cpp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
cd ${WRKSRC} && ${COPYTREE_SHARE} "menuimg themes" ${STAGEDIR}${DATADIR}/
.include <bsd.port.mk>