From a7bd0e64bd6d54c9ac08a6ef1b66a2fd4f8b77c1 Mon Sep 17 00:00:00 2001 From: shaun Date: Wed, 9 Aug 2006 01:46:18 +0000 Subject: - Add OPTIONS for X11/OpenGL, as these are not mandatory dependencies. - Pass maintainership to submitter. PR: ports/101663 Submitted by: Stefan Sperling --- emulators/zsnes/Makefile | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) (limited to 'emulators/zsnes') diff --git a/emulators/zsnes/Makefile b/emulators/zsnes/Makefile index 9463b0a2e33..44b2ca85baf 100644 --- a/emulators/zsnes/Makefile +++ b/emulators/zsnes/Makefile @@ -7,14 +7,14 @@ PORTNAME= zsnes PORTVERSION= 1.42 -PORTREVISION= 1 +PORTREVISION= 3 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,11 +26,12 @@ ONLY_FOR_ARCHS= i386 WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION:S/./_/}/src -USE_X_PREFIX= yes +OPTIONS= X11 "Enable X11 video driver" on \ + OPENGL "Enable OpenGL video driver" off + USE_SDL= sdl -USE_GL= yes USE_GMAKE= yes -GNU_CONFIGURE= yyes +GNU_CONFIGURE= yes CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" ALL_TARGET= ALL @@ -41,6 +42,22 @@ PLIST_FILES= bin/zsnes CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib +.include + +.if defined(WITHOUT_X11) +CONFIGURE_ARGS+=--without-x +PKGNAMESUFFIX= -nox11 +.else +CONFIGURE_ARGS+=--with-x +.endif + +.if defined(WITH_OPENGL) +USE_GL= yes +CONFIGURE_ARGS+=--enable-opengl +.else +CONFIGURE_ARGS+=--disable-opengl +.endif + post-patch: @${REINPLACE_CMD} -e \ 's| -pipe||g ; \ @@ -56,4 +73,4 @@ do-install: ${INSTALL_PROGRAM} ${WRKSRC}/zsnes ${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/linux/zsnes.1 ${MANPREFIX}/man/man1 -.include +.include -- cgit