blob: 3e155db9af8071cd52c57cc7427d580f92c70410 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
PORTNAME= ChipmunkPhysics
PORTVERSION= 7.0.1
PORTREVISION= 2
CATEGORIES= science # physics
MASTER_SITES= http://chipmunk-physics.net/release/Chipmunk-7.x/ \
http://files.slembcke.net/chipmunk/release/Chipmunk-7.x/ \
http://files.libsiege.org/chipmunk/
DISTNAME= Chipmunk-${PORTVERSION}
MAINTAINER= ports@stdrand.com
COMMENT= 2D physics engine written in C
WWW= https://chipmunk-physics.net/
LICENSE= MIT
BROKEN_armv7= src/cpHastySpace.c:31:4: error: Cannot use CP_USE_DOUBLES on 32 bit ARM
USES= cmake tar:tgz
USE_LDCONFIG= yes
PLIST_SUB= VERSION=${PORTVERSION}
OPTIONS_DEFINE= DOCS EXAMPLES DEMOS
OPTIONS_SUB= yes
PORTDOCS= *
PORTEXAMPLES= *.c *.h
DEMOS_DESC= Install the demo program (requires GLFW and GLEW)
DEMOS_USES= gl
DEMOS_USE= GL=glew
DEMOS_LIB_DEPENDS= libglfw.so:graphics/glfw2
DEMOS_CMAKE_OFF= -DBUILD_DEMOS=OFF
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${COPYTREE_SHARE} "README.textile VERSION.txt" ${STAGEDIR}${DOCSDIR})
(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
post-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/demo && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} "-name *\.c -or -name *\.h")
post-install-DEMOS-on:
${INSTALL_PROGRAM} ${WRKSRC}/demo/chipmunk_demos ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>
|