diff options
author | shaun <shaun@FreeBSD.org> | 2006-08-09 09:46:18 +0800 |
---|---|---|
committer | shaun <shaun@FreeBSD.org> | 2006-08-09 09:46:18 +0800 |
commit | a7bd0e64bd6d54c9ac08a6ef1b66a2fd4f8b77c1 (patch) | |
tree | e173ce0d1b8819bf0dde2596b3dcbfbe198eaeeb /emulators/zsnes | |
parent | 8ebc95274103aa174de61a92e080b9a02a2142af (diff) | |
download | freebsd-ports-graphics-a7bd0e64bd6d54c9ac08a6ef1b66a2fd4f8b77c1.tar.gz freebsd-ports-graphics-a7bd0e64bd6d54c9ac08a6ef1b66a2fd4f8b77c1.tar.zst freebsd-ports-graphics-a7bd0e64bd6d54c9ac08a6ef1b66a2fd4f8b77c1.zip |
- Add OPTIONS for X11/OpenGL, as these are not mandatory dependencies.
- Pass maintainership to submitter.
PR: ports/101663
Submitted by: Stefan Sperling <freebsd-gnats@stsp.in-berlin.de>
Diffstat (limited to 'emulators/zsnes')
-rw-r--r-- | emulators/zsnes/Makefile | 29 |
1 files changed, 23 insertions, 6 deletions
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 <bsd.port.pre.mk> + +.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 <bsd.port.mk> +.include <bsd.port.post.mk> |