aboutsummaryrefslogtreecommitdiffstats
path: root/devel/ChipmunkPhysics
diff options
context:
space:
mode:
authormadpilot <madpilot@FreeBSD.org>2014-01-11 08:22:54 +0800
committermadpilot <madpilot@FreeBSD.org>2014-01-11 08:22:54 +0800
commit70c5f39bbf4e2d7e4b7623b17b0398be31435718 (patch)
tree4c7fec8bcf29d5d5b63a618a1956798d79f1b9ac /devel/ChipmunkPhysics
parent25c9fa12df53cddaab05d4b0e25aba634ef2fc4d (diff)
downloadfreebsd-ports-gnome-70c5f39bbf4e2d7e4b7623b17b0398be31435718.tar.gz
freebsd-ports-gnome-70c5f39bbf4e2d7e4b7623b17b0398be31435718.tar.zst
freebsd-ports-gnome-70c5f39bbf4e2d7e4b7623b17b0398be31435718.zip
- Update to 6.2.1
PR: ports/185638 Submitted by: Tim Cas <ports@stdrand.com> (maintainer)
Diffstat (limited to 'devel/ChipmunkPhysics')
-rw-r--r--devel/ChipmunkPhysics/Makefile36
-rw-r--r--devel/ChipmunkPhysics/distinfo4
-rw-r--r--devel/ChipmunkPhysics/pkg-plist3
3 files changed, 38 insertions, 5 deletions
diff --git a/devel/ChipmunkPhysics/Makefile b/devel/ChipmunkPhysics/Makefile
index 21a75bb8fce4..958619d307dc 100644
--- a/devel/ChipmunkPhysics/Makefile
+++ b/devel/ChipmunkPhysics/Makefile
@@ -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>
diff --git a/devel/ChipmunkPhysics/distinfo b/devel/ChipmunkPhysics/distinfo
index 1ab3a3fe43cc..e81133d796f4 100644
--- a/devel/ChipmunkPhysics/distinfo
+++ b/devel/ChipmunkPhysics/distinfo
@@ -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
diff --git a/devel/ChipmunkPhysics/pkg-plist b/devel/ChipmunkPhysics/pkg-plist
index aa561b0016fc..fe0b518dacaf 100644
--- a/devel/ChipmunkPhysics/pkg-plist
+++ b/devel/ChipmunkPhysics/pkg-plist
@@ -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