aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/darcnes
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2014-07-29 02:34:13 +0800
committeradamw <adamw@FreeBSD.org>2014-07-29 02:34:13 +0800
commit8c6faf396a25f23f5adcd9178409a4fdf0383720 (patch)
treeeb67c50981916624d333231d0b3008d90311fb8b /emulators/darcnes
parenteef665a87458b56d67608066148ba11fd742b09e (diff)
downloadfreebsd-ports-gnome-8c6faf396a25f23f5adcd9178409a4fdf0383720.tar.gz
freebsd-ports-gnome-8c6faf396a25f23f5adcd9178409a4fdf0383720.tar.zst
freebsd-ports-gnome-8c6faf396a25f23f5adcd9178409a4fdf0383720.zip
Use OPTIONS instead of WITH_* and checking whether dependencies are already installed.
Diffstat (limited to 'emulators/darcnes')
-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: