svn commit: r404609 - head/emulators/mupen64plus-plugins

Dmitry Marakasov amdmi3 at FreeBSD.org
Mon Dec 28 00:41:51 UTC 2015


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 at 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 at 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>


More information about the svn-ports-head mailing list