Bug 187870 - [PATCH] games/linux-virtual-jay-peak: Stage
Summary: [PATCH] games/linux-virtual-jay-peak: Stage
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Steve Wills
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-23 22:40 UTC by Johannes Meixner
Modified: 2014-03-26 02:30 UTC (History)
0 users

See Also:


Attachments
linux-virtual-jay-peak-1.1a.patch (2.16 KB, patch)
2014-03-23 22:40 UTC, Johannes Meixner
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Meixner 2014-03-23 22:40:01 UTC
- Stagify

Generated with FreeBSD Port Tools 1.00.2014.03.22 (mode: change, diff: SVN)
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-03-23 22:40:11 UTC
Responsible Changed
From-To: freebsd-ports-bugs->swills

swills@ wants this submitter's PRs (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2014-03-26 02:29:07 UTC
Author: swills
Date: Wed Mar 26 02:29:02 2014
New Revision: 349212
URL: http://svnweb.freebsd.org/changeset/ports/349212
QAT: https://qat.redports.org/buildarchive/r349212/

Log:
  - Stagify
  - Convert to OPTIONS
  - Add amd64 to archs
  
  PR:		ports/187870
  Submitted by:	Johannes Jost Meixner <xmj@chaot.net>

Modified:
  head/games/linux-virtual-jay-peak/Makefile

Modified: head/games/linux-virtual-jay-peak/Makefile
==============================================================================
--- head/games/linux-virtual-jay-peak/Makefile	Wed Mar 26 02:24:37 2014	(r349211)
+++ head/games/linux-virtual-jay-peak/Makefile	Wed Mar 26 02:29:02 2014	(r349212)
@@ -3,6 +3,7 @@
 
 PORTNAME=	virtual-jay-peak
 PORTVERSION=	1.1a
+PORTREVISION=	1
 CATEGORIES=	games linux
 MASTER_SITES=	http://www.soulride.com/products/images/
 PKGNAMEPREFIX=	linux-
@@ -11,40 +12,40 @@ DISTNAME=	virtual_jay_peak_linux_1_1a
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	A simulation of snowboarding at the Jay Peak resort in Vermont
 
+OPTIONS_DEFINE=	DOCS NVIDIA
+
 WRKSRC=		${WRKDIR}/soulride
-ONLY_FOR_ARCHS=	i386
+ONLY_FOR_ARCHS=	i386 amd64
 USE_LINUX=	yes
 USE_LINUX_APPS=	xorglibs
 NO_BUILD=	yes
 SUB_FILES=	virtual-jay-peak
 
-NO_STAGE=	yes
+.include <bsd.port.options.mk>
+.if ${PORT_OPTIONS:MNVIDIA}
+RUN_DEPENDS+=	${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver
+.else
+USE_LINUX_APPS+=	dri
+.endif
+
 do-install:
-	${INSTALL_SCRIPT} ${WRKDIR}/virtual-jay-peak ${PREFIX}/bin
-	${INSTALL_PROGRAM} ${WRKSRC}/soulride-static ${PREFIX}/libexec
+	${INSTALL_SCRIPT} ${WRKDIR}/virtual-jay-peak ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/soulride-static ${STAGEDIR}${PREFIX}/libexec
 
-	${MKDIR} ${DATADIR}
+	${MKDIR} ${STAGEDIR}${DATADIR}
 .for d in Recordings data
-	${CP} -R ${WRKSRC}/${d} ${DATADIR}
+	${CP} -R ${WRKSRC}/${d} ${STAGEDIR}${DATADIR}
 .endfor
 
-	-${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}/*
-	${FIND} ${DATADIR}/* -type f -exec ${CHMOD} ${SHAREMODE} {} \;
-	${FIND} ${DATADIR}/* -type d -exec ${CHMOD} ${BINMODE} {} \;
+	-${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DATADIR}/*
+	${FIND} ${STAGEDIR}${DATADIR}/* -type f -exec ${CHMOD} ${SHAREMODE} {} \;
+	${FIND} ${STAGEDIR}${DATADIR}/* -type d -exec ${CHMOD} ${BINMODE} {} \;
 
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
+.if ${PORT_OPTIONS:MDOCS}
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for f in readme-jay_peak.txt readme-linux.txt
-	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
 .endfor
 .endif
 
-.include <bsd.port.pre.mk>
-
-.if defined(WITH_NVIDIA_GL)
-RUN_DEPENDS+=	${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver
-.else
-USE_LINUX_APPS+=dri
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Steve Wills freebsd_committer freebsd_triage 2014-03-26 02:29:47 UTC
State Changed
From-To: open->closed

Committed. Thanks!