Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Jan 2014 00:22:55 +0000 (UTC)
From:      Guido Falsi <madpilot@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r339393 - head/devel/ChipmunkPhysics
Message-ID:  <201401110022.s0B0MtAo066982@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: madpilot
Date: Sat Jan 11 00:22:54 2014
New Revision: 339393
URL: http://svnweb.freebsd.org/changeset/ports/339393

Log:
  - Update to 6.2.1
  
  PR:		ports/185638
  Submitted by:	Tim Cas <ports@stdrand.com> (maintainer)

Modified:
  head/devel/ChipmunkPhysics/Makefile
  head/devel/ChipmunkPhysics/distinfo
  head/devel/ChipmunkPhysics/pkg-plist

Modified: head/devel/ChipmunkPhysics/Makefile
==============================================================================
--- head/devel/ChipmunkPhysics/Makefile	Fri Jan 10 23:56:02 2014	(r339392)
+++ head/devel/ChipmunkPhysics/Makefile	Sat Jan 11 00:22:54 2014	(r339393)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	ChipmunkPhysics
-PORTVERSION=	6.2.0
+PORTVERSION=	6.2.1
 CATEGORIES=	devel
 MASTER_SITES=	http://chipmunk-physics.net/release/Chipmunk-6.x/ \
 		http://files.slembcke.net/chipmunk/release/Chipmunk-6.x/ \
@@ -16,8 +16,40 @@ COMMENT=	2D physics engine written in C
 LICENSE=	MIT
 
 USES=		cmake
+USE_LDCONFIG=	yes
+PLIST_SUB=	VERSION=${PORTVERSION}
+
+OPTIONS_DEFINE=	DOCS EXAMPLES DEMOS
+DEMOS_DESC=	Install the demo program (requires GLFW and GLEW)
+
+PORTDOCS=	*
+PORTEXAMPLES=	*.c *.h
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDEMOS}
+USE_GL=		glew
+LIB_DEPENDS+=	libglfw.so:${PORTSDIR}/graphics/glfw
+PLIST_SUB+=	DEMOS=""
+.else
 CMAKE_ARGS=	-DBUILD_DEMOS=OFF
+PLIST_SUB+=	DEMOS="@comment "
+.endif
 
-USE_LDCONFIG=	yes
+post-install:
+.if ${PORT_OPTIONS:MDOCS}
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	(cd ${WRKSRC} && ${COPYTREE_SHARE} "README.textile VERSION.txt" ${STAGEDIR}${DOCSDIR})
+	(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
+.endif
+
+.if ${PORT_OPTIONS:MEXAMPLES}
+	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	(cd ${WRKSRC}/Demo && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} "-name *\.c -or -name *\.h")
+.endif
+
+.if ${PORT_OPTIONS:MDEMOS}
+	${INSTALL_PROGRAM} ${WRKSRC}/Demo/chipmunk_demos ${STAGEDIR}${PREFIX}/bin
+.endif
 
 .include <bsd.port.mk>

Modified: head/devel/ChipmunkPhysics/distinfo
==============================================================================
--- head/devel/ChipmunkPhysics/distinfo	Fri Jan 10 23:56:02 2014	(r339392)
+++ head/devel/ChipmunkPhysics/distinfo	Sat Jan 11 00:22:54 2014	(r339393)
@@ -1,2 +1,2 @@
-SHA256 (Chipmunk-6.2.0.tgz) = 75fd4098b98dd23e5c1f78a1c9e3080768fb6256143e261638a624163cde5af8
-SIZE (Chipmunk-6.2.0.tgz) = 1071081
+SHA256 (Chipmunk-6.2.1.tgz) = 83a47da80c506541c00e1919c0dc83e5f94d13f6534ae15ad663359c171bc7aa
+SIZE (Chipmunk-6.2.1.tgz) = 1076190

Modified: head/devel/ChipmunkPhysics/pkg-plist
==============================================================================
--- head/devel/ChipmunkPhysics/pkg-plist	Fri Jan 10 23:56:02 2014	(r339392)
+++ head/devel/ChipmunkPhysics/pkg-plist	Sat Jan 11 00:22:54 2014	(r339393)
@@ -1,4 +1,5 @@
-lib/libchipmunk.so.6.2.0
+%%DEMOS%%bin/chipmunk_demos
+lib/libchipmunk.so.%%VERSION%%
 lib/libchipmunk.so
 lib/libchipmunk.a
 include/chipmunk/cpVect.h



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