freebsd-ports/games/gigalomania/Makefile

49 lines
1.4 KiB
Makefile
Raw Normal View History

# Created by: Pawel Pekala <pawel@FreeBSD.org>
# $FreeBSD$
PORTNAME= gigalomania
2016-01-06 17:46:28 +01:00
PORTVERSION= 0.28
CATEGORIES= games
2016-01-06 17:46:28 +01:00
MASTER_SITES= https://launchpad.net/gigalomania/trunk/${PORTVERSION}/+download/
DISTNAME= ${PORTNAME}src
MAINTAINER= pawel@FreeBSD.org
COMMENT= Open source 2D real time strategy god game
2014-03-10 15:49:26 +01:00
USES= zip
2014-09-06 18:46:55 +02:00
USE_SDL= image2 mixer2 sdl2
PORTDOCS= readme.html
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|CC=g++|CC=${CXX}|' \
-e '/^CCFLAGS/ s|-O2|${CXXFLAGS}|' \
-e 's|-O2 $$(INC)|$$(INC)|' \
-e 's|/usr/X11R6|${LOCALBASE}|' \
${WRKSRC}/Makefile
@${FIND} ${WRKSRC} -exec ${GREP} -q "__linux" {} \; \
2014-09-06 18:46:55 +02:00
-exec ${REINPLACE_CMD} 's|__linux|__${OPSYS}__|' {} \;
@${REINPLACE_CMD} 's|/opt/gigalomania/||g' \
${WRKSRC}/gigalomania.desktop
@${REINPLACE_CMD} 's|/usr/share|${LOCALBASE}/share|g' \
${WRKSRC}/game.cpp \
${WRKSRC}/gamestate.cpp
do-install:
2013-09-28 00:56:06 +02:00
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${DATADIR}
2014-09-06 18:46:55 +02:00
(cd ${WRKSRC} && ${COPYTREE_SHARE} "gfx islands sound" \
${STAGEDIR}${DATADIR})
2013-09-28 00:56:06 +02:00
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop \
${STAGEDIR}${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}64.png \
${STAGEDIR}${PREFIX}/share/pixmaps
2015-12-11 23:18:55 +01:00
do-install-DOCS-on:
2013-09-28 00:56:06 +02:00
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/readme.html ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>