2000-05-22 15:00:13 +00:00
|
|
|
# New ports collection makefile for: Digger
|
|
|
|
# Date created: 14 April 2000
|
2000-11-01 15:51:11 +00:00
|
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
2000-05-22 15:00:13 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= digger
|
|
|
|
PORTVERSION= 1.0
|
2001-09-22 20:35:22 +00:00
|
|
|
PORTREVISION= 1
|
2000-05-22 15:00:13 +00:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= http://www.digger.org/
|
|
|
|
DISTNAME= ${PORTNAME}-${DIGREL}
|
|
|
|
|
2003-07-29 09:12:37 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= FreeBSD graphics console (VGL) version of the famous Digger game
|
2000-05-22 15:00:13 +00:00
|
|
|
|
|
|
|
.if defined(WITH_SOUND)
|
2001-09-22 20:35:22 +00:00
|
|
|
SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
|
2003-01-02 15:06:10 +00:00
|
|
|
LIB_DEPENDS= SDL-1.1.5:${PORTSDIR}/devel/sdl12
|
2001-09-22 20:35:22 +00:00
|
|
|
MAKE_ENV= SOUND=yes \
|
|
|
|
SDL_CONFIG=${SDL_CONFIG}
|
2000-05-22 15:00:13 +00:00
|
|
|
.endif
|
|
|
|
|
2001-03-11 12:33:02 +00:00
|
|
|
ONLY_FOR_ARCHS= i386 # Alphas don't have libvgl yet...
|
|
|
|
|
2000-05-22 15:00:13 +00:00
|
|
|
DIGREL= 20000407
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${DIGREL}
|
|
|
|
MAKEFILE= Makefile.fbsd
|
|
|
|
|
|
|
|
.if !defined(WITH_SOUND)
|
|
|
|
post-extract:
|
2000-11-01 15:51:11 +00:00
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "Please use \"make -DWITH_SOUND\" if you want to build the game with sound support."
|
|
|
|
@${ECHO_MSG}
|
2000-05-22 15:00:13 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
2000-11-01 15:51:11 +00:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/digger ${PREFIX}/bin
|
|
|
|
@${MKDIR} /var/games/digger
|
2000-05-22 15:00:13 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2000-11-01 15:51:11 +00:00
|
|
|
@${MKDIR} ${PREFIX}/share/doc/digger
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/digger.txt ${PREFIX}/share/doc/digger
|
2000-05-22 15:00:13 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_SOUND)
|
|
|
|
post-install:
|
2000-11-01 15:51:11 +00:00
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "Use \"digger /A\" command to run Digger with sound enabled."
|
|
|
|
@${ECHO_MSG}
|
2000-05-22 15:00:13 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|