View | Details | Raw Unified | Return to bug 173203
Collapse All | Expand All

(-)./Makefile (-18 / +14 lines)
Lines 1-9 Link Here
1
# New ports collection makefile for:	zsnes
1
# Created by: Stijn Hoop <stijn@win.tue.nl>
2
# Date created:				Fri May  4 13:10:11 CEST 2001
3
# Whom:					Stijn Hoop <stijn@win.tue.nl>
4
#
5
# $FreeBSD: head/emulators/zsnes/Makefile 300896 2012-07-14 13:54:48Z beat $
2
# $FreeBSD: head/emulators/zsnes/Makefile 300896 2012-07-14 13:54:48Z beat $
6
#
7
3
8
PORTNAME=	zsnes
4
PORTNAME=	zsnes
9
PORTVERSION=	1.51
5
PORTVERSION=	1.51
Lines 25-35 Link Here
25
21
26
WRKSRC=		${WRKDIR}/${PORTNAME}_${PORTVERSION:S/./_/}/src
22
WRKSRC=		${WRKDIR}/${PORTNAME}_${PORTVERSION:S/./_/}/src
27
23
28
OPTIONS=	X11 "Enable X11 video driver" on \
24
NO_OPTIONS_SORT=	yes
29
		OPENGL "Enable OpenGL video driver" off \
25
OPTIONS_DEFINE=	X11 OPENGL DEBUGGER JMA AO
30
		DEBUGGER "Enable ZSNES debugger" off \
26
OPTIONS_DEFAULT=	X11 JMA
31
		JMA "Enable JMA support" on \
27
DEBUGGER_DESC=	ZSNES Debugger
32
		LIBAO "Enable libao support" off
28
JMA_DESC=	JMA support
33
29
34
USE_BZIP2=	yes
30
USE_BZIP2=	yes
35
USE_SDL=	sdl
31
USE_SDL=	sdl
Lines 46-79 Link Here
46
42
47
.include <bsd.port.options.mk>
43
.include <bsd.port.options.mk>
48
44
49
.if defined(WITH_DEBUGGER)
45
.if ${PORT_OPTIONS:MDEBUGGER}
50
CONFIGURE_ARGS+=	--enable-debugger
46
CONFIGURE_ARGS+=	--enable-debugger
51
.else
47
.else
52
CONFIGURE_ARGS+=	--disable-debugger
48
CONFIGURE_ARGS+=	--disable-debugger
53
.endif
49
.endif
54
50
55
.if defined(WITH_JMA)
51
.if ${PORT_OPTIONS:MJMA}
56
CONFIGURE_ARGS+=	--enable-jma
52
CONFIGURE_ARGS+=	--enable-jma
57
.else
53
.else
58
CONFIGURE_ARGS+=	--disable-jma
54
CONFIGURE_ARGS+=	--disable-jma
59
.endif
55
.endif
60
56
61
.if defined(WITHOUT_X11)
57
.if ${PORT_OPTIONS:MX11}
58
CONFIGURE_ARGS+=	--with-x
59
.else
62
CONFIGURE_ARGS+=	--without-x
60
CONFIGURE_ARGS+=	--without-x
63
PKGNAMESUFFIX=	-nox11
61
PKGNAMESUFFIX=	-nox11
64
.else
65
CONFIGURE_ARGS+=	--with-x
66
.endif
62
.endif
67
63
68
.if defined(WITH_OPENGL)
64
.if ${PORT_OPTIONS:MOPENGL}
69
USE_GL=		yes
65
USE_GL=		yes
70
CONFIGURE_ARGS+=	--enable-opengl
66
CONFIGURE_ARGS+=	--enable-opengl
71
.else
67
.else
72
CONFIGURE_ARGS+=	--disable-opengl
68
CONFIGURE_ARGS+=	--disable-opengl
73
.endif
69
.endif
74
70
75
.if defined(WITH_LIBAO)
71
.if ${PORT_OPTIONS:MAO}
76
LIB_DEPENDS+=	ao.4:${PORTSDIR}/audio/libao
72
LIB_DEPENDS+=	ao:${PORTSDIR}/audio/libao
77
CONFIGURE_ARGS+=	--enable-libao
73
CONFIGURE_ARGS+=	--enable-libao
78
.else
74
.else
79
CONFIGURE_ARGS+=	--disable-libao
75
CONFIGURE_ARGS+=	--disable-libao

Return to bug 173203