ports/137562: [MAINTAINER] emulators/zsnes: Add libao option to OPTIONS, slight Makefile cleanup
Naram Qashat
cyberbotx at cyberbotx.com
Sat Aug 8 08:20:04 UTC 2009
>Number: 137562
>Category: ports
>Synopsis: [MAINTAINER] emulators/zsnes: Add libao option to OPTIONS, slight Makefile cleanup
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Sat Aug 08 08:20:02 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Naram Qashat
>Release: FreeBSD 7.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD kirby.cyberbotx.com 7.2-STABLE FreeBSD 7.2-STABLE #0: Wed Jun 3 04:24:13 EDT
>Description:
This adds a knob to OPTIONS for libao support. I also did a bit of cleanup
on the Makefile to keep things more consistent all around.
Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:
--- zsnes-1.51_3,1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/emulators/zsnes/Makefile /kirby/shared/ports/zsnes/Makefile
--- /usr/ports/emulators/zsnes/Makefile 2009-02-01 11:48:15.000000000 -0500
+++ /kirby/shared/ports/zsnes/Makefile 2009-08-08 04:16:51.000000000 -0400
@@ -25,10 +25,11 @@
WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION:S/./_/}/src
-OPTIONS= X11 "Enable X11 video driver" on \
- OPENGL "Enable OpenGL video driver" off \
- DEBUGGER "Enable ZSNES debugger" off \
- JMA "Enable JMA support" on
+OPTIONS= X11 "Enable X11 video driver" on \
+ OPENGL "Enable OpenGL video driver" off \
+ DEBUGGER "Enable ZSNES debugger" off \
+ JMA "Enable JMA support" on \
+ LIBAO "Enable libao support" off
USE_BZIP2= yes
USE_SDL= sdl
@@ -47,36 +48,40 @@
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 602000
-IGNORE= needs zlib >= 1.2.3 ,it is available on FreeBSD >= 6.2
+IGNORE= needs zlib >= 1.2.3, it is available on FreeBSD >= 6.2
.endif
.if defined(WITH_DEBUGGER)
-CONFIGURE_ARGS+=--enable-debugger
+CONFIGURE_ARGS+= --enable-debugger
.else
-CONFIGURE_ARGS+=--disable-debugger
+CONFIGURE_ARGS+= --disable-debugger
.endif
.if defined(WITH_JMA)
-CONFIGURE_ARGS+=--enable-jma
+CONFIGURE_ARGS+= --enable-jma
.else
-CONFIGURE_ARGS+=--disable-jma
+CONFIGURE_ARGS+= --disable-jma
.endif
.if defined(WITHOUT_X11)
-CONFIGURE_ARGS+=--without-x
+CONFIGURE_ARGS+= --without-x
PKGNAMESUFFIX= -nox11
.else
-CONFIGURE_ARGS+=--with-x
-CFLAGS+= -I${LOCALBASE}/include
-CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
+CONFIGURE_ARGS+= --with-x
.endif
.if defined(WITH_OPENGL)
USE_GL= yes
-CONFIGURE_ARGS+=--enable-opengl
+CONFIGURE_ARGS+= --enable-opengl
+.else
+CONFIGURE_ARGS+= --disable-opengl
+.endif
+
+.if defined(WITH_LIBAO)
+LIB_DEPENDS+= ao.3:${PORTSDIR}/audio/libao
+CONFIGURE_ARGS+= --enable-libao
.else
-CONFIGURE_ARGS+=--disable-opengl
+CONFIGURE_ARGS+= --disable-libao
.endif
post-patch:
--- zsnes-1.51_3,1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list