Tweak games/kreversi version 4.14.3
[dports.git] / games / solarconquest / Makefile
1 # Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
2 # $FreeBSD$
3
4 PORTNAME=       solarconquest
5 PORTVERSION=    0.2
6 PORTREVISION=   11
7 CATEGORIES=     games
8 MASTER_SITES=   http://games.sajthelper.com/ \
9                 LOCAL/ehaupt \
10                 http://mirror.amdmi3.ru/distfiles/
11 DISTNAME=       SolarConquest
12
13 MAINTAINER=     amdmi3@FreeBSD.org
14 COMMENT=        Space 2D action game with plenty of shooting
15
16 USES=           dos2unix
17 USE_SDL=        sdl mixer image
18 USE_GL=         yes
19 DOS2UNIX_FILES= makefile source/MenuScreen.h source/main.cpp
20
21 MAKEFILE=       makefile
22
23 PLIST_FILES=    bin/${PORTNAME}
24 PORTDATA=       *
25
26 post-patch:
27         @${REINPLACE_CMD} -e 's|images/|${DATADIR}/images/|' \
28                 ${WRKSRC}/source/main.cpp
29         @${REINPLACE_CMD} -e 's|shapes/|${DATADIR}/shapes/|' \
30                 ${WRKSRC}/source/main.cpp
31         @${REINPLACE_CMD} -e 's|settings.dat|.solarconquest.rc|' \
32                 ${WRKSRC}/source/Common.h
33
34 do-install:
35         ${INSTALL_PROGRAM} ${WRKSRC}/solar ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
36         ${MKDIR} ${STAGEDIR}${DATADIR}/shapes
37         ${INSTALL_DATA} ${WRKSRC}/shapes/* ${STAGEDIR}${DATADIR}/shapes
38         ${MKDIR} ${STAGEDIR}${DATADIR}/images/fonts
39         ${INSTALL_DATA} ${WRKSRC}/images/*.png ${STAGEDIR}${DATADIR}/images
40         ${INSTALL_DATA} ${WRKSRC}/images/fonts/* ${STAGEDIR}${DATADIR}/images/fonts
41
42 .include <bsd.port.mk>