Date: Tue, 8 Aug 2006 18:17:51 +0200 (CEST) From: Stefan Sperling <freebsd-gnats@stsp.in-berlin.de> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/101663: Makefile fixes for emulators/zsnes - applying for maintainership Message-ID: <200608081617.k78GHpdg099361@ted.stsp.lan> Resent-Message-ID: <200608081620.k78GKHcG094822@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 101663 >Category: ports >Synopsis: Makefile fixes for emulators/zsnes - applying for maintainership >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Aug 08 16:20:16 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Stefan Sperling >Release: FreeBSD 6.1-RELEASE-p2 i386 >Organization: >Environment: System: FreeBSD ted.stsp.lan 6.1-RELEASE-p2 FreeBSD 6.1-RELEASE-p2 #8: Sun Jun 18 01:52:22 CEST 2006 stsp@dice.stsp.lan:/usr/mylocal/obj/usr/src/sys/DICE i386 >Description: The emulators/zsnes port can be built without X11, but the current Makefile of the port does not facilitate this. Neither does it use the options framework. I've updated the Makefile so that X11 and OpenGL support can be configured via make config. I am also applying for maintainership since the port is orphaned and I remembered the call for volunteers a couple of weeks ago. >How-To-Repeat: >Fix: --- Makefile.orig Tue Aug 8 17:28:57 2006 +++ Makefile Tue Aug 8 18:05:04 2006 @@ -7,14 +7,14 @@ PORTNAME= zsnes PORTVERSION= 1.42 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 1 CATEGORIES= emulators MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} DISTNAME= zsnes${PORTVERSION:S/.//}src -MAINTAINER= ports@FreeBSD.org +MAINTAINER= freebsd-ports@stsp.in-berlin.de COMMENT= Intel x86 only Super Nintendo Entertainment System (SNES) Emulator # This must be >= 0.98! @@ -26,9 +26,25 @@ WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION:S/./_/}/src +OPTIONS= X11 "Enable X11 video driver" on +OPTIONS+= OPENGL "Enable OpenGL video driver" off + +.if defined(WITHOUT_X11) +CONFIGURE_ARGS= --without-x +PKGNAMESUFFIX= -nox11 +.else USE_X_PREFIX= yes -USE_SDL= sdl +CONFIGURE_ARGS= --with-x +.endif + +.if defined(WITH_OPENGL) USE_GL= yes +CONFIGURE_ARGS= --enable-opengl +.else +CONFIGURE_ARGS= --disable-opengl +.endif + +USE_SDL= sdl USE_GMAKE= yes GNU_CONFIGURE= yyes CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608081617.k78GHpdg099361>