Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Dec 2015 00:41:50 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r404609 - head/emulators/mupen64plus-plugins
Message-ID:  <201512280041.tBS0fodh065946@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Mon Dec 28 00:41:50 2015
New Revision: 404609
URL: https://svnweb.freebsd.org/changeset/ports/404609

Log:
  - Convert to USES=metaport
  - Simplify options handling
  
  PR:		201637
  Submitted by:	s3erios@gmail.com
  Approved by:	maintainer timeout (acm, 5 months)

Modified:
  head/emulators/mupen64plus-plugins/Makefile

Modified: head/emulators/mupen64plus-plugins/Makefile
==============================================================================
--- head/emulators/mupen64plus-plugins/Makefile	Mon Dec 28 00:41:45 2015	(r404608)
+++ head/emulators/mupen64plus-plugins/Makefile	Mon Dec 28 00:41:50 2015	(r404609)
@@ -5,14 +5,13 @@ PORTNAME=	mupen64plus
 PORTVERSION=	2.5
 PORTREVISION=	0
 CATEGORIES=	emulators
-MASTER_SITES=	# empty
 PKGNAMESUFFIX=	-plugins
-DISTFILES=	# empty
-EXTRACT_ONLY=	# empty
 
 MAINTAINER?=	acm@FreeBSD.org
 COMMENT=	Third party plugins for Mupen64plus
 
+USES=		metaport
+
 OPTIONS_DEFINE=	VIDEO_ARACHNOID VIDEO_GLIDE64 VIDEO_Z64 RSP_Z64 RSP_CXD4
 VIDEO_ARACHNOID_DESC=	Arachnoid video plugin
 VIDEO_GLIDE64_DESC=	Glide64 video plugin
@@ -22,33 +21,8 @@ RSP_CXD4_DESC=	cxd4 RSP plugin
 
 OPTIONS_DEFAULT=	VIDEO_ARACHNOID VIDEO_GLIDE64 VIDEO_Z64 RSP_Z64 RSP_CXD4
 
-.include <bsd.port.pre.mk>
-
-# Graphics plugins
-.if ${PORT_OPTIONS:MVIDEO_ARACHNOID}
-RUN_DEPENDS+=	${LOCALBASE}/lib/${PORTNAME}/mupen64plus-video-arachnoid.so:${PORTSDIR}/emulators/mupen64plus-video-arachnoid
-.endif
-
-.if ${PORT_OPTIONS:MVIDEO_GLIDE64}
-RUN_DEPENDS+=	${LOCALBASE}/lib/${PORTNAME}/mupen64plus-video-glide64.so:${PORTSDIR}/emulators/mupen64plus-video-glide64
-.endif
-
-.if ${PORT_OPTIONS:MVIDEO_Z64}
-RUN_DEPENDS+=	${LOCALBASE}/lib/${PORTNAME}/mupen64plus-video-z64.so:${PORTSDIR}/emulators/mupen64plus-video-z64
-.endif
-
-# RSP plugins
-.if ${PORT_OPTIONS:MRSP_Z64}
-RUN_DEPENDS+=	${LOCALBASE}/lib/${PORTNAME}/mupen64plus-rsp-z64.so:${PORTSDIR}/emulators/mupen64plus-rsp-z64
-.endif
-
-.if ${PORT_OPTIONS:MRSP_CXD4}
-RUN_DEPENDS+=	${LOCALBASE}/lib/${PORTNAME}/mupen64plus-rsp-cxd4.so:${PORTSDIR}/emulators/mupen64plus-rsp-cxd4
-.endif
-
-NO_MTREE=	yes
-NO_BUILD=	yes
-
-do-install:	# empty
+.for OPT in ${OPTIONS_DEFINE}
+${OPT}_RUN_DEPENDS=	${LOCALBASE}/lib/${PORTNAME}/mupen64plus-${OPT:tl:S/_/-/}.so:${PORTSDIR}/emulators/mupen64plus-${OPT:tl:S/_/-/}
+.endfor
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512280041.tBS0fodh065946>