2000-05-22 17:00:13 +02:00
|
|
|
# New ports collection makefile for: Digger
|
|
|
|
# Date created: 14 April 2000
|
2000-11-01 16:51:11 +01:00
|
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
2000-05-22 17:00:13 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= digger
|
2003-08-05 08:00:06 +02:00
|
|
|
PORTVERSION= 20020314
|
2000-05-22 17:00:13 +02:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= http://www.digger.org/
|
2003-08-05 08:00:06 +02:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}
|
2000-05-22 17:00:13 +02:00
|
|
|
|
2003-07-29 11:12:37 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= FreeBSD graphics console (VGL) version of the famous Digger game
|
2000-05-22 17:00:13 +02:00
|
|
|
|
2001-03-11 13:33:02 +01:00
|
|
|
ONLY_FOR_ARCHS= i386 # Alphas don't have libvgl yet...
|
|
|
|
|
2000-05-22 17:00:13 +02:00
|
|
|
MAKEFILE= Makefile.fbsd
|
2003-10-15 11:23:20 +02:00
|
|
|
USE_REINPLACE= yes
|
2000-05-22 17:00:13 +02:00
|
|
|
|
2003-08-05 08:00:06 +02:00
|
|
|
.if defined(WITH_SOUND)
|
|
|
|
USE_SDL= yes
|
|
|
|
MAKE_ENV= SOUND=yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-everything::
|
2000-05-22 17:00:13 +02:00
|
|
|
.if !defined(WITH_SOUND)
|
2003-08-05 08:00:06 +02:00
|
|
|
@${ECHO_MSG} ""
|
2000-11-01 16:51:11 +01:00
|
|
|
@${ECHO_MSG} "Please use \"make -DWITH_SOUND\" if you want to build the game with sound support."
|
2003-08-05 08:00:06 +02:00
|
|
|
@${ECHO_MSG} ""
|
2000-05-22 17:00:13 +02:00
|
|
|
.endif
|
|
|
|
|
2003-10-15 11:23:20 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|Software|Software\\n\\|g' ${WRKSRC}/alpha.c
|
|
|
|
|
2000-05-22 17:00:13 +02:00
|
|
|
do-install:
|
2003-08-05 08:00:06 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/digger ${PREFIX}/bin
|
2000-11-01 16:51:11 +01:00
|
|
|
@${MKDIR} /var/games/digger
|
2000-05-22 17:00:13 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2003-08-05 08:00:06 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/digger.txt ${DOCSDIR}
|
2000-05-22 17:00:13 +02:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_SOUND)
|
2000-11-01 16:51:11 +01:00
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "Use \"digger /A\" command to run Digger with sound enabled."
|
|
|
|
@${ECHO_MSG}
|
2000-05-22 17:00:13 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|