freebsd-ports/devel/ChipmunkPhysics/Makefile
2021-04-06 16:31:07 +02:00

45 lines
1.2 KiB
Makefile

# Created by: Tim Cas <ports@stdrand.com>
PORTNAME= ChipmunkPhysics
PORTVERSION= 7.0.1
PORTREVISION= 2
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_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>