1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/games/gigalomania/Makefile
Pawel Pekala 3ff81c6e48 Update to version 0.26
Feature safe:	yes
2013-04-16 18:03:03 +00:00

52 lines
1.5 KiB
Makefile

# Created by: Pawel Pekala <pawel@FreeBSD.org>
# $FreeBSD$
PORTNAME= gigalomania
PORTVERSION= 0.26
CATEGORIES= games
MASTER_SITES= https://launchpadlibrarian.net/135701637/
DISTNAME= ${PORTNAME}src
MAINTAINER= pawel@FreeBSD.org
COMMENT= Open source 2D real time strategy god game
USE_ZIP= yes
USE_SDL= image mixer sdl
PORTDOCS= readme.html
.include <bsd.port.options.mk>
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" {} \; \
-exec ${REINPLACE_CMD} 's|__linux|__FreeBSD__|' {} \;
@${REINPLACE_CMD} 's|/opt/gigalomania/||g' \
${WRKSRC}/gigalomania.desktop \
${WRKSRC}/gigalomania_fullscreen.desktop
@${REINPLACE_CMD} 's|/usr/share|${LOCALBASE}/share|g' \
${WRKSRC}/game.cpp \
${WRKSRC}/gamestate.cpp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${MKDIR} ${DATADIR}
.for dir in gfx islands sound
cd ${WRKSRC} && ${COPYTREE_SHARE} ${dir} ${DATADIR}
.endfor
${MKDIR} ${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop ${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}_fullscreen.desktop \
${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}64.png ${PREFIX}/share/pixmaps
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/readme.html ${DOCSDIR}
.endif
.include <bsd.port.mk>