blob: f26b5e379400afde86f1f0b186f0c14a4532831f (
plain)
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
|
PORTNAME= Box2D
DISTVERSIONPREFIX= v
DISTVERSION= 2.4.1
CATEGORIES= misc
MAINTAINER= yuri@FreeBSD.org
COMMENT= 2D physics engine for games
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cmake compiler:c++11-lang pkgconfig
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= erincatto
GH_PROJECT= box2d
CMAKE_ON= BOX2D_INSTALL BUILD_SHARED_LIBS
CMAKE_OFF= BOX2D_BUILD_STATIC BOX2D_BUILD_UNIT_TESTS BOX2D_BUILD_TESTBED BOX2D_BUILD_EXAMPLES
do-test:
@cd ${BUILD_WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBOX2D_BUILD_UNIT_TESTS:BOOL=ON ${CMAKE_SOURCE_PATH} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
${BUILD_WRKSRC}/bin/unit_test
.include <bsd.port.mk>
|