blob: 5d88c3772c423c6fa5f9ab56d809f9198d42e490 (
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
47
48
49
50
51
52
53
54
55
56
|
# Created by: Tim Cas <ports@stdrand.com>
# $FreeBSD$
PORTNAME= ChipmunkPhysics
PORTVERSION= 6.2.1
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}
EXTRACT_SUFX= .tgz
MAINTAINER= ports@stdrand.com
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/glfw2
PLIST_SUB+= DEMOS=""
.else
CMAKE_ARGS= -DBUILD_DEMOS=OFF
PLIST_SUB+= DEMOS="@comment "
.endif
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>
|