aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-07-28 18:34:13 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-07-28 18:34:13 +0000
commit750abee458c124bbad8f95b845267d0f50b930f9 (patch)
treeeb67c50981916624d333231d0b3008d90311fb8b
parent122416459e86bc2462564ad4c4404e64bbeee618 (diff)
downloadports-750abee458c124bbad8f95b845267d0f50b930f9.tar.gz
ports-750abee458c124bbad8f95b845267d0f50b930f9.zip
Notes
-rw-r--r--emulators/darcnes/Makefile19
1 files changed, 12 insertions, 7 deletions
diff --git a/emulators/darcnes/Makefile b/emulators/darcnes/Makefile
index 19ac69e5260d..5b9f4b76a257 100644
--- a/emulators/darcnes/Makefile
+++ b/emulators/darcnes/Makefile
@@ -9,7 +9,6 @@ MASTER_SITES= http://www.dridus.com/~nyef/darcnes/download/ \
${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= grembo
DISTNAME= dn${PORTVERSION}
-EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= multi-system emulator
@@ -19,11 +18,15 @@ NO_CDROM= Commercial use is restricted
WRKSRC= ${WRKDIR}/${PORTNAME}
WANT_GNOME= yes
-USES= gmake
+USES= gmake tar:tgz
MAKE_ARGS= CC="${CC}" TARGET_CC="${CC}" CXX="${CXX}" TARGET_CXX="${CXX}" \
AS="${AS}" TARGET_AS="${CC}" LD="${LD}" TARGET_LD="${CC}"
OPTIONS_DEFINE= DOCS
+OPTIONS_SINGLE= BACKEND
+OPTIONS_SINGLE_BACKEND= X11 GTK1 SVGALIB
+OPTIONS_DEFAULT=X11
+BACKEND_DESC= GUI backend
.include <bsd.port.pre.mk>
@@ -33,18 +36,20 @@ MAKE_ARGS+= C_ONLY=-DC_ONLY
MAKE_ARGS+= MACH_TYPES=-DMACH_TYPES=\\\"types-i386.h\\\"
.endif
-.if ${HAVE_GNOME:Mgtk12}!=""
+.if ${PORT_OPTIONS:MGTK1}
USE_GNOME= gtk12
MAKE_ARGS+= TARGET=Linux_GTK
PKGNAMESUFFIX= -gtk
-.else
-.if defined(WITH_SVGALIB)
+.endif
+
+.if ${PORT_OPTIONS:MSVGALIB}
LIB_DEPENDS+= libvga.so:${PORTSDIR}/graphics/svgalib
MAKE_ARGS+= TARGET=Linux_svgalib
PKGNAMESUFFIX= -svgalib
-.else
-USE_XORG= x11 xaw xext xmu xt
.endif
+
+.if ${PORT_OPTIONS:MX11}
+USE_XORG= x11 xaw xext xmu xt
.endif
post-patch: