blob: 866eac1814af363ee1bb2c4c3b5049b5225eaaae (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# New ports collection makefile for: rocksndiamonds
# Date created: 27 May 1999
# Whom: Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= rocksndiamonds
PORTVERSION= 2.1.1
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://www.artsoft.org/RELEASES/unix/rocksndiamonds/ \
http://homepages.compuserve.de/rocksndiamonds/
MAINTAINER= ports@FreeBSD.org
COMMENT= Colorful Boulderdash'n'Emerald Mine'n'Sokoban'n'Stuff
.if defined(WITH_SDL)
USE_SDL= image mixer sdl
MAKE_ARGS+= sdl
.endif
USE_XLIB= yes
USE_GMAKE= yes
USE_REINPLACE= yes
MAKE_ENV+= RO_GAME_DIR=${GAME_DIR} RW_GAME_DIR=${GAME_DIR}/scores \
X11_PATH=${X11BASE} OPTIONS="${CFLAGS}"
.if ${MACHINE_ARCH} == "alpha"
MAKE_ENV+= JOYSTICK="-DNO_JOYSTICK"
.endif
GAME_DIR=${PREFIX}/share/rocksndiamonds
DOC_DIR=${PREFIX}/share/doc/rocksndiamonds
.if defined(WITH_SDL)
pre-patch:
@${REINPLACE_CMD} -e 's:sdl-config:sdl11-config:g' ${WRKSRC}/src/Makefile
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/rocksndiamonds ${PREFIX}/bin
@${MKDIR} ${GAME_DIR}
@cd ${WRKSRC}; tar cpf - graphics levels scores sounds | \
(cd ${GAME_DIR}; tar xpf -)
@${CHMOD} 777 ${GAME_DIR}/scores
.if !defined(NOPPORTDOCS)
@${MKDIR} ${DOC_DIR}
.for docfile in CHANGES CREDITS HARDWARE README TODO
${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOC_DIR}
.endfor
.endif
.include <bsd.port.mk>
|