blob: 4b60a744cb838476b29c547d4b961ad8cf2cf1fe (
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
|
# Created by: Tim Cas <ports@stdrand.com>
# $FreeBSD$
PORTNAME= ChipmunkPhysics
PORTVERSION= 7.0.1
CATEGORIES= devel
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
LICENSE= MIT
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_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>
|