aboutsummaryrefslogtreecommitdiff
path: root/games/solarconquest/Makefile
blob: 7d33b53622ab8ff525e546e45491e2f6f85b18e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>

PORTNAME=	solarconquest
PORTVERSION=	0.2
PORTREVISION=	12
CATEGORIES=	games
MASTER_SITES=	http://games.sajthelper.com/ \
		LOCAL/ehaupt \
		http://mirror.amdmi3.ru/distfiles/
DISTNAME=	SolarConquest

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	Space 2D action game with plenty of shooting

USES=		gl dos2unix sdl
USE_SDL=	sdl mixer image
USE_GL=		yes
DOS2UNIX_FILES=	makefile source/MenuScreen.h source/main.cpp

MAKEFILE=	makefile

PLIST_FILES=	bin/${PORTNAME}
PORTDATA=	*

post-patch:
	@${REINPLACE_CMD} -e 's|images/|${DATADIR}/images/|' \
		${WRKSRC}/source/main.cpp
	@${REINPLACE_CMD} -e 's|shapes/|${DATADIR}/shapes/|' \
		${WRKSRC}/source/main.cpp
	@${REINPLACE_CMD} -e 's|settings.dat|.solarconquest.rc|' \
		${WRKSRC}/source/Common.h

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/solar ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
	${MKDIR} ${STAGEDIR}${DATADIR}/shapes
	${INSTALL_DATA} ${WRKSRC}/shapes/* ${STAGEDIR}${DATADIR}/shapes
	${MKDIR} ${STAGEDIR}${DATADIR}/images/fonts
	${INSTALL_DATA} ${WRKSRC}/images/*.png ${STAGEDIR}${DATADIR}/images
	${INSTALL_DATA} ${WRKSRC}/images/fonts/* ${STAGEDIR}${DATADIR}/images/fonts

.include <bsd.port.mk>