1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/games/digger-vgl/Makefile
Danilo Egea Gondolfo af4d19b9c7 - Add stage support
- Add SOUND option
2013-11-01 03:07:22 +00:00

41 lines
933 B
Makefile

# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
# $FreeBSD$
PORTNAME= digger
PORTVERSION= 20020314
PORTREVISION= 3
CATEGORIES= games
MASTER_SITES= http://www.digger.org/
MAINTAINER= ports@FreeBSD.org
COMMENT= FreeBSD graphics console (VGL) version of the famous Digger game
ONLY_FOR_ARCHS= i386 # Alphas don't have libvgl yet...
MAKEFILE= Makefile.fbsd
OPTIONS_DEFINE= SOUND
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MSOUND}
USE_SDL= yes
MAKE_ENV= SOUND=yes
.endif
post-patch:
@${REINPLACE_CMD} -e 's|Software|Software\\n\\|g' ${WRKSRC}/alpha.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/digger ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}/var/games/digger
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/digger.txt ${STAGEDIR}${DOCSDIR}
.if ${PORT_OPTIONS:MSOUND}
@${ECHO_MSG}
@${ECHO_MSG} "Use \"digger /A\" command to run Digger with sound enabled."
@${ECHO_MSG}
.endif
.include <bsd.port.mk>