Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jun 2013 17:57:59 +0200
From:      nemysis <nemysis@gmx.ch>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        ports@stdrand.com
Subject:   ports/180061: [PATCH] devel/ChipmunkPhysics: Add docs, examples, demos, missing dependencies
Message-ID:  <20130628155803.9B71E30E@hub.freebsd.org>
Resent-Message-ID: <201306281600.r5SG00bl041229@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         180061
>Category:       ports
>Synopsis:       [PATCH] devel/ChipmunkPhysics: Add docs, examples, demos, missing dependencies
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 28 16:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     nemysis
>Release:        FreeBSD 9.1-RELEASE-p8 amd64
>Organization:
>Environment:
System: FreeBSD FreeBSD_Ports 9.1-RELEASE-p8 FreeBSD 9.1-RELEASE-p8 #0: Tue Jun 18 15:25:28 UTC 2013
>Description:

- Bump portrevision
- Trim master sites
- Add dependencies for glut, x11, xext, xmu
- Add docs
- Add examples
- Add demos
- Add DOCS EXAMPLES DEMOS Option
- Trim pkg-descr
- Trim pkg-plist

Port maintainer (ports@stdrand.com) is cc'd.

Generated and tested manually, tested with port test and with RedPorts, sent with FreeBSD Port Tools 0.99_8 (mode: change, diff: ports)
>How-To-Repeat:

Build log

https://redports.org/buildarchive/20130628153100-41612/

>Fix:

--- ChipmunkPhysics-6.1.5_1.patch begins here ---
diff -ruN /usr/ports/devel/ChipmunkPhysics/Makefile ./Makefile
--- /usr/ports/devel/ChipmunkPhysics/Makefile	2013-06-12 17:30:35.000000000 +0200
+++ ./Makefile	2013-06-28 17:49:38.000000000 +0200
@@ -3,22 +3,56 @@
 
 PORTNAME=	ChipmunkPhysics
 PORTVERSION=	6.1.5
+PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	http://chipmunk-physics.net/release/Chipmunk-6.x/ \
+		http://files.slembcke.net/chipmunk/release/Chipmunk-6.x/ \
 		http://files.libsiege.org/chipmunk/
-DISTNAME=	Chipmunk-${PORTVERSION}
+DISTNAME=	Chipmunk-${DISTVERSION}
 EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	ports@stdrand.com
 COMMENT=	2D physics engine written in C
 
 LICENSE=	MIT
-LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
 USES=		cmake
-CMAKE_ARGS=	-DBUILD_DEMOS=OFF
+USE_GL=		glut
+USE_XORG=	x11 xext xmu
+CMAKE_VERBOSE=	yes
 MAKE_JOBS_SAFE=	yes
-
 USE_LDCONFIG=	yes
 
+PORTDOCS=	README.textile VERSION.txt
+PORTEXAMPLES=	*
+
+OPTIONS_DEFINE=	DOCS EXAMPLES DEMOS
+DEMOS_DESC=	Install Demos programs
+OPTIONS_DEFAULT=	DEMOS
+
+.include <bsd.port.options.mk>
+
+PLIST_SUB=	MAJORVER=6.1.5
+
+.if ${PORT_OPTIONS:MDEMOS}
+PLIST_SUB+=	DEMOS=""
+.else
+CMAKE_ARGS=	-DBUILD_DEMOS=OFF
+PLIST_SUB+=	DEMOS="@comment "
+.endif
+
+post-install:
+.if ${PORT_OPTIONS:MDEMOS}
+	${INSTALL_PROGRAM} ${WRKSRC}/Demo/chipmunk_demos ${PREFIX}/bin
+.endif
+
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+.endif
+
+.if ${PORT_OPTIONS:MEXAMPLES}
+	@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
+.endif
+
 .include <bsd.port.mk>
diff -ruN /usr/ports/devel/ChipmunkPhysics/pkg-descr ./pkg-descr
--- /usr/ports/devel/ChipmunkPhysics/pkg-descr	2013-06-02 18:59:15.000000000 +0200
+++ ./pkg-descr	2013-06-28 17:23:17.000000000 +0200
@@ -1,5 +1,6 @@
 Chipmunk is a simple, lightweight, fast and portable 2D rigid body physics
-library written in C. It's licensed under the unrestrictive, OSI approved MIT
-license.
+library written in C. It is licensed under the unrestrictive, OSI approved MIT
+license. My aim is to give 2D developers access the same quality of
+physics you find in newer 3D games.
 
 WWW: http://chipmunk-physics.net/
diff -ruN /usr/ports/devel/ChipmunkPhysics/pkg-plist ./pkg-plist
--- /usr/ports/devel/ChipmunkPhysics/pkg-plist	2013-06-12 17:30:35.000000000 +0200
+++ ./pkg-plist	2013-06-28 17:06:30.000000000 +0200
@@ -1,30 +1,31 @@
-lib/libchipmunk.so.6.1.5
-lib/libchipmunk.so
-lib/libchipmunk.a
-include/chipmunk/cpVect.h
-include/chipmunk/cpSpatialIndex.h
-include/chipmunk/cpSpace.h
-include/chipmunk/cpShape.h
-include/chipmunk/cpPolyShape.h
-include/chipmunk/cpBody.h
-include/chipmunk/cpBB.h
-include/chipmunk/cpArbiter.h
-include/chipmunk/constraints/util.h
-include/chipmunk/constraints/cpSlideJoint.h
-include/chipmunk/constraints/cpSimpleMotor.h
-include/chipmunk/constraints/cpRotaryLimitJoint.h
-include/chipmunk/constraints/cpRatchetJoint.h
-include/chipmunk/constraints/cpPivotJoint.h
-include/chipmunk/constraints/cpPinJoint.h
-include/chipmunk/constraints/cpGrooveJoint.h
-include/chipmunk/constraints/cpGearJoint.h
-include/chipmunk/constraints/cpDampedSpring.h
-include/chipmunk/constraints/cpDampedRotarySpring.h
-include/chipmunk/constraints/cpConstraint.h
-include/chipmunk/chipmunk_unsafe.h
-include/chipmunk/chipmunk_types.h
-include/chipmunk/chipmunk_private.h
-include/chipmunk/chipmunk_ffi.h
+%%DEMOS%%bin/chipmunk_demos
 include/chipmunk/chipmunk.h
+include/chipmunk/chipmunk_ffi.h
+include/chipmunk/chipmunk_private.h
+include/chipmunk/chipmunk_types.h
+include/chipmunk/chipmunk_unsafe.h
+include/chipmunk/constraints/cpConstraint.h
+include/chipmunk/constraints/cpDampedRotarySpring.h
+include/chipmunk/constraints/cpDampedSpring.h
+include/chipmunk/constraints/cpGearJoint.h
+include/chipmunk/constraints/cpGrooveJoint.h
+include/chipmunk/constraints/cpPinJoint.h
+include/chipmunk/constraints/cpPivotJoint.h
+include/chipmunk/constraints/cpRatchetJoint.h
+include/chipmunk/constraints/cpRotaryLimitJoint.h
+include/chipmunk/constraints/cpSimpleMotor.h
+include/chipmunk/constraints/cpSlideJoint.h
+include/chipmunk/constraints/util.h
+include/chipmunk/cpArbiter.h
+include/chipmunk/cpBB.h
+include/chipmunk/cpBody.h
+include/chipmunk/cpPolyShape.h
+include/chipmunk/cpShape.h
+include/chipmunk/cpSpace.h
+include/chipmunk/cpSpatialIndex.h
+include/chipmunk/cpVect.h
+lib/libchipmunk.a
+lib/libchipmunk.so
+lib/libchipmunk.so.%%MAJORVER%%
 @dirrm include/chipmunk/constraints
 @dirrm include/chipmunk
--- ChipmunkPhysics-6.1.5_1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



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