View | Details | Raw Unified | Return to bug 168837 | Differences between
and this patch

Collapse All | Expand All

(-)games/stonesoup/Makefile (-10 / +12 lines)
Lines 34-42 Link Here
34
SUB_FILES=	README.FreeBSD
34
SUB_FILES=	README.FreeBSD
35
PLIST_SUB=	SAVEDIR="${SAVEDIR}"
35
PLIST_SUB=	SAVEDIR="${SAVEDIR}"
36
36
37
OPTIONS=	SOUND		"Sound support"			off \
37
OPTIONS_DEFINE=	SOUND WIZARD LUA_BINDINGS DOCS EXAMPLES
38
		WIZARD		"Wizard mode"			off \
38
39
		LUA_BINDINGS	"Bindings for LUA user scripts"	off
39
SOUND_DESC=	Sound support
40
WIZARD_DESC=	Wizard mode
41
LUA_BINDINGS_DESC=	Bindings for LUA user scripts
40
42
41
MAKE_ARGS=	prefix=${PREFIX} \
43
MAKE_ARGS=	prefix=${PREFIX} \
42
		DATADIR=${DATADIR} \
44
		DATADIR=${DATADIR} \
Lines 60-70 Link Here
60
MAKE_ARGS+=	V=yes
62
MAKE_ARGS+=	V=yes
61
.endif
63
.endif
62
64
63
.if defined(WITHOUT_WIZARD)
65
.if empty(PORT_OPTIONS:MWIZARD)
64
MAKE_ARGS+=	NOWIZARD=y
66
MAKE_ARGS+=	NOWIZARD=y
65
.endif
67
.endif
66
68
67
.if defined(WITH_SDL)
69
.if ${PORT_OPTIONS:MSDL}
68
CONFLICTS+=	${PORTNAME}-[0-9]*
70
CONFLICTS+=	${PORTNAME}-[0-9]*
69
MAKE_ARGS+=	TILES=y
71
MAKE_ARGS+=	TILES=y
70
PLIST_SUB+=	SDL=""
72
PLIST_SUB+=	SDL=""
Lines 79-94 Link Here
79
PLIST_SUB+=	SDL="@comment "
81
PLIST_SUB+=	SDL="@comment "
80
.endif
82
.endif
81
83
82
.if defined(WITH_SOUND)
84
.if ${PORT_OPTIONS:MSOUND}
83
RUN_DEPENDS+=	sox:${PORTSDIR}/audio/sox
85
RUN_DEPENDS+=	sox:${PORTSDIR}/audio/sox
84
.endif
86
.endif
85
87
86
.if defined(WITHOUT_LUA_BINDINGS)
88
.if empty(PORT_OPTIONS:MLUA_BINDINGS)
87
MAKE_ARGS+=	NO_LUA_BINDINGS=yes
89
MAKE_ARGS+=	NO_LUA_BINDINGS=yes
88
.endif
90
.endif
89
91
90
post-patch:
92
post-patch:
91
.if defined(WITH_SOUND)
93
.if ${PORT_OPTIONS:MSOUND}
92
	@${REINPLACE_CMD} -e "s,%%LOCALBASE%%,${LOCALBASE}," ${WRKSRC}/AppHdr.h
94
	@${REINPLACE_CMD} -e "s,%%LOCALBASE%%,${LOCALBASE}," ${WRKSRC}/AppHdr.h
93
	@${REINPLACE_CMD} -e "s,%%SOUND%%,," ${WRKSRC}/AppHdr.h
95
	@${REINPLACE_CMD} -e "s,%%SOUND%%,," ${WRKSRC}/AppHdr.h
94
.else
96
.else
Lines 96-106 Link Here
96
.endif
98
.endif
97
99
98
post-install:
100
post-install:
99
.if !defined(NOPORTDOCS)
101
.if ${PORT_OPTIONS:MDOCS}
100
	${MKDIR} ${DOCSDIR}
102
	${MKDIR} ${DOCSDIR}
101
	${INSTALL_DATA} ${WRKDIR}/README.FreeBSD ${DOCSDIR}
103
	${INSTALL_DATA} ${WRKDIR}/README.FreeBSD ${DOCSDIR}
102
.endif
104
.endif
103
.if !defined(NOPORTEXAMPLES)
105
.if ${PORT_OPTIONS:MEXAMPLES}
104
	${MKDIR} ${EXAMPLESDIR}
106
	${MKDIR} ${EXAMPLESDIR}
105
	${INSTALL_DATA} ${DATADIR}/settings/init.txt ${EXAMPLESDIR}/sample.crawlrc
107
	${INSTALL_DATA} ${DATADIR}/settings/init.txt ${EXAMPLESDIR}/sample.crawlrc
106
.endif
108
.endif
(-)games/stonesoup-sdl/Makefile (-1 / +1 lines)
Lines 5-11 Link Here
5
# $FreeBSD: ports/games/stonesoup-sdl/Makefile,v 1.1 2010/08/08 18:04:52 rene Exp $
5
# $FreeBSD: ports/games/stonesoup-sdl/Makefile,v 1.1 2010/08/08 18:04:52 rene Exp $
6
#
6
#
7
7
8
WITH_SDL=	yes
8
PORT_OPTIONS+=	SDL
9
9
10
MASTERDIR=	${.CURDIR}/../stonesoup
10
MASTERDIR=	${.CURDIR}/../stonesoup
11
11

Return to bug 168837