|
Lines 25-34
Link Here
|
| 25 |
|
25 |
|
| 26 |
WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION:S/./_/}/src |
26 |
WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION:S/./_/}/src |
| 27 |
|
27 |
|
| 28 |
OPTIONS= X11 "Enable X11 video driver" on \ |
28 |
OPTIONS= X11 "Enable X11 video driver" on \ |
| 29 |
OPENGL "Enable OpenGL video driver" off \ |
29 |
OPENGL "Enable OpenGL video driver" off \ |
| 30 |
DEBUGGER "Enable ZSNES debugger" off \ |
30 |
DEBUGGER "Enable ZSNES debugger" off \ |
| 31 |
JMA "Enable JMA support" on |
31 |
JMA "Enable JMA support" on \ |
|
|
32 |
LIBAO "Enable libao support" off |
| 32 |
|
33 |
|
| 33 |
USE_BZIP2= yes |
34 |
USE_BZIP2= yes |
| 34 |
USE_SDL= sdl |
35 |
USE_SDL= sdl |
|
Lines 47-82
Link Here
|
| 47 |
.include <bsd.port.pre.mk> |
48 |
.include <bsd.port.pre.mk> |
| 48 |
|
49 |
|
| 49 |
.if ${OSVERSION} < 602000 |
50 |
.if ${OSVERSION} < 602000 |
| 50 |
IGNORE= needs zlib >= 1.2.3 ,it is available on FreeBSD >= 6.2 |
51 |
IGNORE= needs zlib >= 1.2.3, it is available on FreeBSD >= 6.2 |
| 51 |
.endif |
52 |
.endif |
| 52 |
|
53 |
|
| 53 |
.if defined(WITH_DEBUGGER) |
54 |
.if defined(WITH_DEBUGGER) |
| 54 |
CONFIGURE_ARGS+=--enable-debugger |
55 |
CONFIGURE_ARGS+= --enable-debugger |
| 55 |
.else |
56 |
.else |
| 56 |
CONFIGURE_ARGS+=--disable-debugger |
57 |
CONFIGURE_ARGS+= --disable-debugger |
| 57 |
.endif |
58 |
.endif |
| 58 |
|
59 |
|
| 59 |
.if defined(WITH_JMA) |
60 |
.if defined(WITH_JMA) |
| 60 |
CONFIGURE_ARGS+=--enable-jma |
61 |
CONFIGURE_ARGS+= --enable-jma |
| 61 |
.else |
62 |
.else |
| 62 |
CONFIGURE_ARGS+=--disable-jma |
63 |
CONFIGURE_ARGS+= --disable-jma |
| 63 |
.endif |
64 |
.endif |
| 64 |
|
65 |
|
| 65 |
.if defined(WITHOUT_X11) |
66 |
.if defined(WITHOUT_X11) |
| 66 |
CONFIGURE_ARGS+=--without-x |
67 |
CONFIGURE_ARGS+= --without-x |
| 67 |
PKGNAMESUFFIX= -nox11 |
68 |
PKGNAMESUFFIX= -nox11 |
| 68 |
.else |
69 |
.else |
| 69 |
CONFIGURE_ARGS+=--with-x |
70 |
CONFIGURE_ARGS+= --with-x |
| 70 |
CFLAGS+= -I${LOCALBASE}/include |
|
|
| 71 |
CPPFLAGS+= -I${LOCALBASE}/include |
| 72 |
LDFLAGS+= -L${LOCALBASE}/lib |
| 73 |
.endif |
71 |
.endif |
| 74 |
|
72 |
|
| 75 |
.if defined(WITH_OPENGL) |
73 |
.if defined(WITH_OPENGL) |
| 76 |
USE_GL= yes |
74 |
USE_GL= yes |
| 77 |
CONFIGURE_ARGS+=--enable-opengl |
75 |
CONFIGURE_ARGS+= --enable-opengl |
|
|
76 |
.else |
| 77 |
CONFIGURE_ARGS+= --disable-opengl |
| 78 |
.endif |
| 79 |
|
| 80 |
.if defined(WITH_LIBAO) |
| 81 |
LIB_DEPENDS+= ao.3:${PORTSDIR}/audio/libao |
| 82 |
CONFIGURE_ARGS+= --enable-libao |
| 78 |
.else |
83 |
.else |
| 79 |
CONFIGURE_ARGS+=--disable-opengl |
84 |
CONFIGURE_ARGS+= --disable-libao |
| 80 |
.endif |
85 |
.endif |
| 81 |
|
86 |
|
| 82 |
post-patch: |
87 |
post-patch: |