Lines 2-13
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= ChipmunkPhysics |
4 |
PORTNAME= ChipmunkPhysics |
5 |
PORTVERSION= 6.2.0 |
5 |
PORTVERSION= 6.2.1 |
6 |
CATEGORIES= devel |
6 |
CATEGORIES= devel |
7 |
MASTER_SITES= http://chipmunk-physics.net/release/Chipmunk-6.x/ \ |
7 |
MASTER_SITES= http://chipmunk-physics.net/release/Chipmunk-6.x/ \ |
8 |
http://files.slembcke.net/chipmunk/release/Chipmunk-6.x/ \ |
8 |
http://files.slembcke.net/chipmunk/release/Chipmunk-6.x/ \ |
9 |
http://files.libsiege.org/chipmunk/ |
9 |
http://files.libsiege.org/chipmunk/ |
10 |
DISTNAME= Chipmunk-${PORTVERSION} |
10 |
DISTNAME= Chipmunk-${DISTVERSION} |
11 |
EXTRACT_SUFX= .tgz |
11 |
EXTRACT_SUFX= .tgz |
12 |
|
12 |
|
13 |
MAINTAINER= ports@stdrand.com |
13 |
MAINTAINER= ports@stdrand.com |
Lines 16-23
Link Here
|
16 |
LICENSE= MIT |
16 |
LICENSE= MIT |
17 |
|
17 |
|
18 |
USES= cmake |
18 |
USES= cmake |
|
|
19 |
USE_LDCONFIG= yes |
20 |
|
21 |
OPTIONS_DEFINE= DOCS EXAMPLES DEMOS |
22 |
DEMOS_DESC= Install the demo program (requires GLFW and GLEW) |
23 |
|
24 |
PORTDOCS= * |
25 |
PORTEXAMPLES= *.c *.h |
26 |
|
27 |
.include <bsd.port.options.mk> |
28 |
|
29 |
PLIST_SUB= VERSION=${PORTVERSION} |
30 |
|
31 |
.if ${PORT_OPTIONS:MDEMOS} |
32 |
USE_GL= glew |
33 |
LIB_DEPENDS+= libglfw.so:${PORTSDIR}/graphics/glfw |
34 |
PLIST_SUB+= DEMOS="" |
35 |
.else |
19 |
CMAKE_ARGS= -DBUILD_DEMOS=OFF |
36 |
CMAKE_ARGS= -DBUILD_DEMOS=OFF |
|
|
37 |
PLIST_SUB+= DEMOS="@comment " |
38 |
.endif |
20 |
|
39 |
|
21 |
USE_LDCONFIG= yes |
40 |
post-install: |
|
|
41 |
.if ${PORT_OPTIONS:MDOCS} |
42 |
${MKDIR} ${DOCSDIR} |
43 |
(cd ${WRKSRC} && ${COPYTREE_SHARE} "README.textile VERSION.txt" ${DOCSDIR}) |
44 |
(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${DOCSDIR}) |
45 |
.endif |
22 |
|
46 |
|
|
|
47 |
.if ${PORT_OPTIONS:MEXAMPLES} |
48 |
${MKDIR} ${EXAMPLESDIR} |
49 |
(cd ${WRKSRC}/Demo && ${COPYTREE_SHARE} . ${EXAMPLESDIR} "-name *\.c -or -name *\.h") |
50 |
.endif |
51 |
|
52 |
.if ${PORT_OPTIONS:MDEMOS} |
53 |
${INSTALL_PROGRAM} ${WRKSRC}/Demo/chipmunk_demos ${PREFIX}/bin |
54 |
.endif |
55 |
|
56 |
NO_STAGE= yes |
23 |
.include <bsd.port.mk> |
57 |
.include <bsd.port.mk> |