freebsd-ports/games/solarconquest/Makefile

43 lines
1.2 KiB
Makefile
Raw Normal View History

# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD$
PORTNAME= solarconquest
PORTVERSION= 0.2
PORTREVISION= 11
CATEGORIES= games
MASTER_SITES= http://games.sajthelper.com/ \
2013-06-17 17:27:58 +02:00
LOCAL/ehaupt \
http://mirror.amdmi3.ru/distfiles/
DISTNAME= SolarConquest
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Space 2D action game with plenty of shooting
2014-05-08 05:58:56 +02:00
USES= dos2unix
USE_SDL= sdl mixer image
USE_GL= yes
2014-05-08 05:58:56 +02:00
DOS2UNIX_FILES= makefile source/MenuScreen.h source/main.cpp
MAKEFILE= makefile
2013-10-17 02:18:27 +02:00
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:
2013-10-17 02:18:27 +02:00
${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>