mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
0e050332e9
- when outputing character to the screen check that we actually have a character for the charcode supplied. This fixes potential segfault when user types in some character that isn't in the table; - don't hog all CPU time when playing level completion sound. This also makes level completion sound much more less jerky; - by default use sdl12 library instead of sdl10, because sdl10 is at the end of its lifecycle and would be retired RSN. Bump PPORTREVISION to indicate that major changes were made.
53 lines
1.2 KiB
Makefile
53 lines
1.2 KiB
Makefile
# New ports collection makefile for: Digger
|
|
# Date created: 14 April 2000
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= digger
|
|
PORTVERSION= 1.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://www.digger.org/
|
|
DISTNAME= ${PORTNAME}-${DIGREL}
|
|
|
|
MAINTAINER= sobomax@FreeBSD.org
|
|
|
|
.if defined(WITH_SOUND)
|
|
SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
|
|
LIB_DEPENDS= SDL-1.1.3:${PORTSDIR}/devel/sdl12
|
|
MAKE_ENV= SOUND=yes \
|
|
SDL_CONFIG=${SDL_CONFIG}
|
|
.endif
|
|
|
|
ONLY_FOR_ARCHS= i386 # Alphas don't have libvgl yet...
|
|
|
|
DIGREL= 20000407
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${DIGREL}
|
|
MAKEFILE= Makefile.fbsd
|
|
|
|
.if !defined(WITH_SOUND)
|
|
post-extract:
|
|
@${ECHO_MSG}
|
|
@${ECHO_MSG} "Please use \"make -DWITH_SOUND\" if you want to build the game with sound support."
|
|
@${ECHO_MSG}
|
|
.endif
|
|
|
|
do-install:
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/digger ${PREFIX}/bin
|
|
@${MKDIR} /var/games/digger
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${PREFIX}/share/doc/digger
|
|
@${INSTALL_MAN} ${WRKSRC}/digger.txt ${PREFIX}/share/doc/digger
|
|
.endif
|
|
|
|
.if defined(WITH_SOUND)
|
|
post-install:
|
|
@${ECHO_MSG}
|
|
@${ECHO_MSG} "Use \"digger /A\" command to run Digger with sound enabled."
|
|
@${ECHO_MSG}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|