2013-02-21 00:30:15 +01:00
|
|
|
# Created by: Pawel Pekala <pawel@FreeBSD.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gigalomania
|
2016-01-06 17:46:28 +01:00
|
|
|
PORTVERSION= 0.28
|
2013-02-21 00:30:15 +01:00
|
|
|
CATEGORIES= games
|
2016-01-06 17:46:28 +01:00
|
|
|
MASTER_SITES= https://launchpad.net/gigalomania/trunk/${PORTVERSION}/+download/
|
2013-02-21 00:30:15 +01:00
|
|
|
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
|
2013-02-21 00:30:15 +01:00
|
|
|
|
|
|
|
PORTDOCS= readme.html
|
|
|
|
|
2013-07-10 21:41:30 +02:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2013-02-21 00:30:15 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|CC=g++|CC=${CXX}|' \
|
2013-04-16 20:03:03 +02:00
|
|
|
-e '/^CCFLAGS/ s|-O2|${CXXFLAGS}|' \
|
|
|
|
-e 's|-O2 $$(INC)|$$(INC)|' \
|
2013-02-21 00:30:15 +01:00
|
|
|
-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}__|' {} \;
|
2013-02-21 00:30:15 +01:00
|
|
|
@${REINPLACE_CMD} 's|/opt/gigalomania/||g' \
|
2015-10-08 17:11:28 +02:00
|
|
|
${WRKSRC}/gigalomania.desktop
|
2013-02-21 00:30:15 +01:00
|
|
|
@${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}
|
2013-02-21 00:30:15 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|