mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
d4041784dc
Approved by: portmgr (bdrewery)
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= stransball2
|
|
PORTVERSION= 1.5
|
|
PORTREVISION= 6
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://mirror.amdmi3.ru/distfiles/ \
|
|
http://braingames.bugreport.nl/stransball2/
|
|
DISTNAME= ${PORTNAME}-v${PORTVERSION:C/\.//}-linux
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
COMMENT= A sequel to Transball and Transball 2 THRUST-type games
|
|
|
|
LIB_DEPENDS= SGE:${PORTSDIR}/devel/sdl_sge
|
|
|
|
USE_ZIP= yes
|
|
USE_GMAKE= yes
|
|
USE_SDL= sdl image mixer sound
|
|
USE_DOS2UNIX= yes
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/sources
|
|
|
|
PORTDOCS= readme.txt
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-extract:
|
|
@${RM} -f ${WRKSRC}/sound/WS_FTP.LOG
|
|
|
|
post-patch:
|
|
@${FIND} ${BUILD_WRKSRC} -name '*.cpp' | ${XARGS} ${REINPLACE_CMD} \
|
|
-e 's|demos/|${DATADIR}/&|g; s|graphics/|${DATADIR}/&|g; \
|
|
s|maps/|${DATADIR}/&|g; s|sound/|${DATADIR}/&|g; \
|
|
s|"maps"|"${DATADIR}/maps"|g'
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/stransball2 ${PREFIX}/bin
|
|
${MKDIR} ${DATADIR}
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} 'graphics sound maps demos' ${DATADIR}
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
${MKDIR} ${DOCSDIR}
|
|
.for f in ${PORTDOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|